agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/create-architecture/SKILL.md

create-architecture

Skill1 starsChanged 24 days agoMITView on GitHub

Writes the system architecture document with the technical director: rendering strategy, module and service boundaries, auth model, data flow, integrations, deployment topology, environments, observability and risks. Use after the stack is chosen and the PRD exists, before building features.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-control-manifest and 4 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.
  • lilangMaxSkill

    asset-spec

    Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.

    Also in 10 projects that use this

  • lilangMaxSkill

    create-control-manifest

    After architecture is complete, produces a flat actionable rules sheet for programmers — what you must do, what you must never do, per system and per layer. Extracted from all Accepted ADRs, technical preferences, and engine reference docs. More immediately actionable than ADRs (which explain why).

    Also in 10 projects that use this

  • MRCalderon3DSkill

    art-bible

    Define a visual direction that artists, UI, technical art, and marketing can execute consistently.

    Also in 10 projects that use this

  • +3 more from lilangMax

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the stack is not set, suggest /setup-stack and stop.

    line 24

“Common” is measured: kept by at least 6 in 10 of the 15 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

Create Architecture

Produces docs/architecture/architecture.md: how the system is built, in one document a new contributor can read in fifteen minutes. Decisions it needs that are expensive to reverse become ADRs via /architecture-decision.

Inputs

  • docs/product/prd.md (functional and non-functional requirements)
  • docs/specs/features/*.md (if any yet), docs/content/sitemap.md
  • ADRs in docs/architecture/adr/; docs/architecture/data-model.md
  • project.yaml: all of stack, budgets, a11y, i18n, privacy, project.type
  • For brownfield: bash .claude/scripts/detect-stack.sh and the code layout

If the stack is not set, suggest /setup-stack and stop.

Phases

Phase 1: Requirements that shape the architecture

Extract from the PRD and project.yaml: expected users and traffic, data sensitivity, regions, uptime expectation, budgets, integrations, offline/mobile needs, realtime needs, and the team (solo). Ask about any that are unknown.

Phase 2: Draft in parallel

Spawn technical-director (overall shape and trade-offs) with lead-frontend, lead-backend, devops-lead and security-lead in parallel, each drafting their sections of .claude/docs/templates/architecture.md:

  • Context: system context diagram (mermaid flowchart): users, the app, third-party services.
  • Rendering strategy per route group (static, ISR, SSR, client), with reasons.
  • Code organisation: monolith/modular monolith/monorepo; module boundaries by domain; where business logic lives; shared types and the contract.
  • Data: system of record, caches, queues, search, file storage; data flow for the key journeys (sequence diagram for the most complex one).
  • Auth model: provider, session type, authorisation layer, tenancy.
  • Integrations: payments, email, CMS, AI, analytics: how each is called, failure handling, webhook paths.
  • Deployment: hosting, environments (local, preview, staging?, prod), CI/CD flow, migrations step, secrets management, backups.
  • Observability: errors, logs, metrics, uptime, alert routing.
  • Security: trust boundaries, headers/CSP, rate limits, threat-model summary.
  • Performance: how budgets are met (caching, CDN, bundles).
  • Risks and open decisions: each with owner and the ADR or spike that resolves it.

Phase 3: Reconcile

Merge, remove contradictions, and check each decision matches an ADR or is listed as needing one. Present open decisions to the user and offer to run /architecture-decision for each, one at a time.

Phase 4: Approve and write

Show the document and ask "May I write this to docs/architecture/architecture.md?"

Output

docs/architecture/architecture.md from .claude/docs/templates/architecture.md.

Rigor

  • minimal: context, rendering, code organisation, deployment, risks.
  • standard: all sections.
  • full: all sections, plus a threat model (.claude/docs/templates/threat-model.md) by security-lead, and /architecture-review before Build.

Next step

/architecture-review, then /gate-check design.

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.