Universal guardrails loaded by every agent. Defines Verify Before Reporting (VBR), Write-Ahead Log (WAL), and the security baseline. Always-on, role-independent.
日本語の概要は準備中です。原文の説明を表示しています。
Use when: architecture mode, architect this, ADR, C4, PlantUML, system boundary, design decision, PRD gap, high ambiguity, multiple technical approaches, security architecture, data architecture, integration risk, implementability gap, story ticket, or epic ticket.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
This skill gives the Architect first-principles architecture discipline. Architect pauses all other work, enters architecture mode, produces decision-ready artifacts, then creates a GitHub story or epic ticket as the handoff artifact before handing off to Builder.
Answer these three questions before producing any artifact. Stop if any answer is "not sure" and collect evidence first.
This is the pre-flight. It takes two minutes and prevents hours of redesign.
Load this skill when any of these are true:
Before running the intake checklist, assess the tier. The tier determines how much ceremony is warranted.
| Tier | Criteria | Process |
|---|---|---|
| Fast-track | Single surface, no security/data/privacy risk, low blast radius, clear precedent in the codebase | 5-question fast intake (below). Skip quality attribute scenarios and full rubric unless a specific attribute is at risk. |
| Full | Multi-surface, security/data/privacy involved, high ambiguity, no precedent, cross-module blast radius, external commitments | Full intake checklist + full rubric + quality attribute scenarios. |
When in doubt, default to Full. Fast-track is earned by low blast radius, not by impatience.
If the answer to question 2 is "no existing pattern", escalate to Full.
planner-mode after technical truth is established.Before producing any artifact, identify:
Choose the lens that best matches the question, and say so explicitly in the output.
| Lens | Start from | Work toward |
|---|---|---|
| User | The user's first meaningful interaction, pain point, or broken journey | The architecture and dependencies that shape that experience |
| Test | Edge cases, failure paths, and what must be provably true | The architecture that makes those checks reliable |
| System | Infrastructure dependencies, deployment/runtime constraints, and coupling | The application structure that must respect them |
| Analytics | User outcomes, business metrics, or adoption signals | The architectural causes and instrumentation gaps behind them |
| Debug | Symptoms, incidents, or degraded states | The root architectural causes and corrective boundaries |
Use one primary lens. Add a secondary lens only when it changes the decision materially.
Architecture is decision work. Every major artifact must clarify what was chosen, why it was chosen, what was rejected, and what risk remains. A 30-year architect knows that almost every system failure was predictable from the original design. Make the right trade-offs explicit before the first line of code.
Rule of thumb: If the architecture cannot be explained in five minutes to a senior developer, it is too complex. Complexity is a liability. Simplicity is a design achievement.
Apply the most suitable framework per project context. No single school is dogma.
| School | When to apply |
|---|---|
| Domain-Driven Design | Systems with complex business rules, multiple teams, or long-lived domain models |
| Clean Architecture | Systems where testability and framework independence is critical |
| C4 Model | All architecture communication work — default communication medium |
| Event-Driven / Event Sourcing | Audit trail, temporal queries, or decoupled async workflows as first-class requirements |
| Hexagonal / Ports & Adapters | Isolating core domain logic from infrastructure concerns |
| Microservices | Only when independent deployability, team autonomy, or scaling isolation is a documented requirement — not as a default posture |
Cross-cutting rule: Before selecting a pattern, state the problem it solves and confirm that problem exists in this system. Pattern selection without problem identification is architectural cosplay.
Every architecture package must define measurable quality attribute scenarios where relevant.
| Attribute | Architecture question | Required expression |
|---|---|---|
| Availability | What must stay online, for whom, during which failures? | Target uptime, tolerated degraded modes, dependency failure behaviour |
| Latency | How fast must critical paths respond? | P50/P95/P99 targets by use case |
| Throughput | What load must the system absorb now and later? | Requests per second, peak factor, burst duration |
| Durability | What data loss is acceptable? | RPO, RTO, backup cadence, restore verification |
| Security | What must be protected, from whom, at which boundaries? | Threat model, trust boundaries, access model |
| Privacy | What personal or regulated data exists and how is it controlled? | Classification, retention, deletion, residency |
| Operability | How will the system be observed, alerted, recovered, maintained? | Logs, metrics, traces, runbooks, ownership |
| Maintainability | How will teams safely change the system over time? | Module boundaries, ownership, compatibility rules |
| Cost | What financial envelope constrains the design? | Monthly run-rate estimate, scaling cost curve, cost risks |
Quality attribute scenario format:
When [stimulus] occurs under [environment], the system should respond by
[response] within [measurable target], verified by [test, metric, or check].
Rule: Never use vague language such as "scalable", "secure", or "highly available" without a measurable scenario attached.
Security is architecture, not a final checklist. Privacy is architecture, not a legal appendix.
Every architecture package involving users, tenants, integrations, payments, or sensitive data must define:
Rule: A security control that has no owner, no enforcement point, and no verification method is not a control. It is a wish.
Data outlives code. Most architecture failures eventually become data failures.
Every data architecture must define:
Rule: Never design a write path without also designing the correction path. Bad data will happen; architecture must say how it is detected, corrected, and audited.
Integrations fail at the contract boundaries.
Every API, event, webhook, or external integration must define:
Rule: A contract is not complete until failure behaviour is documented. Success-only APIs are incomplete architecture.
Actively search for and call out these failure patterns early:
| Anti-pattern | Why it fails |
|---|---|
| Distributed monolith | Multiple deployables remain tightly coupled and must change together |
| Shared database between services | Ownership, schema evolution, security, and deployment independence collapse |
| Premature microservices | Operational cost arrives before team or scaling need justifies it |
| Chatty synchronous chains | Latency, fragility, and cascading failure increase with every hop |
| Unbounded queues | Backlogs hide overload until recovery is expensive or impossible |
| Leaky tenant isolation | One tenant's data, load, config, or permissions can affect another tenant |
| Anemic domain model | Business rules scatter across services, jobs, and UI code |
| Report queries on transactional paths | Analytics pressure degrades operational workloads |
Rule: Naming an anti-pattern is not enough. State the observed evidence, impact, and recommended correction.
For the full ADR documentation standard — when to write an ADR, storage path, no-delete rule, inline comment discipline, and API documentation standards — load skills/documentation-and-adrs/SKILL.md. The format below is kept here for quick reference; documentation-and-adrs is authoritative on format details.
# ADR-NNN: [Decision title in imperative mood]
## Status
[Proposed | Accepted | Deprecated | Superseded by ADR-NNN]
## Date
YYYY-MM-DD
## Context
[What is the problem? What forces are at play? What constraints exist?
State without solution bias. A reader who has never seen this system
should understand the problem from this section alone.]
## Decision
[What was decided? "We will use X" not "X will be used".]
## Alternatives Considered
[Genuine alternatives, not strawmen. Each alternative must have been
seriously evaluated with the reason it was rejected.
Minimum: two alternatives.]
## Consequences
[What does this decision make easier? Harder? What new problems does it
create? Both positive and negative consequences.]
## Assumptions
[What must be true for this decision to hold? If any assumption is
invalidated, this ADR should be revisited.]
ADR quality bar:
| Level | When produced |
|---|---|
| Context (L1) | Always. Every engagement. |
| Container (L2) | Always. Every engagement. |
| Component (L3) | Only when a Container is complex enough that two senior developers would disagree on its internal structure. |
| Code (L4) | Never. Code is the truth at this level. |
Non-negotiable rules:
| Criterion | Passing standard |
|---|---|
| Technical correctness | Claims grounded in source material, standards, evidence, or explicit assumptions |
| Feasibility | Builder can turn the package into implementation work without major reinterpretation |
| Completeness | Scope, gaps, ADRs, diagrams, risks, and acceptance criteria all represented |
| Clarity | Senior engineers understand the implementation implications |
| Consistency | Terms, boundaries, diagrams, ADRs, and specs agree with each other |
| Operability | Failure modes, observability, recovery, ownership, and release concerns addressed |
| Security/privacy | Trust boundaries, data classes, access model, and risks explicit |
| Practical implementation value | The package reduces engineering ambiguity instead of adding ceremony |
Rule: Any criterion below passing standard becomes a known gap with an owner and resolution path.
Use this structure for the architecture recommendation:
## Architecture Recommendation
**Purpose:** [what decision this resolves]
**Scope:** [included / excluded]
**Source Material:** [tickets, files, docs, assumptions]
### Assumptions
- [assumption and verification need]
### Evidence and Current State
- [exact artifact or boundary -> observed behavior, gap, or constraint]
### Entry Lens and Decision Drivers
- [primary lens]
- [priority drivers: impact, dependency, risk, effort, user/system effect]
### Options Considered
| Option | Pros | Cons | Risk |
| ------ | ---- | ---- | ---- |
| A | ... | ... | ... |
| B | ... | ... | ... |
### Decision
[chosen approach and rationale]
### Implementation Constraints
- [constraints Builder must preserve in implementation]
### First Validation Slice
- [smallest independently testable implementation or evidence-collection step]
### Acceptance Criteria
- [testable criterion]
### Quality Attribute Scenarios
- [When X occurs, the system responds by Y within Z, verified by W]
### Security / Privacy Considerations
- [trust boundaries, data classification, access model, risks]
### Boundary Coverage
- [UI/client/service/data/infrastructure boundaries touched and the contract implications]
### Risks and Mitigations
- [risk -> mitigation]
### Verification Plan
- [how Builder validates in implementation]
- [what observable signals should change: tests, logs, metrics, traces, deploy health, user-visible behavior]
- [what Tester should verify, if applicable]
### Open Questions
- [questions for the team lead only if unresolved]
See skills/architecture-mode/EXAMPLES.md for illustrated examples. Reuse the decision shape, not the repo-specific answer.
Before producing the Story/Epic Ticket Output, optionally load assumptions-audit for a
structured pass over the Decision Output — surfacing unstated environment/data/user assumptions,
acceptance criteria that rely on implicit shared understanding, and scope-boundary failure modes.
This is not a mandatory gate: apply it when the decision is ambiguous, high-risk, or the tier
assessment landed on Full; skip it for fast-track, low-blast-radius decisions with clear precedent.
Before producing the Story/Epic Ticket Output, optionally load ui-audit-lens when the decision
centres on UI standards, UI pattern discovery, or a concrete UI surface that needs a structured
audit before implementation. Use it to capture a research snapshot of the target product or
organisation's existing conventions, audit the named surface against an explicit standard, and run
a pre-handoff UI state coverage gate. This is stack-agnostic and intended to be reused by
business-specific child skills rather than replaced by them.
Before producing the Story/Epic Ticket Output, optionally load security-audit-lens when the
decision is a general codebase assessment, precedes migration/rewrite planning, or the work touches
authentication, secrets, or external input handling. Use it to run the structured, stack-agnostic
checklist (hardcoded credentials, injection-prone constructs, auth/debug backdoors, insecure config
defaults) and produce evidence-backed findings in the shared severity vocabulary. This complements,
and does not replace, the built-in /security-review command, and it is not a mandatory gate on
every ticket.
After producing the architecture recommendation and receiving team lead confirmation, create a GitHub story or epic ticket:
## Story: [Architecture area or system capability]
**Type:** Story / Epic
**Source:** Architecture mode output — [date]
### Context
[2-3 sentences summarising the architectural decision and why this work exists]
### Architecture Constraints
- [constraints all implementation tickets must preserve]
### Acceptance Criteria
- [ ] [testable criterion 1]
- [ ] [testable criterion 2]
### Implementation Scope
[Outline of sub-tickets or implementation slices to be created by Builder]
### Out of Scope
- [explicit exclusions]
### Risks
- [residual risks for implementers to be aware of]
Architecture mode is complete when:
After exit, Architect either hands implementation directly to Builder or creates sub-tickets from the story/epic.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Universal guardrails loaded by every agent. Defines Verify Before Reporting (VBR), Write-Ahead Log (WAL), and the security baseline. Always-on, role-independent.
日本語の概要は準備中です。原文の説明を表示しています。
Use when: assumptions audit, audit assumptions, check for hidden assumptions, plan/ticket has ambiguous scope edges, pre-flight before finalizing a ticket, unstated assumptions, or 'what am I assuming'. Surfaces unstated assumptions, ambiguous scope edges, and untested preconditions in a finished plan/ticket/ADR before it is handed to Builder. Optional pass — Architect judges when to apply it; not a mandatory gate on every ticket.
日本語の概要は準備中です。原文の説明を表示しています。
Use when: Tester needs UI state evidence for VBR, or Builder needs to verify an integration wire is observable end-to-end. Powered by agent-browser MCP — token-efficient browser automation (200–400 tokens/page).
日本語の概要は準備中です。原文の説明を表示しています。
Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.
日本語の概要は準備中です。原文の説明を表示しています。
Writing skill for freelancers and independent consultants. Covers project proposals, bids, client emails, and scope summaries. Leads with the client's problem, not the consultant's background.
日本語の概要は準備中です。原文の説明を表示しています。
Activate for any ticket that touches a Supabase RPC, edge function, or TypeScript client function in src/lib/. Ensures both caller and callee are verified before state:ready-for-qa.
日本語の概要は準備中です。原文の説明を表示しています。