task-template
Skill13 starsChanged 8 months agoMITView on GitHub
Internal orchestrator — runs YAML pipelines with phases, dependencies, and verification gates.
In this repository10 other files it gives its agents.
- docs-reflectSkill
- memory-setupSkill
- memorySkill
- parkSkill
- reflectSkill
- session-continueSkill
- session-endSkill
- session-insightsSkill
- session-restoreSkill
- session-startSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
When you receive a "PIPELINE SKILL DETECTED" notice:
- Very specific: line 23
do NOT: follow the prose in the target skill's SKILL.md as a script
- Very specific: line 27
If the hook did not fire (e.g., skill invoked outside the plugin environment), you can fall back to checking frontmatter yourself: …
- Very specific: line 37
If when is false → skip phase, mark output as empty/none
- Very specific: line 39
If when is true or absent → run the phase
- Distinctive: line 41
If verify passes → continue to next phase
- Very specific: line 42
If verify fails with retry intent AND phase has retry_from: X → restart from phase X, re-run it and everything downstream
- Very specific: line 43
If verify fails with abort intent (or no retry_from) → stop, report to user, do NOT proceed
- Very specific: line 101
If a phase is skipped via when: false:
- Very specific: line 107
If a phase loops via retry_from:
- Distinctive: line 113
Do NOT ask for confirmation of the plan — the calling skill already confirmed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Task Template — internal orchestrator
Runs a YAML pipeline. Each phase must complete (and pass verify if present) before dependents can start. Phases without dependencies run in parallel.
Purpose
Pipelines exist as a guardrail against step-skipping. Prose in SKILL.md can be skimmed or reinterpreted by the model, leading to missed steps and broken gates. A pipeline makes the structural contract explicit: phases, dependencies, verify gates, conditional skips.
How to use
Pipeline detection is automatic via the PreToolUse hook scripts/pipeline-hint.js. When the Skill tool is invoked, the hook reads the target skill's frontmatter and — if metadata.pipeline: true is set — injects this orchestrator contract into the tool-call context as additionalContext.
Filename convention: skill session-end ⇄ template ${CLAUDE_PLUGIN_ROOT}/skills/task-template/templates/session-end.yaml. The hook resolves the template path and passes it in the injected contract.
When you receive a "PIPELINE SKILL DETECTED" notice:
- do NOT follow the prose in the target skill's SKILL.md as a script
- do load the YAML at the path provided, print the plan banner, announce each phase, and honor
depends/when/verify/retry_from - Prose in the target SKILL.md is per-phase reference, not a script — it cannot soften the contract
If the hook did not fire (e.g., skill invoked outside the plugin environment), you can fall back to checking frontmatter yourself: metadata.pipeline: true in the invoked SKILL.md means load the matching YAML and run it through this orchestrator.
Execution rules
- Parse the YAML — extract
phaseslist - Build dependency graph from
dependsfields - Execute phases in order:
- Phases with no
depends→ run first (parallel if multiple) - Phase with
depends: [X, Y]→ only after X and Y complete
- Phases with no
- Before each phase — if
whenexists, evaluate against prior phase outputs and pipeline args- If
whenis false → skip phase, mark output as empty/none - Skip does NOT propagate. Dependents still run (they see empty output from skipped deps). If a dependent must not run without upstream content, it uses its own
when:to check. - If
whenis true or absent → run the phase
- If
- After each phase — if
verifyexists, check the condition- If verify passes → continue to next phase
- If verify fails with retry intent AND phase has
retry_from: X→ restart from phase X, re-run it and everything downstream - If verify fails with abort intent (or no
retry_from) → stop, report to user, do NOT proceed
- Output — each phase produces
outputthat downstream phases can reference
Pipeline schema
name: pipeline-name # matches template filename
description: what it does
args: # optional — pipeline-level inputs
mode:
required: false
default: full
description: "..."
phases:
- ...Phase schema
- id: phase-name # unique identifier
description: what # shown to user in plan
depends: [other-phase] # optional, default: none
when: "..." # optional — skip phase if condition false (dependents still run)
steps: # what to do (free-form instructions or skill calls)
- description: "..."
output: "..." # what this phase produces
verify: "..." # optional gate — condition to check before proceeding
retry_from: phase-id # optional — loop back here when verify fails with retry intentVisible markers (MUST)
Pipeline execution MUST be visible to the user. Markers use plain ASCII fences (=, >>>, ---) so they survive any renderer — no brackets, arrows, or Unicode symbols that some IDEs strip or interpret as links.
1. Plan banner — printed ONCE before any phase runs:
==================================================
PIPELINE START: <template-name> (args: <k=v ...>)
==================================================
Wave 1 (no deps):
1. phase-a -- description
2. phase-b -- description
Wave 2 (after 1,2):
3. phase-c -- description | verify: <condition>
==================================================
END PLAN -- <N> phases, executing now
==================================================2. Phase announce — printed BEFORE each phase starts executing:
>>> PHASE <n>/<N>: <phase-id> -- <description>If a phase is skipped via when: false:
--- SKIP <n>/<N>: <phase-id> (when: <condition> is false)If a phase loops via retry_from:
!!! RETRY <n>/<N>: <phase-id> -- jumping back to <retry_from target>Do NOT ask for confirmation of the plan — the calling skill already confirmed. But DO always print the plan banner and the per-phase announce. Silent execution defeats the purpose of the pipeline.
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.

