agentleFS
theishandubeytheishandubey/dotclaude/skills/spec/SKILL.md

spec

Skill2 starsChanged 15 days agoMITView on GitHub

Use when a feature request is too vague to build, to interview the user and turn the answers into acceptance cases, a test plan and thin slices.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backprop, ios-clean 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.
  • JuliusBrusseeSkill

    backprop

    Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.

    Also in 4 projects that use this

  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • bastosSkill

    ios-design-review

    Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".

    Also in 5 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 6 projects that use this

  • ShreyRaviSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 7 projects that use this

  • +2 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the code the request touches before asking anything.

    line 13
  2. Distinctive:

    When a fork can be settled by running something (behavior, timing, output, layout), run it and let the result decide.

    line 15
  3. Distinctive:

    Ask the user only for decisions: what they want, what they prefer, what they will trade.

    line 16
  4. Distinctive:

    Before designing, state the premises the request rests on as short sentences the user can agree or disagree with:

    line 20
  5. Distinctive:

    Treat the open decisions as a tree: some can only be asked once others are settled.

    line 30
  6. Distinctive:

    When a question is a real choice between approaches, show two or three: the smallest that works, the one you would want in a year, and what …

    line 35
  7. Distinctive:

    Wait for the answers, then work out the next round.

    line 36
  8. Distinctive:

    Stop when no open decision is left and nothing is silently assumed.

    line 38
  9. Distinctive:

    Use the project's own words for things, and keep file paths and code out of it unless a snippet states a decision more exactly than prose …

    line 43
  10. Very specific:

    Write the spec where the project keeps its specs.

    line 66
  11. Very specific:

    If it has no such place: .claude/specs/ in the home repo when the workspace has one, otherwise .claude/specs/ in the repo, left uncommitted.

    line 67

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

Spec

Turn a vague request into something that can be built and checked. The output is a spec file; no product code is written here.

1. Find the facts yourself

Read the code the request touches before asking anything. What exists, how it behaves and what it would cost are facts, and finding facts is your job. When a fork can be settled by running something (behavior, timing, output, layout), run it and let the result decide. Ask the user only for decisions: what they want, what they prefer, what they will trade.

2. Challenge the request once

Before designing, state the premises the request rests on as short sentences the user can agree or disagree with:

  • the problem being solved, and for whom;
  • what happens if nothing is built;
  • what existing code already solves part of it.

A premise the user rejects changes the problem; go back to step 1.

3. Interview in rounds

Treat the open decisions as a tree: some can only be asked once others are settled. Each round, ask every question whose prerequisites are already settled, and no question that depends on another in the same round.

  • Number the questions.
  • Give your recommended answer with each one, and word the question so "yes" accepts it.
  • When a question is a real choice between approaches, show two or three: the smallest that works, the one you would want in a year, and what each costs.
  • Wait for the answers, then work out the next round.

Stop when no open decision is left and nothing is silently assumed. Confirm the shared understanding in a few lines before writing.

4. Write the spec

Use the project's own words for things, and keep file paths and code out of it unless a snippet states a decision more exactly than prose can.

  • Problem: from the user's side.
  • Outcome: what is true when this is done.
  • Acceptance cases: numbered, each one observable as pass or fail: "given X, when Y, then Z". Include the awkward cases the interview surfaced, and what must not happen.
  • Decisions: each choice made and why, including interfaces, data shape and contracts.
  • Test plan: where behavior is tested (the highest existing level that reaches it), which acceptance cases each test covers, and similar tests already in the codebase.
  • Out of scope: what was discussed and left out.

5. Slice it

Break the work into thin slices, each cutting through every layer it needs and checkable on its own.

  • A slice names the acceptance cases it makes pass and the command that proves it.
  • A slice lists the slices that block it; one with no blockers can start now.
  • Preparatory refactoring comes first, as its own slice.
  • One mechanical change that touches the whole codebase is not sliced vertically: add the new form beside the old, move callers in batches, then delete the old form.

Show the slices and their blockers to the user and adjust until they agree on the size and order.

Where it goes

Write the spec where the project keeps its specs. If it has no such place: .claude/specs/ in the home repo when the workspace has one, otherwise .claude/specs/ in the repo, left uncommitted. End by naming the file, the number of acceptance cases and slices, and any decision that is still the user's to make.

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.