Docs/03 skill engineering/skills/architecture skill

Architecture Skill

Skill ID: architecture
Version: 2.0
Updated: 2026-07-16

Purpose

Activate this skill when A request changes system boundaries, deployment topology, data ownership, or a cross-team interface.

Why

An architecture decision record, C4 context/container views, interface contracts, quality-attribute scenarios, and a migration sequence is the minimum reviewable deliverable for this domain. A generic "inspect, change, test" loop omits the domain decisions and failure evidence needed for production use.

Trigger Conditions

  • A request changes system boundaries, deployment topology, data ownership, or a cross-team interface.
  • The requester expects an implementation, design, audit, or release decision in this domain.

Required Inputs

  • The exact target and acceptance criteria.
  • Repository-pinned versions, environment constraints, and available evidence.
  • Data classification, effect permissions, and owner where the procedure can affect external systems.

Produced Artifacts

  • An architecture decision record
  • C4 context/container views
  • interface contracts
  • quality-attribute scenarios
  • a migration sequence.

Procedure

  1. Quantify latency, availability, consistency, privacy, cost, and recovery objectives.
  2. Map actors, trust boundaries, data flows, failure domains, and ownership.
  3. Evaluate one recommended design against two credible alternatives with scenario-based tradeoffs.
  4. Specify APIs, data ownership, resilience, observability, capacity assumptions, and rollout/rollback.
  5. Record the decision and validate it through threat, failure, and operability reviews.

Verification

Render Mermaid diagrams; validate every interface has an owner and error contract; walk through dependency loss, region loss, overload, and rollback scenarios.

Unhappy Paths and Recovery

If quality attributes conflict, escalate the specific business priority. If capacity inputs are absent, publish formulas and mark estimates provisional. If migration cannot be reversed, require an approved recovery design.

Concrete Example

Design tenant isolation for a document service: deliver an ADR choosing database-per-tenant or row isolation, a C4 diagram, RTO/RPO analysis, and staged migration.

Do Not Use This Skill When

Do not use for a local implementation choice that does not alter a boundary or quality attribute.

Tradeoffs

The required domain artifacts and verification cost more than a generic implementation pass, but they expose assumptions, safety gates, and operational limits before release.

Anti-Patterns

  • Substituting a generic checklist for the domain procedure above.
  • Claiming a gate passed without retaining the exact command, inspected artifact, or observed signal.
  • Expanding scope or executing an external effect without target-specific approval.

Enterprise Considerations

Apply repository ownership, separation of duties, data residency and retention, audit evidence, and approved-tool policies to every produced artifact. Redact secrets and regulated data from examples and logs.

Checklist

  • Trigger and anti-trigger evaluated
  • Required inputs and domain artifacts complete
  • Procedure followed in order
  • Verification evidence retained
  • Recovery, rollback, owner, and residual risk recorded

Authoritative Sources

Changelog

  • 2.0 (2026-07-16): Replaced the cloned generic procedure with domain-specific artifacts, workflow, recovery, examples, and sources.
  • 1.1: Initial standardized structure.