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

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.

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

    Create a technical implementation plan at .specs/<feature-name>/plan.md.

    line 16
  2. Very specific:

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

    line 22
  3. Distinctive:

    Before generating the plan, ensure the spec is ready.

    line 26
  4. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/extract-markers.py <specsDir>/<feature-name>/spec.md to check for unresolved [?

    line 30
  5. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-status.py <feature-name> and check the complianceNeeded and complianceCompleted fields.

    line 37
  6. Distinctive:

    After pre-steps complete, proceed to plan generation below.

    line 43
  7. Very specific:

    If the user runs /plan without additional context, check if the prerequisites exist.

    line 47
  8. Very specific:

    After gathering all user input, spawn the planner agent.

    line 55

≈ “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

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 /clarify skill 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 complianceNeeded is false: Skip compliance.
  • If complianceCompleted is true (compliance.md already exists): Skip compliance.
  • Otherwise: Run the /compliance skill. 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:

  1. Are there any technical decisions you've already made that should be locked in?
  2. Are there any constraints beyond what's in the guidelines? (Performance targets, budget limits, team skill considerations)
  3. 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

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.