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

trellis:prep

Skill2 starsChanged 9 months agoMITView on GitHub

Prepare implementation by decomposing a plan into an ordered task breakdown at .specs/{feature}/tasks.json. Use when a plan is ready and you need discrete, verifiable units of work organized in phases.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 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.

  • 6

    Very specific

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

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

    Create an ordered task breakdown at .specs/<feature-name>/tasks.json.

    line 18
  2. Very specific:

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

    line 26
  3. Very specific:

    If the user runs /prep without additional context:

    line 30
  4. Distinctive:

    Should tasks be sized for a human developer or for an AI coding agent?

    line 33
  5. Very specific:

    Always ask these questions, even when invoked automatically from /trellis:build — the user is present and should have the chance to provide …

    line 35
  6. Very specific:

    After gathering all user input, spawn the task-writer agent.

    line 39
  7. Very specific:

    After the agent completes, verify the generated tasks.json:

    line 43

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

Prep

Prepare a feature for implementation by decomposing its plan into ordered, verifiable tasks.

When to use

  • "prep this for implementation", "prepare tasks", "break this into tasks"
  • "what do I build first", "generate work items", "create task breakdown"
  • Any request to decompose a technical plan into actionable steps or prepare work items for execution
  • Called automatically by /trellis:build when tasks.json doesn't exist yet

Create an ordered task breakdown at .specs/<feature-name>/tasks.json.

Recommended effort: medium. Mechanical decomposition of the plan into ordered tasks.

Re-running this skill overwrites tasks.json, resetting all task statuses to "pending". This is how you reset an implementation.

Pre-flight

Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py prep <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 /prep without additional context:

  1. Are there any ordering constraints beyond what the plan implies? (e.g., "I need the API working before the MCP layer so I can demo it")
  2. Should tasks be sized for a human developer or for an AI coding agent? (This affects granularity. Agent tasks can be smaller and more mechanical. Human tasks should be more self-contained.)

Always ask these questions, even when invoked automatically from /trellis:build — the user is present and should have the chance to provide input.

Generation

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

Quality gate

After the agent completes, verify the generated tasks.json:

  • Valid JSON that conforms to schemas/tasks.schema.json
  • Every plan section maps to at least one task
  • Every spec interface has at least one task that implements it
  • Every task has a concrete "verify" field
  • Tasks are ordered so that each task's dependencies are completed in earlier tasks
  • No task requires reading the full plan to understand (it references specific sections)
  • The first phase produces something runnable (even if minimal)
  • The check field is populated from guidelines.md (or empty string if not available)

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.