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.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- checkSkill
- lintSkill
- testSkill
- versionSkill
- trellis:buildSkill
- build-with-subagentsSkill
- build-with-batchSkill
- trellis:clarifySkill
- trellis:complianceSkill
- trellis:guidelinesSkill
- trellis:initSkill
- trellis:pitchSkill
- trellis:planSkill
- trellis:prepSkill
- trellis:runSkill
- trellis:sketchSkill
- trellis:statusSkill
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
- Very specific: line 16
Create a functional specification at .specs/<feature-name>/spec.md.
- Very specific: line 22
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py spec <feature-name> and use the specsDir value from the JSON output.
- Very specific: line 26
If the user runs /spec without providing details, ask:
- Distinctive: line 33
If the user provides a description, extract as much structure as you can and confirm gaps.
- Very specific: line 40
After gathering all user input, spawn the specifier agent.
≈ “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.
Files
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:
- Which feature folder? (List existing ones under
.specs/or create a new one.) - Walk me through what this system does from the user's perspective.
- What data does it manage?
- 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.
- Are there compliance or regulatory concerns? (Jurisdictions, data sensitivity — this context will be embedded in §9 so that downstream
/clarifyand/complianceskills, which run in isolated contexts, can resolve issues without interactive access to the user.) - Any known ambiguities about data ownership, permissions, or integrations? (These will be captured as
[? CATEGORY: ...]markers for/clarifyto 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.)
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
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.

