agentleFS
robmclartyrobmclarty/trellis/skills/spec/SKILL.md

trellis:spec

Skill2 starsChanged 9 months agoMITView on GitHub

Use when user wants to Creates a full functional specification at .specs/{feature}/spec.md defining what a system does and why. Use to write or revise feature requirements.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create a functional specification at .specs/<feature-name>/spec.md.

    line 16
  2. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py spec <feature-name> and use the specsDir value from the JSON output.

    line 22
  3. Very specific:

    If the user runs /spec without providing details, ask:

    line 26
  4. Distinctive:

    If the user provides a description, extract as much structure as you can and confirm gaps.

    line 33
  5. Very specific:

    After gathering all user input, spawn the specifier agent.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

When to use

  • "write a spec", "spec this out", "define the requirements", "specify"
  • "what should this system do"
  • Any request to produce a complete, unambiguous description of a feature's behavior, data, interfaces, and constraints
  • Turning a pitch into a detailed specification

Create a functional specification at .specs/<feature-name>/spec.md.

Recommended effort: high. Most complex output, cross-references multiple input artifacts.

Pre-flight

Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py spec <feature-name> and use the specsDir value from the JSON output. Abort if the output reports missing prerequisites.

What to ask the user

If the user runs /spec without providing details, ask:

  1. Which feature folder? (List existing ones under .specs/ or create a new one.)
  2. Walk me through what this system does from the user's perspective.
  3. What data does it manage?
  4. Who interacts with it and what can each person do?

If the user provides a description, extract as much structure as you can and confirm gaps. Prefer over-asking to under-asking. The spec is where precision matters most.

  1. Are there compliance or regulatory concerns? (Jurisdictions, data sensitivity — this context will be embedded in §9 so that downstream /clarify and /compliance skills, which run in isolated contexts, can resolve issues without interactive access to the user.)
  2. Any known ambiguities about data ownership, permissions, or integrations? (These will be captured as [? CATEGORY: ...] markers for /clarify to resolve.)

Generation

After gathering all user input, spawn the specifier agent. Pass it: the feature name, specs directory path, and all user-provided context. The agent will read prerequisite files (guidelines.md, pitch.md) and generate the spec document.

Quality gate

  • Could a builder build this system from the spec alone, without access to the pitch or any prior conversation?
  • Is every interface fully defined (inputs, outputs, errors)?
  • Are all enum values and allowed states listed exhaustively, not by example?
  • Are ambiguities marked with typed [? CATEGORY: ...] markers rather than silently guessed?
  • Does the spec avoid implementation details? (No library names, no architecture decisions. Those go in the plan.)
  • Are the no-gos from the pitch preserved in §9?
  • Is §10 populated? (A spec with zero open questions is suspicious.)

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.