agentleFS
kumaran-iskumaran-is/claude-code-onboarding/.claude/skills/architecture-design/SKILL.md

architecture-design

Skill36 starsChanged 6 months agoMITView on GitHub

Full-stack system architecture skill for designing C4 diagrams, API contracts, sequence diagrams, deployment topologies, and ADRs. Use when designing new systems, choosing tech stacks, defining service boundaries, or producing architecture documentation before implementation starts.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use database-design, performance-optimization and 3 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.
  • CloudAI-XSkill

    database-design

    Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.

    Also in 8 projects that use this

  • dylantarreSkill

    performance-optimization

    Use when animation runs slow, janky, or causes frame drops

    Also in 5 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 5 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Iron Law: Never start implementation without an approved architecture plan.

    line 18
  2. Distinctive:

    Read reference/architecture-templates.md for diagram and deployment templates

    line 38
  3. Distinctive:

    Use loaded templates as starting points

    line 43
  4. Distinctive:

    Follow conventions from CLAUDE.md (package structure, naming, reactive patterns)

    line 45
  5. Distinctive:

    Before making architecture decisions, consult these sources:

    line 53
  6. Distinctive:

    Unclear artifact type: Ask user to specify (diagram, API contract, deployment, ADR).

    line 63
  7. Distinctive:

    Ambiguous tech stack: Default to project conventions in CLAUDE.md or ask for clarification if multiple options exist.

    line 65

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

Iron Law: Never start implementation without an approved architecture plan; always produce API contracts and sequence diagrams before code.

Architecture Design Skill

Design system architecture, API contracts, deployment topologies, and technology decisions for full-stack applications.

Supported Design Artifacts:

  • System context diagrams (C4 model, Mermaid)
  • Sequence diagrams (service interactions)
  • API contracts (OpenAPI 3.x)
  • Deployment topologies (Docker Compose)
  • Architecture Decision Records (ADRs)

Process:

  1. Analyze Request
    • Identify which artifacts the user needs
    • Determine scope: single service, multi-service, full system
  2. Load Templates
    • Read reference/architecture-templates.md for diagram and deployment templates
    • For detailed ADR workflows: delegate to the architecture-decision-records skill
    • For full OpenAPI spec generation: delegate to the openapi-spec-generation skill
  3. Generate Artifacts
    • Use loaded templates as starting points
    • Adapt to the project's tech stack (Spring Boot, Node.js, Angular, Flutter, PostgreSQL, Firebase)
    • Follow conventions from CLAUDE.md (package structure, naming, reactive patterns)
  4. Present and Iterate
    • Show generated artifacts with explanations
    • Offer refinement options (add services, change patterns, adjust topology)

Documentation Sources

Before making architecture decisions, consult these sources:

SourceURL / ToolPurpose
Dockerhttps://docs.docker.com/llms.txtContainer config, Compose, multi-stage builds
MCP Protocolhttps://modelcontextprotocol.io/llms-full.txtMCP integration architecture and patterns
All librariesContext7 MCPLatest API references for any technology

Error Handling

Unclear artifact type: Ask user to specify (diagram, API contract, deployment, ADR).

Ambiguous tech stack: Default to project conventions in CLAUDE.md or ask for clarification if multiple options exist.

Reference Files

FileWhen to Load
reference/architecture-templates.mdAlways — diagram and deployment templates
reference/context-discovery.mdBefore recommending any architecture — gather scale, team, timeline context first
reference/pattern-selection.mdWhen choosing between architectural patterns — decision trees per concern
reference/implementation-patterns.mdWhen implementing Clean Architecture or Hexagonal Architecture — Python examples
reference/cloud-service-mapping.mdGCP-primary cross-cloud service equivalents

Load order for new system design:

  1. context-discovery.md — classify the project (MVP / SaaS / Enterprise)
  2. pattern-selection.md — choose the right pattern for the complexity
  3. architecture-templates.md — generate diagrams and deployment topology
  4. implementation-patterns.md — if Clean Arch or Hexagonal is chosen

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.