/devflow:tt-implement-plan [project-slug-or-id]from DevFlow Skills Collection
Executes a tasktracker-native plan stored as phase tasks, running each phase via /tt-implement-phase and logging insights. Use when the plan lives in tasktracker rather than a docs/plans/*.md file.
Ships in DevFlow Skills Collection. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reference files (open one when a step points to it):
references/insight-cookbook.md: Insight Cookbook — logDefect / logLearning / logFrictionreferences/plan-format.md: How a tasktracker plan is storedTasktracker-native orchestrator that executes a plan stored as phase tasks. It runs phases one at a time, honours active-task / locked-body / insight-logging conventions, and delegates the actual code work to /tt-implement-phase (which in turn delegates to subagents).
/implement-plan | /tt-implement-plan (this skill) | |
|---|---|---|
| Plan source | docs/plans/*.md + task_list_id | Phase tasks in tasktracker (no file) |
| Progress tracking | TaskCreate/TaskUpdate (built-in) | tasktracker_updateTaskStatus + active-task heartbeats |
| Active task discipline | None | setActiveTask / pauseActiveTask / clearActiveTask, time from heartbeats — required |
| Phase body updates | Free edit | Forbidden once children exist — write to sub-tasks |
| Insight capture | Ad-hoc / lessons.md | logDefect, logLearning, logFriction |
| Multi-session resume | CLAUDE_CODE_TASK_LIST_ID=... | Built-in: active task persists across MCP restarts |
| Completion criterion | All checkboxes ticked | All phase tasks completed AND no in-progress sub-tasks |
If the plan came from /create-plan (file-based), use /implement-plan. If the plan lives in tasktracker, use this skill.
THIS SESSION IS THE ORCHESTRATOR. IT NEVER IMPLEMENTS CODE DIRECTLY — it walks the phases and, for each, follows
/tt-implement-phaseas the phase lead: it dispatches the role agents, waits for their reports, and keeps TaskTracker accurate. The phase runs in this session because agent reports arrive here; a forked lead can't receive them. Code is written by the implementer agent, or by this session only when no subagent tool exists at all (/tt-implement-phase's in-context mode).
tt-implement-plan (this session — ORCHESTRATOR and PHASE LEAD)
│
│ ⛔ NEVER writes code ⛔ NEVER uses Write/Edit (while Agent is available)
│ (creates files only via tasktracker MCP calls)
│
└── follows tt-implement-phase for each phase, in this session
│
├── orchestrated mode → implementer / mechanic / reviewer agents do the work;
│ their reports arrive here as messages
└── in-context mode → only when no subagent tool exists
| DO | DO NOT |
|---|---|
| Read task tree, principles, requirements | Write code |
| Set/pause/clear active task | Create files (other than via MCP) |
Follow /tt-implement-phase per phase, dispatching its agents | Use Write/Edit/NotebookEdit |
| Track plan-level progress via task status | Run implementation commands |
| Log defects / learnings / frictions | Edit a locked phase body |
| Pause between phases (unless the user asked for an unattended run) | Skip readiness gates |
"Foreground", "no background agents" or "don't poll" in the user's words is about waiting, not about who writes the code: dispatch the role agents and wait for their reports, never polling with sleep loops. Only an explicit "write the code yourself in this session" overrides the orchestrator rule; ask when unsure. (On a Strago run, "do the work in the foreground" was read as permission to write a step in-context, and the user had to correct it.)
If you find yourself about to use Write/Edit/NotebookEdit:
⛔ STOP — you are violating the plan-orchestrator pattern.
✅ Dispatch the implementer agent, as /tt-implement-phase describes. (Only with no
subagent tool at all does the work happen in-context. Writing code here while
the Agent tool exists is the bug.)
1. tasktracker_listProjects({search: "..."}) # or use argument hint.
- If user passed a slug or id, use it directly with getProject.
2. tasktracker_getProject({projectId})
3. tasktracker_getProjectReadiness({projectId})
- The `plan` row should read satisfied — meaning concrete phases
exist beyond the four lifecycle phases. If not, STOP. The user
probably needs /tt-create-plan first.
If the user gives a phase task id directly ("implement phase X"), skip the readiness gate and treat that single phase as the scope.
tasktracker_getPrinciples({projectId, includeGlobal: true})
tasktracker_listRequirements({projectId, status: "approved"})
Spend a moment reading. Principles are the durable rules; requirements are the contract this work fulfils. The next ~hour of decisions hangs off these.
tasktracker_listTasks({projectId, type: "phase"})
# Filter out the four lifecycle phases (metadata.lifecycleSlug ∈
# {brainstorm, requirements, architecture, plan}) — those are done.
# What remains is the implementation plan.
# For each implementation phase, in dependency order:
tasktracker_getTask({taskId}) # body, status, version
tasktracker_getChildTasks({taskId}) # sub-tasks
tasktracker_listAcceptanceCriteria({requirementId}) # per linked requirement
Note the order: phase tasks are intended to be executed in the order they were created (or per blockedBy if explicit). Identify the first non-completed phase — that's the resume point.
For each implementation phase, in order:
- status == "completed" → skip
- status == "in_progress" → resume from here
- status == "pending" → first incomplete; resume from here
- Stop at the first pending/in_progress one.
Display the resume point to the user:
● Plan Status: <project name>
✓ Phase 1 — Database schema (completed)
✓ Phase 2 — Auth service (completed)
◻ Phase 3 — API endpoints (in_progress) ← resume here
◻ Phase 4 — Tests (pending, blocked by 3)
◻ Phase 5 — Docs (pending, blocked by 4)
Resuming Phase 3.
Multi-session note: the MCP persists activeTask to ~/.config/tasktracker-mcp/active-task across restarts. You usually do not need CLAUDE_CODE_TASK_LIST_ID=... — opening a new session sees the same active task.
For each phase, in order:
tasktracker_setActiveTask({taskId: <phase-task-id>})
# Unless the phase is already in_progress (a resume):
tasktracker_updateTaskStatus({taskId: <phase-task-id>, status: "in_progress", version: <from getTask>})
setActiveTask returns a digest containing principles, the phase body, acceptance criteria, and (if present) the directional-work block. Read this carefully — it's the ground truth for the phase scope. Do not re-derive scope from the original brainstorm; the phase body is the locked contract.
Time comes from heartbeats, not timers. Tasktracker books time only while tasktracker MCP calls keep arriving for the active task; a segment closes after ~5 minutes without one. While role agents work, they keep the time segment open (getCurrentTimer at least every ~4 minutes, confirmed by a HEARTBEAT: line in each report); this session can't heartbeat while it waits for them. Don't call startTimer — started timers create lease-less rows that absorb other sessions' cost (one phase read 12h18m against 3h16m of real work) — and don't switch or pause the active task while agents are working.
═══════════════════════════════════════════════════════════════
● STARTING PHASE N: <Phase Name>
═══════════════════════════════════════════════════════════════
Objective: <from phase body>
Verification approach: <from phase body>
Requirements: <list of REQ-... this phase implements>
Sub-tasks: <count> seeded
Principles in play: <any directly relevant>
Delegating to /tt-implement-phase...
Skill(skill="tt-implement-phase", args=<the block below>)
Execute Phase N.
Caller: tt-implement-plan
Project: <project name + id>
Phase task id: <id>
Phase title: <title>
Sub-tasks: <list from getChildTasks>
Requirements: <list of (id, title, criteria) from listAcceptanceCriteria>
Principles: <surfaced from setActiveTask digest>
Checkpoints: <per-unit when the user wants a report after each step>
Execute all quality gates. Update each sub-task's status as it
completes. Finish with PHASE_RESULT.
CRITICAL: do NOT update the phase description — it is locked
once sub-tasks exist (HTTP 422). Any design rationale or new
finding goes to the "Design + decision note" sub-task (or a
new sub-task if that one is already closed).
The Skill call loads /tt-implement-phase's procedure into this session, and you follow it as the phase lead: dispatching the work by role (a Sonnet implementer, a Haiku mechanic checking every unit, an Opus reviewer), sub-task setActiveTask/updateTaskStatus discipline, exit-condition verification via /verification-loop, integration testing, code review via /devflow:code-review, ADR compliance, task-tree synchronization and insight logging. The code itself comes from the implementer agent.
Agent reports arrive later, as messages. Each Agent call returns at once; when nothing else is left to do, end the turn with one line naming what you're waiting for, and the agent's report resumes you. Don't poll with sleep loops, and don't write the code yourself while an agent is on it. When the user asked for a report after each step, pass Checkpoints: per-unit: the phase then prints a three-line checkpoint after every unit's independent check and carries on.
The phase ends with its PHASE_RESULT (preflight, sub_tasks, evidence, insights_logged) written in this conversation. Use it for the Step 5 block; don't restate more than that.
/tt-implement-phase Step 7 captures phase-level insights. At the plan-orchestrator level, ALSO log anything that surfaces as a cross-phase concern (e.g., a defect that affects future phases, a friction with the plan itself). Don't bury it in chat.
| Situation | Tool | Notes |
|---|---|---|
| Bug discovered during this phase | tasktracker_logDefect | Severity + repro steps. Counts toward getDefectStats. |
| Pattern learned, applicable to future work | tasktracker_logLearning | E.g., "uuid v14 is ESM-only — trips ts-jest". Becomes searchable via listInsights. |
| Friction encountered (slow build, flaky test, confusing error) | tasktracker_logFriction | Use category=process when it's process pain; footgun / performance / ux when it's code pain. |
| Defect / missing capability in TaskTracker itself (MCP tool, workflow, a tt-* skill) | tasktracker_reportToTaskTracker | Files UPSTREAM into the central TaskTracker project (continual-correction loop), NOT a local insight. |
If a principle should be added based on this phase's experience, propose it to the user — don't silently add. Principles are a charter, not a backlog.
Before any message that ends with a question, tasktracker_pauseActiveTask. The user's thinking time is not work time — pauseActiveTask closes the running time segment for exactly the wait, and the next tool call opens a fresh one. Never pause while role agents are working: pausing would cut the segment their heartbeats keep open.
Read the PHASE_RESULT the phase procedure wrote. It leaves the active task on the phase so the writes below are attributed.
On status: PASS:
tasktracker_getTask({taskId: <phase-task-id>}). The procedure normally completed the phase in its Step 8 (phase_status: completed or completed_with_caveat) — then there is nothing to write. If the phase isn't completed, check that every sub-task is completed (or archived, with a one-line reason logged), then tasktracker_updateTaskStatus({taskId: <phase-task-id>, status: "completed", version}).tasktracker_clearActiveTask() — Step 8 of the phase left the pointer on the phase for you.On status: FAILED (or BLOCKED, which only an unattended run returns), stop. Put it to the user (see "Handling blockers" below). Do not auto-proceed.
If the phase was completed with a caveat (phase_status: completed_with_caveat), the procedure called completeWithCaveat itself — just propagate the caveat in the user-facing summary.
By default, show this block and wait for the user before the next phase. If the user asked to run the whole plan or to run unattended, show the block without the confirmation line and start the next phase straight away; collect any manual-verification items for the closing summary. BLOCKED and FAILED still stop the run either way.
═══════════════════════════════════════════════════════════════
● PHASE N COMPLETE: <Phase Name>
═══════════════════════════════════════════════════════════════
Results from /tt-implement-phase:
✅ Implementation: <N> files created, <M> modified
✅ Exit Conditions: all passed
✅ Code Review: PASS (notes: <from PHASE_RESULT, or "none">)
✅ ADR Compliance: passed
✅ Sub-tasks: <X>/<X> completed
Insights logged this phase:
• Defect: <id> — <summary>
• Learning: <id> — <summary>
• Friction: <id> — <summary>
Manual verification required:
- [ ] <user-observable check from PHASE_RESULT>
───────────────────────────────────────────────────────────────
Please confirm the manual verification, then say "go" to start
Phase N+1: <Next Phase Name>.
═══════════════════════════════════════════════════════════════
4f already cleared the active task, so nothing is booked while the user reads this.
When all implementation phases are completed:
tasktracker_getProjectReadiness({projectId})
# Verify all four lifecycle rows still satisfied; verify plan row.
# ── Definition-of-Done gate (Phase 115) ──────────────────────────
# THE authoritative "is the build actually done" check. Server-side,
# all-pillars: every phase completed, zero unsatisfied ACs on linked
# approved requirements, zero open defects, zero architecture drift.
tasktracker_getProjectDoneness({projectId})
# If done:false — DO NOT declare the build complete. Surface each
# blocker, resolve it (or open a follow-up phase), and re-run. A
# "green" completion with open defects / unsatisfied ACs / drift is
# exactly what this gate exists to stop. readiness=plan formed;
# doneness=work correct — both must pass before the closing summary.
tasktracker_getDefectStats({projectId})
tasktracker_getImprovementMetrics({projectId})
tasktracker_clearActiveTask()
Closing summary:
═══════════════════════════════════════════════════════════════
● PLAN COMPLETE: <Project Name>
═══════════════════════════════════════════════════════════════
Implementation phases completed: <N>/<N>
Insights this run:
Defects logged: <count> (open: <count>)
Learnings: <count>
Frictions: <count>
Final verification:
- [ ] E2E run: <command>
- [ ] Documentation updated (if applicable)
- [ ] Security checklist (if security-sensitive)
Active task cleared. Ready for review.
═══════════════════════════════════════════════════════════════
A blocker found mid-phase is put to the user by the phase procedure itself (its blocker protocol: persist it, pause, ask, continue from the blocked step). The steps below are for a phase that ended FAILED, or BLOCKED in an unattended run:
tasktracker_pauseActiveTask(). The pointer is still on the phase; the user's thinking time isn't work.AskUserQuestion: the blocker, the options from PHASE_RESULT.blocked.options, and your recommendation. A FAILED result has no options — offer retrying the failed step, a follow-up phase, or abort./tt-implement-phase again as in 4c, adding Resume From Step: <blocked.step>, the user's decision, and the earlier PHASE_RESULT verbatim, then continue at 4f with the new result.tasktracker_clearActiveTask(). The phase keeps its blocked sub-task, whose blockedReason records why.Don't auto-fix. Don't auto-revise the plan. Don't auto-edit the phase body (it's locked anyway). The user owns the call.
⛔ PHASE N BLOCKED
Issue: <from PHASE_RESULT.blocked — step, kind, details, needs>
Options:
A) <option from /tt-implement-phase>
B) <option>
C) Abort and create a follow-up phase
Recommendation: <which option, with rationale>
How should I proceed?
If the resolution is "create a follow-up phase", do that outside the blocked phase — tasktracker_createTask({projectId, type: "phase", title, description, requirementIds: [<same requirements>]}) with a clear title. Do not stuff new scope into the blocked phase's body (which is locked anyway).
Five common situations where you'd want to edit the phase body, and the right answer:
| You want to… | Do this instead |
|---|---|
| Record why you took a different approach than planned | createTask({projectId, type: "task", parentId: <phase>, title: "Decision: <topic>"}) with the rationale in the description (a phase's children are type task) |
| Note a discovered scope gap | New sub-task under the phase if minor; new phase if major |
| Update the verification approach | New sub-task Verification — updated approach documenting the change; the original verification approach in the phase body stands as the planning-time intent |
| Note an ADR was created mid-phase | New sub-task ADR-NNNN reference with the link |
| Cross-reference to another phase | Set metadata.relatedPhaseIds: [...] on the phase task (metadata is editable) |
This is not bureaucracy — it's the audit trail. The phase body shows "what we planned", the sub-tasks show "what actually happened", and the diff is debuggable.
setActiveTask before phase work — principles won't surface.startTimer for phase time, or switching/pausing the active task while agents are working. Time comes from heartbeats (4a).PHASE_RESULT is written.pauseActiveTask before user-wait messages.completed with sub-tasks still in_progress.logDefect/logLearning.TaskCreate/TaskUpdate (the Claude-Code built-ins) for phase progress — use tasktracker_updateTaskStatus.setActiveTask set before the first artifact-producing call.startTimer; the active task was not switched or paused while agents were working.setActiveTask digest (not re-derived)./tt-implement-phase and acted on its PHASE_RESULT.completed as each finished.pauseActiveTask before every user-wait message.completed only when all sub-tasks are completed (or archived with a reason); active task cleared after the phase finished.completed.getProjectReadiness shows all four lifecycle rows still satisfied.getProjectDoneness returns done:true — the build was NOT declared complete while any blocker stood (open defects / unsatisfied ACs / incomplete phases / architecture drift).getDefectStats reviewed; open defects either resolved or have a follow-up task.clearActiveTask called.plan-format.md — How a tasktracker plan is stored: project → phase tasks → sub-tasks, requirement links, acceptance criteria, dependencies, and the readiness/doneness gates.insight-cookbook.md — When and how to use logDefect, logLearning, logFriction. Common patterns./tt-implement-phase — Per-phase orchestrator. This skill delegates to it for every phase./devflow:code-review — Per-phase quality gate inside /tt-implement-phase (not Claude Code's built-in /code-review)./adr — Recording mid-implementation design decisions (the ADR file lives in docs/decisions/; the reference goes to a sub-task)./verification-loop — 6-check verification framework used inside /tt-implement-phase.tasktracker_getProjectReadiness — Useful at start and end as a sanity check./tt-create-plan — Upstream: the skill that produces the plan this orchestrator runs./tt-implement-phase — in this session, where the agents' reports arrive.setActiveTask / pauseActiveTask / clearActiveTask are not optional; time comes from heartbeats, never startTimer. Leave the pointer alone while agents are working.logDefect / logLearning / logFriction, not just chat.PHASE_RESULT — the structured block the phase procedure ends with.What SKILL.md sets; muted values are Claude Code's defaults
35 skills in this plugin
/adrDocument architectural decisions in standardized ADR format. This skill should be used when making significant technical decisions, choosing between approaches, establishing patterns, or when other skills (create-plan, implement-plan, brainstorm) identify decisions that need documentation. Triggers on "document decision", "create ADR", "architectural decision", or automatically when invoked by other skills during planning and implementation./adversarial-reviewerAdversarial code review by three independent subagent personas (Saboteur, New Hire, Security Auditor) running in parallel, isolated contexts that know nothing of the author's intent or Claude's earlier conclusions. Reviews a diff by default (staged/unstaged, a ref or a file); --codebase reviews a whole repo or subtree for tech debt, attack surface and knowledge silos. Use before merging a PR; when the user asks for a hostile, harsh, critical, skeptical or second-opinion review; when a /devflow:code-review came back suspiciously clean; when the user is tired after a long session or has a gut feeling something is off; or for a quick audit of an inherited repo ("what am I inheriting"). Differs from /devflow:code-review (routine per-phase review, no isolation) and /devflow:security-review (single-lens OWASP depth)./agent-creatorCreate composable AI agent systems in NestJS projects following the "tools all the way down" architecture. Use this skill when users want to: (1) Create new AI agents with orchestrator/planner/executor/evaluator components, (2) Build agentic systems that can call other agents as tools, (3) Implement DAG-based planning with parallel execution, (4) Add database-backed state persistence for agent runs, (5) Create custom evaluators for quality assurance. Triggers on "create agent", "build agent", "agent system", "agentic", "orchestrator", "planner/executor pattern", or NestJS AI agent requests.
/brainstormRefine a rough idea into a well-structured concept through Socratic questioning, targeted research and one or two fitting analysis frameworks (Six Thinking Hats, SCAMPER, Premortem), then write it to docs/brainstorms/ as the input for planning. Use when the user wants to brainstorm, explore or think through an idea, find holes in a proposal, asks "what am I missing", or wants to shape a concept before planning, whether or not the work is tracked in TaskTracker. The output feeds /create-plan, /tt-create-plan and /user-story./codebase-auditLong-running, resumable adversarial audit of a whole codebase. Splits the repo into partitions, runs /adversarial-reviewer --codebase on each, then synthesizes a cross-partition risk register and a written remediation report. Use for onboarding audits of an inherited codebase, pre-acquisition due diligence, periodic tech-debt health checks, or when the user asks for a comprehensive, thorough, exhaustive or deep review of the whole codebase ("full codebase audit", "code due diligence", "tech debt audit", "what am I inheriting"). Differs from /adversarial-reviewer --codebase, which samples the repo in one pass, and from /code-quality-audit, which measures coverage, complexity, cycles and mutation scores./codebase-researchOrchestrates comprehensive codebase research by decomposing user queries into parallel sub-agent tasks and synthesizing findings. This skill should be used when users ask questions about how code works, where functionality exists, how components interact, or need comprehensive documentation of existing implementations. It focuses exclusively on documenting and explaining the codebase as it exists today.npx claudepluginhub mhylle/claude-skills-collection --plugin devflowOther plugins' skills for the same job