Skip to content
Back to skills

Ay Architecture

ASecurity

Design a system or subsystem before implementation. Use when the primary deliverable is architecture, module boundaries, data ownership, integration, deployment shape, quality attributes, or an architecture.md proposal, including 技术架构, 后端架构, 系统拆分, or 单体还是微服务. Do not use for routine implementation, refactoring an existing codebase without a design deliverable, endpoint details, or physical database schemas.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 4, 2026
developmentrustgorefactoringapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add ALVIN-YANG/ay-skills --skill ay-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ay Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ay Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alvin-yang-ay-architecture/badge)](https://www.skillsdirectory.com/skills/alvin-yang-ay-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ay-architecture
description: Design a system or subsystem before implementation. Use when the primary deliverable is architecture, module boundaries, data ownership, integration, deployment shape, quality attributes, or an architecture.md proposal, including 技术架构, 后端架构, 系统拆分, or 单体还是微服务. Do not use for routine implementation, refactoring an existing codebase without a design deliverable, endpoint details, or physical database schemas.
---

# AY Architecture

Choose the simplest system shape that satisfies the product and its real constraints.

## Approval contract

<!-- ay-contract:start -->
- Read the full request and investigate discoverable facts before asking the user.
- Treat review, diagnosis, explanation, and planning as read-only unless the user also requests change.
- Treat a precise instruction as approval when target, observable result, and acceptance boundary are clear.
- A broad outcome authorizes investigation, not file or artifact changes based on choices the agent must invent.
- For a materially underspecified change, present one recommended proposal and wait for approval.
- After approval, execute autonomously inside the approved boundary; do not ask about ordinary implementation details.
- Reopen approval only when new evidence changes behavior, architecture, data contracts, dependencies, scope, risk, cost, rollback, or external actions.
- Perform external actions only when the request or approved proposal includes them. Confirm the exact target before an irreversible action.
- Preserve unrelated and user-authored work. Verify the real requested outcome before claiming completion.
<!-- ay-contract:end -->

## Read the system from its use

Inspect available requirements, approved UI flows, current code and infrastructure, team constraints, traffic shape, data sensitivity, budget, compliance, and operational expectations. Preserve upstream domain terms and trace each important state through latency, permissions, offline behavior, failure, cancellation, and recovery. Architecture may precede UI only when a feasibility or risk decision blocks useful interface design.

Ask only about a choice that changes the system shape and cannot be discovered. Recommend a default with its tradeoff.

## Define boundaries before technologies

Derive system context, responsibilities, module seams, data ownership, trust boundaries, external adapters, and synchronous or asynchronous flows. For each boundary, state what it hides, who owns it, and what failure crosses it.

Prefer a modular monolith and existing infrastructure unless scale, isolation, ownership, deployment, or reliability evidence justifies another shape. Do not default to microservices, Clean Architecture, event sourcing, queues, caches, or extra abstraction layers. Compare alternatives only where the decision is material.

Select store categories, protocols, and deployment units at this level, but leave endpoint payloads and physical tables to their own design work.

## Make the proposal testable

Describe quality attributes with scenarios and observable limits: availability, latency, throughput, consistency, privacy, recovery, cost, and operability only where relevant. Include failure containment, migration or evolution path, risks, rejected options, and the cheapest validation for uncertain assumptions.

Make an approved handoff understandable without the conversation. State material decisions and reasons, cite supporting artifacts, and separate confirmed constraints, estimates, assumptions, and preferences. Name unresolved choices and their consequences; do not present them as settled.

Create `architecture.md`, an ADR, or diagrams only when requested or needed for an approved handoff. Stop before API detail, database schema, and implementation unless separately authorized.

Files in this skill

  • SKILL.md3.5 KB
  • agents/openai.yaml246 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.