agentleFS
kriscardkriscard/Skills/skills/dev/architect/SKILL.md

architect

Skill14 starsChanged 4 months agoMITView on GitHub

Guides architecture decisions about service/module boundaries, system trade-offs, ADRs, data flow, rendering strategy, scaling strategy, API protocols, persistence choices, and code organization. Use when the user asks "how should I structure this", "what's the right approach", or needs a decision that affects multiple modules, teams, deployment boundaries, or future reversibility. Do not use for routine React implementation, PR review, or simple refactors unless the user is making an architectural decision.

95 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use figure-it-out, setup-pstack 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.
  • finograficSkill

    figure-it-out

    Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies.

    Also in 22 projects that use this

  • shishivSkill

    setup-pstack

    Configure pstack delegation against the active Pi host. Use for /skill:setup-pstack, "configure pstack models", or checking delegation readiness.

    Also in 15 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 8 projects that use this

  • jtarorehSkill

    Poteto Mode

    poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

    Also in 5 projects that use this

  • TheOnlyFusionCubeSkill

    principle-attack-the-premise

    Inventory who actually owns or exhibits the imbalance, then challenge the shared premise before writing another patch. Use when two or more fixes that share one premise have failed the same gate.

    Also in 11 projects that use this

  • TheOnlyFusionCubeSkill

    principle-test-behavior-not-implementation

    Call the system the way its consumer does and assert meaningful observable output; avoid mocks or assertions that only mirror internal calls. Use when when writing or evaluating tests.

    Also in 11 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 88 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask only if the answer is blocking.

    line 20
  2. Distinctive:

    Ask one focused question at a time when clarification is required

    line 22
  3. Distinctive:

    Before recommending a solution, identify the symptom.

    line 51
  4. Very specific:

    If you see these symptoms, load references/code-smells.md or references/design-principles.md.

    line 63
  5. Very specific:

    Rendering strategy: use references/frontend-patterns.md for CSR/SSR/SSG/ISR/RSC/Streaming/Edge trade-offs.

    line 67
  6. Very specific:

    API protocol: use references/fullstack-patterns.md for REST vs GraphQL vs gRPC.

    line 68
  7. Very specific:

    Durable decision record: use references/decision-artifacts.md for ADRs and C4 diagrams.

    line 69

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

Architect

Methodology: Walk the Decision Tree

Architecture is about trade-offs, not best practices. Gather enough context to make the decision explicit, then present options.

  • Ask only if the answer is blocking; otherwise inspect the codebase or state assumptions
  • Ask one focused question at a time when clarification is required
  • Provide your recommended answer for each blocking question
  • Resolve dependencies between decisions sequentially — don't jump ahead

Gather at minimum:

  • What exists today — greenfield or evolving an existing system?
  • Scale — users today, projected in 12 months
  • Team — size, expertise, operational maturity
  • Trigger — why now? pain point, new feature, scale issue?
  • Constraints — budget, timeline, compliance, existing infrastructure

Then present 2–3 options with explicit trade-offs — never a single "right answer."

Reference Files

Load the relevant reference file based on context. Read only what the conversation needs.

PriorityLoad whenReference
1 — HighCode organization, module design, why codebase feels hard to changereferences/design-principles.md
1 — HighWhy code is hard to maintain, identifying what to refactor, when to refactorreferences/code-smells.md
2 — HighService boundaries, API contracts, BFF, fullstack performance antipatternsreferences/fullstack-patterns.md
2 — HighComponent architecture, state management, rendering strategy, frontend performancereferences/frontend-patterns.md
3 — MediumBuild/buy, monolith/services, SQL/NoSQL, sync/async, ADRs, C4 diagramsreferences/decision-artifacts.md
3 — Medium"What structural pattern should I use?", plugin systems, composing/adapting systemsreferences/patterns-structural.md
3 — MediumCommunication patterns, event-driven design, state machines, encapsulating algorithmsreferences/patterns-behavioral.md

Complexity Red Flags (Diagnose First)

Before recommending a solution, identify the symptom. These are fast first-pass signals.

Ousterhout's 3 complexity symptoms:

  • Change amplification — one logical change requires edits in many unrelated places
  • Cognitive load — developer must hold too much context to make a change safely
  • Unknown unknowns — it's not obvious what must change when something else changes

Architecture-level smells (Fowler):

  • Shotgun Surgery — one change touches many unrelated files → missing abstraction or wrong boundary
  • Divergent Change — one module changes for many unrelated reasons → SRP violation
  • Feature Envy — a function/hook is more interested in another module's data than its own → wrong ownership

If you see these symptoms, load references/code-smells.md or references/design-principles.md.

Quick Decision Checks

  • Rendering strategy: use references/frontend-patterns.md for CSR/SSR/SSG/ISR/RSC/Streaming/Edge trade-offs.
  • API protocol: use references/fullstack-patterns.md for REST vs GraphQL vs gRPC.
  • Durable decision record: use references/decision-artifacts.md for ADRs and C4 diagrams.

Adding architectural complexity has real costs: slower iteration, operational burden, hiring requirements. Evaluate whether the complexity is paid for at current scale.

Output Contract

End with:

  1. Recommendation
  2. 2–3 alternatives considered
  3. Trade-offs and risks
  4. Assumptions
  5. Next concrete step
  6. ADR draft only if the decision is hard to reverse

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.