agentleFS
sohaibdevvsohaibdevv/AI-AGENT-SKILLS/skills/architecture-design/SKILL.md

architecture-design

Skill2 starsChanged 6 months agoMITView on GitHub

Design systems at the right scale with explicit trade-off documentation

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-design, git-workflow 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.
  • 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

  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 8

    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:

    Before building any system with more than 2 components

    line 14
  2. Distinctive:

    When adding a new service to an existing system

    line 15
  3. Distinctive:

    When the existing architecture is causing repeated failures

    line 16
  4. Distinctive:

    Before selecting a technology stack

    line 17
  5. Distinctive:

    Document: the decision, the context, the alternatives considered, the rationale, and the consequences.

    line 43
  6. Distinctive:

    No discussion of failure modes

    line 61
  7. Distinctive:

    All components share a database

    line 62
  8. Distinctive:

    No ADR for decisions that are hard to reverse

    line 64

“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

Overview

Architecture design is the discipline of making the decisions that are hard to reverse later. Good architecture is not the most elegant - it is the simplest design that satisfies constraints today and can be evolved tomorrow. Every architecture decision has costs; this skill makes them explicit.

When to Use

  • Before building any system with more than 2 components
  • When adding a new service to an existing system
  • When the existing architecture is causing repeated failures
  • Before selecting a technology stack

Process

Step 1: Establish the constraints

List: scale targets, latency requirements, consistency requirements, team size, deployment environment, budget, regulatory constraints. Architecture that ignores constraints is fiction.

Step 2: Identify the quality attributes

Rank the system's quality attributes in priority order: availability, consistency, latency, throughput, security, maintainability, cost. You cannot optimize all of them - make the trade-offs explicit.

Step 3: Define the component boundaries

Identify the major components and their responsibilities. Apply the Single Responsibility Principle at the system level: each component should own one thing well.

Step 4: Define the data flow

Draw how data moves through the system. Where does it originate? Where is it stored? Where is it transformed? Where does it exit? This reveals coupling and bottlenecks.

Step 5: Choose synchronous vs async communication

For each inter-component call: does the caller need the result immediately? If no, use async. Sync calls are coupling in disguise.

Step 6: Design for failure

For each component and connection: what happens when it fails? Design for partial failure, not just total failure. Document: retry strategy, circuit breaker, fallback, timeout.

Step 7: Plan the data model at boundaries

Define what data crosses each boundary. Avoid sharing databases between services. Define API contracts between components.

Step 8: Write an ADR (Architecture Decision Record)

Document: the decision, the context, the alternatives considered, the rationale, and the consequences. An architecture without ADRs cannot be maintained.

Step 9: Review against requirements

Map each architecture component back to a requirement. If a component has no requirement, remove it.

Anti-Rationalizations

"We'll start simple and scale later" Starting simple is correct. But "we'll scale later" often means "we built an architecture that cannot scale without a rewrite." Design for 10x your current load, not 1000x.

"Microservices are more scalable" Microservices are more operationally complex. Unless your team can't deploy frequently due to coupling, a monolith is simpler. Don't distribute a monolith; build a modular monolith first.

"We don't need an ADR for this" Future engineers will ask why this decision was made. ADRs cost 30 minutes. Re-learning why a decision was made costs days.

Red Flags

  • No discussion of failure modes
  • All components share a database
  • Synchronous calls across service boundaries that don't need to be synchronous
  • No ADR for decisions that are hard to reverse
  • Architecture driven by technology preference, not requirements

Verification Requirements

  • Quality attributes ranked and trade-offs documented
  • Component boundaries defined with single responsibilities
  • Data flow diagrammed
  • All synchronous calls justified
  • Failure modes documented for each component
  • ADR written for each non-obvious decision
  • Architecture mapped back to requirements

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.