agentleFS
shahvatsalofficialshahvatsalofficial/archsutra-ai/skills/architecture-design/SKILL.md

architecture-design

Skill4 starsChanged 32 days agoApache-2.0View on GitHub

Design the architecture of a new system or feature from requirements. Captures numeric non-functional targets, compares two or three options with weighted scoring, decides with an ADR, and produces C4 diagrams, data model, API boundaries, deployment view and a thin-slice roadmap. Use this skill whenever the user says design, architect, "how should we build", HLD or LLD, tech-stack choice, monolith versus microservices, or asks for diagrams or an ADR for something that does not exist yet, even if they only describe a product idea. Do not use it to review existing code (use architecture-audit) or to plan a migration (use architecture-modernization).

36 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use results-report, daily-coding 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.
  • Galaxy-DawnSkill

    results-report

    This skill should be used when the user asks to "write an experiment report", "summarize experimental results", "do experiment retrospection", "write a results report", "写实验总结报告", "写实验复盘", or mentions turning completed experiment artifacts into a structured, decision-oriented research report. It assumes strict analysis should come from `results-analysis` first.

    Also in 3 projects that use this

  • Clay-HHKSkill

    daily-coding

    Daily coding assistant that auto-triggers when writing/modifying code, providing a core checklist.

    Also in 3 projects that use this

  • Clay-HHKSkill

    kaggle-learner

    This skill should be used when the user asks to "learn from Kaggle", "study Kaggle solutions", "analyze Kaggle competitions", or mentions Kaggle competition URLs. Provides access to extracted knowledge from winning Kaggle solutions across NLP, CV, time series, tabular, and multimodal domains.

    Also in 3 projects that use this

  • kharlamenkodevSkill

    bug-detective

    Also in 4 projects that use this

  • gclmSkill

    observability-design

    Design logs, metrics, traces, alerts, and debugging signals so systems can be operated and diagnosed before incidents expose blind spots.

    Also in 3 projects that use this

  • Google CloudSkill

    citation-verification

    Verify that citations in a document resolve to real records and that claimed titles match. Use before trusting a document's reference list.

    Also in 4 projects that use this

  • +2 more from Clay-HHK

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 1

    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. Distinctive:

    Justify every added component: If you cannot say what breaks without it, remove it.

    line 30
  2. Very specific:

    Write the design as both docs/architecture/design.md and docs/architecture/design.html.

    line 37

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

Architecture Design

Turn requirements into a justified, buildable architecture that the team can start on this week.

Why this skill is built the way it is

  • Most bad architectures come from unstated numbers, not from bad technology choices. A design for "fast and scalable" cannot be checked; a design for "p95 under 300 ms at 50 requests per second, 99.9% availability" can.
  • Teams over-build. Every extra moving part is operational cost forever, so the default is the simplest style that meets the stated targets, and each addition needs a reason.
  • Decisions rot when their reasons are lost. So choices end in an ADR with the options that were rejected.

Workflow

  1. Capture requirements as numbers. Use references/nfr-checklist.md. Record users, scale, data sensitivity, latency, availability, recovery targets (RTO, RPO), budget, team size, deadlines, compliance, existing systems. Any number the user did not give is unknown: ask once, then continue with a labeled assumption. Do not invent figures.
  2. Name the hard problem. One or two sentences on what makes this design difficult (for example "strong consistency across two regions" or "bursty uploads"). Everything else should be boring.
  3. Generate two or three viable options (for example modular monolith, event-driven services, serverless). Score them against weighted criteria with references/options-scoring.md. Show how the winner changes if the two weakest assumptions are wrong.
  4. Decide with an ADR using references/adr-template.md: context, options, decision, consequences, revisit triggers.
  5. Model it. Produce only the views the audience needs: C4 level 1 and 2 (level 3 for the part that is hard), one sequence diagram for the critical flow, a data model with ownership and consistency, API boundaries, the auth model, and a deployment view. Use references/design-doc-template.md.
  6. Plan operations early. Observability, SLOs, failure modes, backup and restore, cost envelope. State the pricing source and date for every cost figure; never quote live prices from memory.
  7. Roadmap as a thin vertical slice first, then milestones, each with an acceptance test and its biggest risk.

Rules that keep the design honest

  • Label claims observed, inferred, proposed or unknown. In a design, most things are proposed; say so, and cite requirements by number.
  • Justify every added component. If you cannot say what breaks without it, remove it.
  • Defer reversible choices, decide irreversible ones carefully. Data models, public APIs and identity are hard to change; frameworks usually are not.
  • Diagrams must trace to requirements. A box with no requirement behind it is decoration.
  • Do not claim certification (security, privacy, compliance). Name frameworks as review references only.

Files the reader gets

Write the design as both docs/architecture/design.md and docs/architecture/design.html. Save the Markdown, then run archsutra html docs/architecture/design.md so the HTML page is generated (headings, tables, diagrams). Do not hand-write HTML. Do not leave the design only in chat. ADRs in the same document follow the same pair.

Hand-offs

Security-critical flows go to threat-modeling. Before sharing, run architecture-verification. When the design replaces an existing system, continue with architecture-modernization.

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.