agentleFS
Codagent-AICodagent-AI/agent-skills/skills/spec/SKILL.md

spec

Skill30 starsChanged 7 months agoMITView on GitHub

Drives interactive requirement discovery to produce spec files. Use when the user says "spec this", "write specs", "create specs", or "run the spec skill".

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 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.
  • 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

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

  • 0

    Common

    Most of the 79 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not write a capability's spec until you have presented its proposed requirements and scenarios and the user has approved them.

    line 13
  2. Distinctive:

    Read the proposal and related existing specifications.

    line 18
  3. Distinctive:

    After approval, write the spec file using the format below.

    line 26
  4. Very specific:

    If behavior depends on an unresolved architectural choice, specify as much as is currently knowable and add <!-- deferred-to-design: …

    line 29
  5. Very specific:

    Use one file per capability: specs/<capability>/spec.md.

    line 37
  6. Distinctive:

    Write normative requirements with SHALL or MUST.

    line 38
  7. Very specific:

    Use ### Requirement: <name> and at least one #### Scenario: <name> per requirement.

    line 39
  8. Distinctive:

    Avoid scenarios about file contents, configuration structure, or skill text unless those are the actual public contract.

    line 42
  9. Distinctive:

    Use delta sections as applicable:

    line 45

“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

Turn the proposal's capabilities into testable behavioral requirements through collaborative discovery. Specifications define observable behavior, not architecture or implementation.

Do not write a capability's spec until you have presented its proposed requirements and scenarios and the user has approved them.

Process

  1. Read the proposal and related existing specifications. Use the proposal's capability names to determine the new or modified spec files. For modified capabilities, locate the current requirement blocks before drafting the delta.
  2. Work through capabilities one at a time. Use codagent:ask-questions to resolve material behavior, boundaries, errors, and edge cases. Ask only questions that affect observable behavior or scope, recommend a default when useful, and do not use a generic approval question as discovery.
  3. Present the complete proposed requirements and scenarios for that capability, including consequential assumptions or defaults inferred from context.
  4. After approval, write the spec file using the format below. Continue until each proposal capability has a corresponding spec.

If behavior depends on an unresolved architectural choice, specify as much as is currently knowable and add <!-- deferred-to-design: <reason> --> to the affected scenario. The design phase will complete or revise it. Do not ask architecture or implementation questions during specification.

Report the relative paths created. Do not invoke another lifecycle skill.

OpenSpec format

  • Use one file per capability: specs/<capability>/spec.md.
  • Write normative requirements with SHALL or MUST.
  • Use ### Requirement: <name> and at least one #### Scenario: <name> per requirement.
  • Scenarios describe observable WHEN/THEN behavior. Exactly four hashes on scenario headings are required by the parser.
  • Avoid scenarios about file contents, configuration structure, or skill text unless those are the actual public contract.

Use delta sections as applicable:

  • ## ADDED Requirements for new behavior.
  • ## MODIFIED Requirements for changed behavior. Copy the entire existing requirement block and all scenarios before editing it.
  • ## REMOVED Requirements with Reason and Migration.
  • ## RENAMED Requirements with FROM and TO.
## ADDED Requirements

### Requirement: <name>
<normative behavior>

#### Scenario: <name>
- **WHEN** <condition>
- **THEN** <observable result>

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.