agentleFS
MagicJoshMagicJosh/ras/skills/spec/SKILL.md

spec

Skill1 starsChanged 54 days agoMITView on GitHub

Use when a request will change files and no approved specs/current.md exists yet, such as a bug fix, a feature, a refactor or a config change. Writes the spec, asks what is unclear, stops for approval.

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tickets, make-pdf and 9 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.
  • toveruxSkill

    tickets

    Break a spec, plan, or the current conversation into tracer-bullet tickets, each declaring its blocking edges.

    Also in 3 projects that use this

  • chloropineSkill

    make-pdf

    Turn any markdown file into a publication-quality PDF. Proper 1in margins, intelligent page breaks, page numbers, cover pages, running headers, curly quotes and em dashes, clickable TOC, diagonal DRAFT watermark. Not a draft artifact — a finished artifact. Use when asked to "make a PDF", "export to PDF", "turn this markdown into a PDF", or "generate a document". (cgstack) Voice triggers (speech-to-text aliases): "make this a pdf", "make it a pdf", "export to pdf", "turn this into a pdf", "turn this markdown into a pdf", "generate a pdf", "make a pdf from", "pdf this markdown".

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 5 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • chloropineSkill

    context-restore

    Restore working context saved earlier by $context-save. Loads the most recent saved state (across all branches by default) so you can pick up where you left off — even across Conductor workspace handoffs. Use when asked to "resume", "restore context", "where was I", or "pick up where I left off". Pair with $context-save. Formerly /checkpoint resume — renamed because Codex treats /checkpoint as a native rewind alias in current environments. (cgstack)

    Also in 3 projects that use this

  • GoogleSkill

    metrics

    Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

    Also in 3 projects that use this

  • +1 more from chloropine

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 79 edited versions we read keep these.

  • 4

    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:

    Write the contract before you touch any project file.

    line 8
  2. Distinctive:

    Read the code the request touches.

    line 12
  3. Very specific:

    Write specs/current.md in the project root with the sections below.

    line 14
  4. Distinctive:

    Blast radius: search for every caller and every file the change touches.

    line 23
  5. Very specific:

    Start the file with # Spec: <title>.

    line 26
  6. Distinctive:

    Do not write project files with Bash or PowerShell to get around the gate.

    line 38

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

Write the contract before you touch any project file. The spec gate blocks edits until the user approves.

Steps

  1. Read the code the request touches. Trace the real flow. Do not ask what the repo can answer.
  2. Clarify. Ask before you write the spec when the request leaves open what to build, for whom, or what done means, or when two reasonable readings give the user different results. A subjective goal (better, nicer, faster) is unclear unless the request or the code defines it. Decide internal details yourself. Use the AskUserQuestion tool: at most 4 questions per round, each with 2 to 4 concrete options, your recommended option first. If the tool is not available, ask the same way in your message, then stop and wait. Ask again only about what the answers left open. Stop when you know every answer that would change what you build or how you check it. After 3 rounds, write the spec and put the rest under Assumptions.
  3. Write specs/current.md in the project root with the sections below.
  4. Writing the spec is your last action. Copy the Decisions lines into your message, then stop and tell the user to reply with exactly: approve spec.

Sections

  • Goal: one line.
  • Decisions: at most 3 lines. Each line: the choice, the rejected alternative, and hard to undo yes or no. Write "none" when the change has one obvious shape.
  • Acceptance criteria: each one is a check that can run, with its command. "Works well" is not a check.
  • Non-goals: what you will not do.
  • Blast radius: search for every caller and every file the change touches. List them.
  • Assumptions: what you decided without the user, each with the default you took. Skip the section if there are none.

Start the file with # Spec: <title>. Put the goal line under ## Goal.

Rules

  • Scale the size to the change: a typo gets 3 lines, a feature one page.
  • A clear request gets no questions.
  • The user can reply ask me at any point before approval. Then run step 2 on every Decision and Assumption, and rewrite the spec with the answers.
  • Bug fix: criterion 1 reproduces the bug. Run it before any fix and record that it fails. A check that passes before the fix proves nothing.
  • Structural change means a new module or service, a new data store or data flow, a changed interface between components, or anything hard to undo. For these, load architecture or distributed-architecture. Add a Trade-offs section: the options, the cost of each, your pick and why. Where it helps, add a fitness function as a criterion, for example "module A does not import B", checked with grep.
  • Risky change means auth, secrets, permissions, deletes of data, or production. For these, load security-check before you write the spec. Add a Security section with the risks and the checks for them.
  • A new request in the middle of a task updates specs/current.md. That breaks the approval. Stop again for approve spec.
  • The user can reply skip spec for a trivial change. Then the gate lets edits through until the next prompt.
  • Do not write project files with Bash or PowerShell to get around the gate.

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.