agentleFS
sreejithramansreejithraman/SreeStack/skills/architect/SKILL.md

architect

Skill1 starsChanged 16 days agoMITView on GitHub

Sketch caller usage, types, signatures, and module structure, then stay in the loop while implementation fills in. Use for architect requests or consequential interface and ownership decisions that need a design to guide implementation.

174 other projects use a version of this, 57 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation 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.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • tristanphvnSkill

    ketchup-video

    Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.

    Also in 14 projects that use this

  • jaydubya818Skill

    figure-it-out

    Use when novel or multi-phase work needs an auditable workflow and no narrower playbook fits.

    Also in 55 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 29 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 20 projects that use this

  • +6 more from naman10parikh

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 162 edited versions we read keep these.

  • 9

    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 how when a subsystem walkthrough would establish missing runtime and data-flow grounding.

    line 38
  2. Distinctive:

    When the caller supplies a selected design, reuse its rationale and checked findings and experiments while they still apply to the current …

    line 46
  3. Distinctive:

    If independent candidates converge, use arena's consensus branch: record why the constraints favor that shape and which alternatives were …

    line 61
  4. Distinctive:

    Keep temporary scaffolding within the development boundary and restore the delivery checks before handoff, per Outcome-Oriented Execution.

    line 96
  5. Distinctive:

    If the human pushes back on the shape, treat that as Phase A evidence.

    line 102
  6. Distinctive:

    Use the project's implementation skills, including tdd at the agreed interfaces.

    line 115
  7. Distinctive:

    Verify the real workflow with verify, and use showroom for demonstrations and access to the integrated result.

    line 122
  8. Distinctive:

    If implementation keeps producing friction the sketch can't absorb, throw the sketch out.

    line 133
  9. Distinctive:

    Use judgment. A few edge cases don't condemn an architecture.

    line 149

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

Sketch types, function signatures, class shapes, and module structure with not implemented bodies and pseudocode. Synthesize across independent perspectives, then fill in code against the chosen sketch within the requested scope. Codebase Design supplies the shared module, interface, depth, seam, adapter, leverage, and locality vocabulary.

Start

Open a task plan with one entry per applicable phase before starting.

  1. Ground
  2. Sketch
  3. Agree
  4. Implement
  5. Scrap, when the architecture is wrong

Resolve the finish line from the request. A design-only or planning request ends with the design or plan. An implementation request continues through implementation and verification. Routine changes with an established shape use the normal implementation workflow; they need no design panel.

Phase A: Ground the problem

Build a real mental model of every system the new code touches. Read the affected callers, types, state owners, project glossary, and relevant ADRs. Naming a file isn't grounding. Explain how data and control move through the affected system and which invariants the new design must preserve. If the design redefines ownership or layering, also use why on the existing shape so the rationale becomes a constraint, not a guess.

Use how when a subsystem walkthrough would establish missing runtime and data-flow grounding.

Skip Phase A only when the work is genuinely greenfield with no surrounding system to integrate. Even then, name the requirements and caller constraints.

Phase B: Sketch

When the caller supplies a selected design, reuse its rationale and checked findings and experiments while they still apply to the current callers and requirements. Fill missing parts of the design package and proof; reopen only unresolved or invalidated choices. If the shape is settled, continue to Phase C without requiring a new panel.

For a fresh design decision, run arena with the design-sketch task and the Phase A grounding artifacts. Pass the design candidate brief to each runner. Model selection, delegation, isolation, and recovery belong to orchestration.

Design it twice. Require at least two independent candidates before synthesis, even when the first looks sufficient. This is Exhaust the Design Space made concrete. Whole-shape alternatives, not point fixes inside one shape. If independent candidates converge, use arena's consensus branch: record why the constraints favor that shape and which alternatives were rejected. Do not manufacture structural differences just to meet a count.

Screen every candidate against Codebase Design's ownership and enforcement checks before synthesis. Assume the next contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Prefer the design where a change that looks right from one file is right for the whole repo.

Compare viable candidates on interface depth. Prefer the design that hides more complexity behind a smaller, simpler public surface. A rich interface can keep call chains short by concentrating capability instead of scattering it across layers.

Answer empirical questions by running something. Use prototype for the interface a person sees or uses, and architecture experiments for caller compatibility, state, concurrency, or performance. Record what each experiment proved and what stays unproven before finalizing the synthesis.

Arena returns one synthesized design package. Its synthesis decision fills the rationale's "Synthesis decision" section.

Phase C: Agree (opt-in)

For an implementation request, proceed directly with the accepted design unless the user requested a checkpoint. Opt in when the invoker explicitly asks: "architect with checkpoint," "stop and show me before implementing," or similar. Then surface the accepted design and pause for sign-off. A design-only request is complete with the checked design. A planning-only request completes with the ordered plan described below. Neither enters implementation.

The accepted design can be its own commit when commits are in scope. Keep temporary scaffolding within the development boundary and restore the delivery checks before handoff, per Outcome-Oriented Execution. For requested independent assessment before implementing, use review on the concrete sketch and experiment evidence.

If the human pushes back on the shape, treat that as Phase A evidence. Re-ground and re-run Phase B before writing more code.

Phase D: Implement against the sketch

For implementation requests, replace not implemented bodies with code, pseudocode with logic. The accepted design is the contract. Deviations from it are signal to surface, not friction to absorb silently. If a function needs a parameter the sketch didn't anticipate, ask whether the sketch was wrong, the requirement was missed, or the implementation is overreaching. Resolve technical questions from the code and experiments; bring product choices to the user only when their answer materially changes the result.

Use the project's implementation skills, including tdd at the agreed interfaces. For multi-part work, order the implementation into small verifiable units; a requested migration plan names affected callers, dependencies, compatibility paths, and the proof for each unit. Record plan steps after the design's technical uncertainties are checked or explicitly bounded.

Verify the real workflow with verify, and use showroom for demonstrations and access to the integrated result. Review the complete integrated change through review-fix-loop, or let pr own that loop when publishing the same scope. Remove temporary stubs and comparison controls from the production result. Preserve the chosen design, decisive evidence, and reasons in the project record already in scope.

Phase E: Scrap when the architecture is wrong

If implementation keeps producing friction the sketch can't absorb, throw the sketch out. Don't bolt fixes onto a wrong design, per Redesign From First Principles and Fix Root Causes.

The signal is a pattern, not single instances. Tells:

  • The same shape of workaround appearing repeatedly across unrelated code.
  • Multiple unrelated edge cases that all need special-case branches.
  • Types that need escape hatches (any, casts, optional fields always set in practice) to compile.
  • The "we need a lock" reflex when the sketch said the state wasn't shared.
  • Callers having to know the abstraction's internal rules to use it.
  • Two or more independent Phase D deviations of the same shape across the implementation.

Use judgment. A few edge cases don't condemn an architecture. Some problems are legitimately complex. Complexity in the data is not complexity in the design.

When you scrap:

  1. Re-ground in what's been built, including the new caller and runtime evidence.
  2. Redesign as if the new constraints had been day-one assumptions.
  3. Subtract before adding. The new sketch should be smaller than the old one before it grows.
  4. Return to Phase B and re-run arena within the requested scope.

Outputs

The caller's usage is written first and the type sketch derived from it. One file with new types and signatures for small changes. Module map plus type definitions for larger work. The rationale ships alongside, shaped per the design rationale, including the usage sketch and the synthesis decision. Distinguish proposed behavior from checked claims. Return experiment commands, evidence, remaining gaps, and the requested plan or verified implementation when those are in scope.

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.