trellis:plan
Skill2 starsChanged 9 months agoMITView on GitHub
Use when user wants to Creates a technical plan at .specs/{feature}/plan.md translating a spec's functional requirements into architecture, technology, and code decisions.
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:prepSkill
- trellis:runSkill
- trellis:sketchSkill
- trellis:specSkill
- trellis:statusSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Create a technical implementation plan at .specs/<feature-name>/plan.md.
- Very specific: line 22
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py plan <feature-name> and use the specsDir value from the JSON output.
- Distinctive: line 26
Before generating the plan, ensure the spec is ready.
- Very specific: line 30
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/extract-markers.py <specsDir>/<feature-name>/spec.md to check for unresolved [?
- Very specific: line 37
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-status.py <feature-name> and check the complianceNeeded and complianceCompleted fields.
- Distinctive: line 43
After pre-steps complete, proceed to plan generation below.
- Very specific: line 47
If the user runs /plan without additional context, check if the prerequisites exist.
- Very specific: line 55
After gathering all user input, spawn the planner 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
Plan
When to use
- "plan the implementation", "how should we build this"
- "create a technical plan", "architect this"
- Any request to translate a spec into actionable technical decisions
- Making technology decisions, defining file structure, or creating an implementation strategy
Create a technical implementation plan at .specs/<feature-name>/plan.md.
Recommended effort: medium. Template-driven but references multiple input artifacts.
Pre-flight
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py plan <feature-name> and use the specsDir value from the JSON output. Abort if the output reports missing prerequisites.
Pre-steps: Clarify and Compliance
Before generating the plan, ensure the spec is ready. These steps run automatically — the user does not need to invoke them separately.
Step A: Clarify
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/extract-markers.py <specsDir>/<feature-name>/spec.md to check for unresolved [? ...] markers.
- If zero markers: Skip clarify — the spec is already clean.
- If markers exist: Run the
/clarifyskill against the spec. Since clarify runs in a forked context (isolated, no user interaction), it resolves what it can and moves user-judgment items to §10 (Open Questions). Re-check markers after each pass. Loop limit: 3 passes. After 3, move any remaining markers to §10 and continue.
Step B: Compliance (conditional)
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-status.py <feature-name> and check the complianceNeeded and complianceCompleted fields.
- If
complianceNeededis false: Skip compliance. - If
complianceCompletedis true (compliance.md already exists): Skip compliance. - Otherwise: Run the
/complianceskill. Since compliance runs in a forked context, ensure any user-provided regulation context is embedded in the spec's §9 (Constraints) before invoking. If compliance recommends spec changes, apply them, re-run clarify on modified sections, then re-run compliance. Loop limit: 2. After 2 loops, document remaining gaps as residual risks in compliance.md and continue.
After pre-steps complete, proceed to plan generation below.
What to ask the user
If the user runs /plan without additional context, check if the prerequisites exist. Then ask:
- Are there any technical decisions you've already made that should be locked in?
- Are there any constraints beyond what's in the guidelines? (Performance targets, budget limits, team skill considerations)
- Is there an existing codebase this integrates into? If so, describe the integration points.
Generation
After gathering all user input, spawn the planner agent. Pass it: the feature name, specs directory path, and all user-provided context. The agent will read prerequisite files and generate the plan document.
Quality gate
- Every interface in the spec has a corresponding implementation plan
- Every data entity in the spec has a data access pattern
- Every compliance constraint (if applicable) is addressed with a specific technical approach
- The file structure matches the architecture
- Code snippets follow the project guidelines
- Technology decisions include rejected alternatives where relevant
- A builder could set up the project skeleton from §6 and start coding from §5 without further questions
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.

