agentleFS
zznabilzznabil/lean-agent-skill-collection/skills/architecture/SKILL.md

architecture

Skill1 starsChanged 3 months agoMITView on GitHub

Design module boundaries, data ownership, interfaces, domain models, migrations, refactors, and architecture decision records from real constraints. Use for structural choices with lasting change cost.

136 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing, bash-linux 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.
  • SKB3002Skill

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 6 projects that use this

  • xenitV1Skill

    bash-linux

    Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.

    Also in 8 projects that use this

  • xenitV1Skill

    red-team-tactics

    Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting.

    Also in 8 projects that use this

  • SKB3002Skill

    nextjs-react-expert

    React and Next.js performance optimization from Vercel Engineering. Use when building React components, optimizing performance, eliminating waterfalls, reducing bundle size, reviewing code for performance issues, or implementing server/client-side optimizations.

    Also in 3 projects that use this

  • +8 more from xenitV1

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 118 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:

    Use ISO/IEC/IEEE 42010 to frame stakeholders, concerns and viewpoints.

    line 6
  2. Distinctive:

    Shared action: When one domain action appears through UI, HTTP, CLI, MCP, jobs or other surfaces, define it once behind typed input, …

    line 11
  3. Distinctive:

    Counterexamples and scope: Run inversion and a pre-mortem.

    line 18
  4. Distinctive:

    Use ASD-STE100-inspired short, active technical sentences and familiar words.

    line 22
  5. Distinctive:

    Use BCP 14 only for normative force.

    line 26
  6. Distinctive:

    Before risky or failure-prone work, warn, add any needed hold point and verify the safe state.

    line 27
  7. Distinctive:

    Avoid surprise scope; leave results usable or resumable.

    line 29

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

Use ISO/IEC/IEEE 42010 to frame stakeholders, concerns and viewpoints. For consequential quality trade-offs, use a small ATAM scenario review. Use ADR/MADR to record durable decisions. Use OpenAPI, JSON Schema, RFC 9457, RFC 9413, AsyncAPI or CloudEvents only where the interface requires them.

  1. Decision and constraints. Name the decision and its next consumer. Record constraints that can change it: users, scale, latency, availability, consistency, security, budget, team capability, compatibility and migration.
  2. Current system. Inspect callers, data ownership, interfaces, deployment, tests, incidents and observed pain before proposing changes.
  3. Quality and abuse cases. Select the dominant quality attributes. For consequential trade-offs, record stakeholder, scenario, required response, measure and downside. Map authority and untrusted-data boundaries, protected assets and realistic abuse cases.
  4. Domain model. Model established domain terms, scenarios, invariants and ownership. Design small, stable interfaces that hide substantial implementation.
  5. Shared action. When one domain action appears through UI, HTTP, CLI, MCP, jobs or other surfaces, define it once behind typed input, output, policy and errors. Keep surfaces thin. Keep authorization, validation, idempotency and observability consistent.
  6. Unknown mutation outcome. For a consequential retryable mutation, define success, failure and unknown. Record intent. Bind any idempotency key to the exact intent. Claim it atomically and retain it across the retry horizon. Reconcile state before retrying an unknown outcome.
  7. External contracts. At external boundaries, accept documented variants, normalize once, reject ambiguity and emit canonical errors. Use problem details for HTTP errors when applicable. Use versioned OpenAPI or JSON Schema, or AsyncAPI or CloudEvents for consequential event contracts.
  8. Alternatives and existing safeguards. Compare the current design, a minimal change and one credible alternative. Before removing a rule, adapter, dependency or workaround, establish why it exists and what depends on it.
  9. Migration order. For wide data or interface changes, prefer expand → backfill or dual-write → switch reads → verify zero old use → contract. Ship destructive steps last and separately.
  10. Operator questions. For critical production paths, define two to four operator questions. Then define the minimum logs, metrics, traces and alerts needed to answer them.
  11. Decision record. Record consequential choices in short decision records. Include context, options, decision, consequences, evidence and a revisit trigger.
  12. Counterexamples and scope. Run inversion and a pre-mortem. Remove speculative services, layers, abstractions and dependencies. Deliver boundaries and data flow, key interfaces, a decision table, migration, verification, operations, rollback, risks and unresolved decisions. Do not refactor unrelated working code for aesthetic uniformity.

Communication kernel

Number ordered actions; group long lists without hiding required items. After interruption or task change, restore relevant completed/current/pending state, not repetitive status each turn. Preserve language, exact tokens, formats, permissions and evidence. Never invent estimates or diagnose readers. Show verified outcomes and factual errors; give a concrete next action only if work remains. If trusted root AGENTS.md is loaded, its policy governs. Otherwise apply this standalone kernel. Do not claim root activation without evidence. Use the architecture frameworks above only for their stated tasks.

  • Use ASD-STE100-inspired short, active technical sentences and familiar words. Use ISO 704-inspired stable concepts and terminology. Use Diátaxis to separate how-to, reference and explanation when useful. Do not claim formal standards conformance from stylistic guidance.
  • Lead with the supported result, action or blocker. Report fresh verification, material uncertainty and remaining user action. Omit routine tool narration and praise.
  • State verified failure and evidenced responsibility directly. Correct actual agent errors or give the next safe action.
  • Preserve facts, negation, uncertainty, evidence limits, permissions, quotations, requested voice and exact artefact formats.
  • Use BCP 14 only for normative force. Important requirements name one actor, action and observable check; do not turn advice into mandates.
  • Before risky or failure-prone work, warn, add any needed hold point and verify the safe state. State the expected result, failure sign and recovery. Explain difficult mechanisms simply; use compliant/noncompliant contrasts only when useful.
  • For measurable multi-step work with a defensible total, show named 20-cell ASCII progress, rounded down from processed items, separately from the verdict. Processed does not mean passed. Otherwise report phase and evidence.
  • Avoid surprise scope; leave results usable or resumable. Keep simple replies short without truncating needed detail. Omit routine Summary headings and closing recaps. Use TL;DR only when helpful for a complex response, and place it first.

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.