agentleFS
gabros20gabros20/architecture-skill/skills/architecture/SKILL.md

architecture

Skill0 starsChanged 4 months agoMITView on GitHub

Decide the shape of a software system — boundaries, contracts, NFR budgets, threat model, and ADRs — at the Shape stage between product and the build skills. Use to design the system, define the architecture, decide microservices vs monolith, draw bounded contexts, spec API/event contracts, set SLO/perf/cost budgets, threat-model (STRIDE), plan a migration or deprecation, write an ADR, or architect an agent/LLM system. Not for product discovery/PRD (→ product), UX/UI (→ design), production code (→ frontend/backend/data/ai), diagram rendering, or CI/deploy/runtime ops (→ operate).

82 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deployment-procedures, behavioral-modes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xfstudioSkill

    deployment-procedures

    Production deployment principles and decision-making. Safe deployment workflows, rollback strategies, and verification. Teaches thinking, not scripts.

    Also in 5 projects that use this

  • xfstudioSkill

    behavioral-modes

    AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.

    Also in 4 projects that use this

  • tiendatworkSkill

    2d-games

    2D game development principles. Sprites, tilemaps, physics, camera.

    Also in 3 projects that use this

  • tiendatworkSkill

    3d-games

    3D game development principles. Rendering, shaders, physics, cameras.

    Also in 3 projects that use this

  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • +1 more from xfstudio
  • +5 more from tiendatwork

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 74 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read every selected reference completely before producing the affected artifact.

    line 40
  2. Very specific:

    When downstream build work is expected, read handoff and emit the handoff.yaml companion.

    line 74
  3. Distinctive:

    Requirements-gate before solutioning: Do not propose, outline, or recommend a design until functional requirements and NFRs are captured …

    line 79
  4. Distinctive:

    Don't over-architect: Default to a modular monolith and the lightest sufficient artifact — a single ADR often beats a full arc42, a shared …

    line 83
  5. Distinctive:

    Weight analysis by reversibility: Treat each decision as a one-way (irreversible: data store, public API shape, org/team boundary) or …

    line 88
  6. Very specific:

    When downstream build work is expected, emit the handoff.yaml companion with artifact paths, constraints, decisions, risks, and the …

    line 136

“Common” is measured: kept by at least 6 in 10 of the 74 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Product Architecture

Mission and boundary

Decide the shape of a software system — its boundaries, interface contracts, NFR budgets, threat model, and the durable decision record — precisely enough that the build skills can implement the right thing in parallel without re-deriving it. Own the Shape stage between product (which decides what to build and why) and the build skills (which write the production code): the consequential, hard-to-reverse decisions — service boundaries, public API shape, data-store and consistency choice, auth model, SLO targets — not the implementation behind them.

Own the decision, the contract, the budget, and the threat model; not the code. Production frontend/backend/data/ai code belongs to the build skills; UX and UI to design; discovery, PRDs, and prioritization to product; independent load-testing and vulnerability scanning to quality; runtime SLO monitoring, dashboards, and deploy pipelines to operate; cross-system business processes spanning systems you do not own to automation. Contribute to those; own none. Operate independently when invoked alone; when compatible upstream artifacts are supplied (a PRD, a product handoff, an existing ADR log or design doc), use them without silently overriding established decisions. Recommend adjacent skills when useful; do not invoke them automatically unless the user explicitly requested a composition workflow.

Route before acting

  1. Capture requirements first (see invariants) — do not open a reference to solution before functional requirements and NFRs are stated and contradictions surfaced.
  2. Pick the one primary job the request needs, and at most one surface overlay — the system type reshapes boundaries, contracts, and budgets.
  3. Read every selected reference completely before producing the affected artifact; load 2–3 at most, never preload the pack.
  4. For an LLM/agent system, always add the agentic overlay — it changes topology, the eval gate, and the security model.

Primary job (pick one)

User intentReadContribution
"Design/architect/spec the system" from scratch, or review a design for gaps — the default entrysystem-designRequirements gate, leveled C4/arc42 design, trade-offs, back-of-envelope numbers
"Break this up," "should this be a microservice," define modules/bounded contexts, fix couplingdecompositionBounded contexts, monolith/modular/micro call with a named disintegrator, quantified coupling read
"Design the API," "define the contract," spec endpoints/events, version/deprecate an interfacecontractsREST/gRPC/GraphQL pick, OpenAPI/AsyncAPI skeleton, versioning + deprecation plan, review checklist
Design data flow, choose a consistency model, decide CQRS/ES, pick an identifier schemedata-architectureConsistency decision per flow, CQRS/ES score, outbox/dual-write call, store selection
Set perf/latency/reliability targets, an SLO, a scaling/capacity/cost plan, a Well-Architected reviewnfr-budgetsPerformance-budget table, SLO + error budget, scaling triggers, WA self-audit, resilience strategy
Threat-model, decide the auth/authz model, tenant isolation, a privacy/data-governance stancesecurity-architectureSTRIDE register, auth/authz decision, zero-trust posture, data-classification statement
Migrate/replatform, extract a service, deprecate an API, modernize a legacy systemmigration7 Rs / Strangler-Fig pick, extraction order, comparison-read cutover gate, deprecation timeline
"Write an ADR," record/govern a decision, check code against a prior decision, audit an ADR logadr-and-governanceADR (right-weight template), lifecycle/immutability rule, drift detection, named fitness functions

Surface overlay (add at most one base surface)

Pick the one base surface that fits the system type. The agentic overlay is additive: when the system is also an LLM/agent system, stack surface-agentic on top of the base surface — it does not replace it (per the invariant below, it changes topology, the eval gate, and the security model).

System typeReadReshapes
Multi-tenant web app / SaaS (default)surface-web-saasTenant isolation (silo/pool/bridge), 3-tier + per-client BFF, OIDC tenant resolution
Native mobile client (iOS/Android)surface-mobileClient pattern (MVVM/TCA/Clean/RIBs), offline/sync + conflict rule, SSOT/UDF
Agentic / LLM systemsurface-agenticHarness design, workflow-vs-agent, multi-agent economics, RAG topology, memory tiers, eval-as-gate, agent security
Data / analytics / ML platformsurface-data-intensiveOperational/analytical boundary, batch-vs-stream, mesh-vs-centralized ownership
Internal tool / developer platform (IDP)surface-internal-platformTeam Topologies bridge, platform-as-product threshold, "don't build a platform yet" gate

Handoff

When downstream build work is expected, read handoff and emit the handoff.yaml companion; skip it for a standalone request nothing downstream will read.

Universal invariants

  • Requirements-gate before solutioning. Do not propose, outline, or recommend a design until functional requirements and NFRs are captured and any contradiction (e.g. "full network isolation" vs "real-time public ingestion") is surfaced and resolved. Ask one question at a time for missing inputs; mark unknowns TBD; never invent a number the requester hasn't given or approved.
  • Don't over-architect. Default to a modular monolith and the lightest sufficient artifact — a single ADR often beats a full arc42, a shared library often beats a platform team. Add complexity (a service split, event sourcing, a platform team) only when a named disintegrator justifies it, not because it is the "modern" choice. Applying mature-stage architecture to an MVP is the failure mode to avoid.
  • Weight analysis by reversibility. Treat each decision as a one-way (irreversible: data store, public API shape, org/team boundary) or two-way door. One-way doors earn deeper analysis and an ADR; two-way doors earn a quick call. Name explicit options and state "would choose X if {trigger}."
  • Every recommendation is a concrete pick + what NOT to build + a stated trade-off. Cap each pass at 3–5 decisions; more reads as a document dump, not a decision set.
  • Exhaustive checklists use a uniform table + self-audit count, never a narrative. For any "cover N items" task (Well-Architected pillars, STRIDE per element, the API checklist), fill one row per item and count covered rows against the total before calling it done — a single narrative pass reliably drops rows and stops citing findings well before full coverage.
  • Distinguish facts, decisions, assumptions, and proposals. Preserve upstream decisions and user constraints, or flag the conflict explicitly; prefer repository and artifact evidence over generic defaults.

Core workflow

  1. Inspect the request, evidence, constraints, and existing artifacts (PRD, ADR log, design doc).
  2. Gate requirements: functional + NFR + constraints captured, contradictions surfaced.
  3. Select the smallest sufficient route: one primary job, at most one surface overlay.
  4. Record material assumptions and unresolved inputs with owners.
  5. Produce the requested artifact, grounded in the framework the reference names; cap at 3–5 decisions per pass, each with its trade-off.
  6. Validate against the request, constraints, and acceptance criteria; state confidence.
  7. Emit a compact handoff.yaml when downstream build work is expected.

Artifact contract

Each reference defines its own artifact. Every architecture artifact must record: the decision made and the options considered; the trade-off accepted; facts/decisions/assumptions distinguished; and the reversibility lens applied to any hard-to-reverse call. A full architecture pass produces up to five downstream artifacts — a solution-architecture doc (assets/solution-architecture-doc.md, arc42-shaped), API/event contracts, NFR budgets (assets/nfr-budget-worksheet.md), ADRs (assets/adr-template.md), and a STRIDE threat model (assets/threat-model-register.md) — plus the DDD canvases (assets/bounded-context-canvas.md, assets/aggregate-design-canvas.md) and assets/arc42-skeleton.md where the job calls for them. Provide the machine-readable handoff.yaml companion whenever downstream work is expected; see handoff.

Completion and handoff

Before completion:

  • Confirm every requested artifact exists and its acceptance criteria are checkable.
  • Confirm every exhaustive-checklist artifact is a table with a self-audit count, not a narrative.
  • Record decisions, assumptions, risks, and unresolved questions with named owners.
  • Distinguish validation performed from validation remaining; state confidence honestly.
  • When downstream build work is expected, emit the handoff.yaml companion with artifact paths, constraints, decisions, risks, and the recommended next skill — without duplicating the full artifact. Never silently invoke a build skill; name it in recommended_next.

Resources

Load only what the selected route requires; never preload.

  • Primary jobs: system-design — the requirements-gated entry spine · decomposition — boundaries, coupling, monolith-first · contracts — API/event contract-first · data-architecture — consistency, CQRS/ES, stores · nfr-budgets — the -ilities as numbers · security-architecture — STRIDE, auth, zero-trust · migration — Strangler Fig, 7 Rs, cutover · adr-and-governance — decision records + fitness functions
  • Surface overlays: surface-web-saas · surface-mobile · surface-agentic · surface-data-intensive · surface-internal-platform
  • Pipeline: handoff — standalone vs pipeline behavior and the handoff.yaml companion consumed by frontend, backend, data, ai, and quality.
  • Assets: fillable templates in assets/ — solution-architecture doc, arc42 skeleton, ADR templates, NFR budget worksheet, threat-model register, bounded-context and aggregate-design canvases, and the handoff.yaml envelope.

Artifact home

Deliverables this skill produces default to digital-product/architecture/ at the working repository's root, with cross-skill state in digital-product/LEDGER.md — created on first use and committed with the repo. The digital-product composer skill owns this convention; solo use writes to the same place. Never write into .orchestrate/ — that folder belongs to an orchestration run's execution state, not to this family's deliverables.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.