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

trellis:run

Skill2 starsChanged 9 months agoMITView on GitHub

Orchestrates the spec-driven pipeline (pitch → spec → plan → build) with review gates between stages. Use when running the full feature pipeline or resuming from the last completed stage.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Distinctive:

    When the user wants to go from a problem description to working code in one or more sessions

    line 15
  2. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py run and use the specsDir value from the JSON output.

    line 23
  3. Very specific:

    When a stage override is provided with an existing feature, skip the resume/fresh/rename prompt — the user's intent is explicit.

    line 61
  4. Very specific:

    Read references/intake-questions.md for the full list of questions to ask before starting Stage 1.

    line 65
  5. Distinctive:

    If resuming at a later stage, skip intake questions — the existing artifacts contain the context.

    line 67
  6. Distinctive:

    After generation, present the review gate:

    line 75
  7. Distinctive:

    Ask the user: approve, edit, or redo?

    line 78
  8. Very specific:

    Run the /plan skill, which automatically runs clarify and compliance as pre-steps before generating .specs/<feature-name>/plan.md.

    line 97
  9. Distinctive:

    Before starting implementation, ask the user: "OK to proceed with building?"

    line 109
  10. Very specific:

    If the user confirms: Run the /build skill, which automatically runs prep (generating tasks.json) if it doesn't already exist.

    line 113
  11. Distinctive:

    After implementation finishes (or if the user declines to implement), summarize what was produced:

    line 118
  12. Very specific:

    Read references/pipeline-control.md for resumption logic.

    line 129

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Run

When to use

  • "run the pipeline", "run", "take this from pitch to implementation"
  • "full spec workflow", "resume"
  • Any request to run the complete spec-driven process end-to-end
  • When the user wants to go from a problem description to working code in one or more sessions

Orchestrate the full spec-driven development pipeline for a feature.

Recommended effort: high. Orchestration with judgment calls and review gates.

Pre-flight

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

Prerequisites

  • .specs/guidelines.md must exist. If it doesn't, tell the user to run /guidelines first.
  • Any sketches that should inform the pitch should already exist in .specs/sketches/. The pipeline does not create sketches; those are exploratory and happen before you commit to a feature.

Feature resolution

Determine the feature name. If provided as an argument (e.g., /run my-feature or /run spec my-feature), use it. Otherwise, ask the user:

What's the feature name? (kebab-case, becomes the folder name under the specs directory)

Do NOT search for or auto-detect existing feature directories. The feature name must come from the user's argument or by asking them directly. Do not scan the specs directory to find features — wait for the user to provide a name.

Once the feature name is known, run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-status.py <feature-name> to check whether the feature directory already exists and which artifacts are present.

New feature (no existing directory)

Proceed to Intake questions below, then start the pipeline at Stage 1.

Existing feature

Tell the user which stages are already completed, then ask:

  1. Resume — Continue from the next incomplete stage. Skip intake questions — the existing artifacts contain the context.
  2. Start fresh — Overwrite existing artifacts by restarting at Stage 1. Proceed to intake questions.
  3. Choose a different name — Loop back and ask for a new feature name.

Stage override

The run skill accepts an optional argument to force restart at a specific stage:

  • /run — Resume from the next incomplete stage (default).
  • /run pitch — Restart at pitch, regardless of existing artifacts.
  • /run spec — Restart at spec.
  • /run plan — Restart at plan.

When a stage override is provided with an existing feature, skip the resume/fresh/rename prompt — the user's intent is explicit. Run pipeline-status.py to determine the resumption point and proceed directly.

Intake questions

Read references/intake-questions.md for the full list of questions to ask before starting Stage 1.

If resuming at a later stage, skip intake questions — the existing artifacts contain the context.

Execution flow

Stage 1: Pitch

Generate .specs/<feature-name>/pitch.md following the /pitch skill.

After generation, present the review gate:

  1. Show the artifact path and a 3-5 sentence summary highlighting problem framing, appetite, no-gos, and rabbit holes.
  2. Ask the user: approve, edit, or redo?
    • approve — Continue to Stage 2.
    • edit — End the run. Tell the user the file path and that they can re-invoke /run when ready.
    • redo — Delete pitch.md and regenerate. Re-present the gate. Limit: 3 redos per stage.

Stage 2: Spec

Generate .specs/<feature-name>/spec.md following the /spec skill, reading from the confirmed pitch and guidelines.

After generation, present the review gate:

  1. Show the artifact path and a 3-5 sentence summary highlighting key interfaces, data model entities, and open questions count (§10 items).
  2. Ask the user: approve, edit, or redo?
    • approve — Continue to Stage 3.
    • edit — End the run. Tell the user the file path and that they can re-invoke /run when ready.
    • redo — Delete spec.md and regenerate. Re-present the gate. Limit: 3 redos per stage.

Stage 3: Plan

Run the /plan skill, which automatically runs clarify and compliance as pre-steps before generating .specs/<feature-name>/plan.md.

After generation, present the review gate:

  1. Show the artifact path and a 3-5 sentence summary highlighting architecture decisions, technology choices, whether compliance was run and what it found, and the file structure.
  2. Ask the user: approve, edit, or redo?
    • approve — Continue to Stage 4.
    • edit — End the run. Tell the user the file path and that they can re-invoke /run when ready.
    • redo — Delete plan.md and regenerate. Re-present the gate. Limit: 3 redos per stage.

Stage 4: Build

Before starting implementation, ask the user: "OK to proceed with building?"

This is a write-heavy operation that modifies source code. The user must explicitly confirm before it begins — especially important when the pipeline resumes and jumps directly to this stage.

  • If the user confirms: Run the /build skill, which automatically runs prep (generating tasks.json) if it doesn't already exist.
  • If the user declines: End the pipeline. Tell the user they can run /trellis:build <feature-name> when ready.

Pipeline complete

After implementation finishes (or if the user declines to implement), summarize what was produced:

.specs/<feature-name>/
  pitch.md       ✓
  spec.md        ✓
  compliance.md  ✓ (or skipped)
  plan.md        ✓
  tasks.json     ✓

Read references/pipeline-control.md for resumption logic.

Quality gate

The pipeline is complete when:

  • All generated artifacts pass their individual skill quality gates
  • The spec has zero unresolved [? ...] markers (handled by plan's clarify pre-step)
  • Compliance review is either completed or explicitly skipped (handled by plan's compliance pre-step)
  • The user has confirmed each review gate
  • Tasks reference specific spec and plan sections (traceability from task → plan → spec → pitch)

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.