agentleFS
Ecoa-PUC-RioEcoa-PUC-Rio/GAIDE/.claude/skills/spec-writer/SKILL.md

spec-writer

Skill8 starsChanged 3 months agoMITView on GitHub

Writes specs in the Spec-Driven Development (SDD) format — walks the user through spec → plan → tasks before any code. Use when the user asks for a new feature, a meaningful behavioral change, or when no corresponding spec exists in the specs/ directory.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use learn.

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

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 2

    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. Very specific:

    Read specs/constitution.md to know the non-negotiable principles.

    line 17
  2. Very specific:

    Check whether a related spec already exists in specs/.

    line 18
  3. Very specific:

    Create the file at specs/<feature-slug>/spec.md following this template:

    line 23
  4. Distinctive:

    Don't invent requirements: If something is ambiguous, ask the user.

    line 80
  5. Distinctive:

    Respect the constitution: If the feature violates a principle, flag it before proceeding.

    line 81

“Common” is measured: kept by at least 6 in 10 of the 20 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
<!-- GENERATED from agents/skills/spec-writer.md by scripts/sync-adapters.sh — edit the source and re-run; do not edit this file. -->

Skill: spec-writer

When to activate

  • The user asks for a new feature
  • The user describes a desired behavior without referencing implementation
  • No specs/<feature>/spec.md exists for it
  • There is ambiguity about what needs to be built

Before starting

  1. Read specs/constitution.md to know the non-negotiable principles.
  2. Check whether a related spec already exists in specs/.
  3. Confirm with the user: "I'll write the spec first, without touching code. OK?"

Structure of the spec to produce

Create the file at specs/<feature-slug>/spec.md following this template:

# Spec: <Feature name>

## Context
Why this feature exists. What problem it solves. For whom.

## Expected behavior
Executable description of what the application should do. Does not include *how*.

### Use cases
1. **Main case:** [given/when/then]
2. **Alternative case:** [given/when/then]
3. **Error case:** [given/when/then]

## Acceptance criteria
Verifiable list (each item testable):
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] ...

## Out of scope
Explicitly list what this feature does NOT do.

## Security considerations
Data sensitivity, authentication/authorization, abuse cases. "None" is acceptable; silence is not. Each abuse case becomes a negative acceptance criterion.

## Dependencies
Other specs, systems, or MCPs required.

## Constitution adherence
Confirm which constitution principles apply and how they will be honored.

Workflow

Step 1 — Spec

Drive a conversation to fill in the spec. Don't infer behaviors that weren't stated.

Step 2 — Plan

Once the spec is user-approved, create specs/<slug>/plan.md with:

  • Architectural decisions needed (if relevant, suggest creating an ADR via adr-writer)
  • Implementation sequence (task order)
  • Identified risks

Step 3 — Tasks

Once the plan is approved, create specs/<slug>/tasks.md decomposing into atomic tasks (~30 min each):

  • Task 1 — concrete description, affected files, completion criterion
  • Task 2 — ...

Step 4 — Human validation

Pause and ask for explicit human approval before starting implementation.

Principles

  • Don't code in this skill. This skill produces documents, not code.
  • Don't invent requirements. If something is ambiguous, ask the user.
  • Respect the constitution. If the feature violates a principle, flag it before proceeding.
  • Atomicity. Small, independent tasks make assisted implementation easier.

Expected output

Three files in specs/<feature-slug>/:

  • spec.md
  • plan.md
  • tasks.md

With explicit user confirmation at each step.

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.