/planning-tools:plan-tick [phase-number] [path-to-plan]from planning-tools
Auto-ticks provenly-achieved phases of a master plan based on the current git branch. Also supports manual override to tick a specific phase by number.
Ships in planning-tools. Installing the plugin adds it to Claude Code.
You are ticking master-plan phases. Two modes:
<phase> arg) — detect the current branch, find the master plan matching it, audit each unticked phase against the working tree + branch diff, tick all phases the auditor verdicts ACHIEVED. Conservative — never ticks an UNCERTAIN or NOT_ACHIEVED phase.<phase> arg supplied) — tick that one phase in the resolved plan without running the auditor.Both modes are non-interactive. You must not call AskUserQuestion anywhere in this command. If something cannot be resolved deterministically, error with a clear message — never prompt.
Input: $ARGUMENTS
Parse arguments:
Run a single bash block that captures:
git rev-parse --is-inside-work-tree || { echo "ERROR: not in a git repo"; exit 1; }
ROOT="$(git rev-parse --show-toplevel)"
BRANCH="$(git branch --show-current)"
# Base branch: try origin/HEAD symbolic-ref, fallback to main, then master
BASE="$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')"
[ -z "$BASE" ] && git rev-parse --verify --quiet origin/main >/dev/null && BASE=main
[ -z "$BASE" ] && git rev-parse --verify --quiet origin/master >/dev/null && BASE=master
[ -z "$BASE" ] && BASE=main
MERGE_BASE="$(git merge-base HEAD "$BASE" 2>/dev/null || git merge-base HEAD "origin/$BASE" 2>/dev/null)"
echo "ROOT=$ROOT"
echo "BRANCH=$BRANCH"
echo "BASE=$BASE"
echo "MERGE_BASE=$MERGE_BASE"
If not in a git repo, error: /planning-tools:plan-tick requires a git repository.
If the user supplied an explicit path argument: validate the file exists; otherwise error with the path.
Else:
*.md under $ROOT/context/tickets/, $ROOT/docs/plans/, $ROOT/.claude/plans/master/. Filter to files containing ## Implementation Phases.feature/, fix/, chore/, bugfix/, hotfix/; lowercase; replace _ and / with -.-PLAN.md or .md; lowercase; replace _ and / with -.Auto-ticking against <path> (branch <BRANCH> matched).Auto-ticking against <path> (branch <BRANCH> matched ambiguously; picked most-recent).Auto-ticking against <path> (no branch match; picked most-recent).Never call AskUserQuestion. If multiple plans tie on modification time and no branch match exists, pick the one whose path sorts first alphabetically.
Read the plan file.
Find the ## Implementation Phases heading. Reject ## Implementation Sub-Phases or any other variant with an error pointing at the integer-only phase rule in planning-tools:master-plan-methodology.
Detect the plan shape by scanning the content immediately after the ## Implementation Phases heading:
### Phase <N>: <name> <emoji> H3 headings appear under ## Implementation Phases. Use the heading parser (step 4 below). Scope under each heading is a plain - <action> unordered list (v0.3.2+ canonical); legacy - [ ] / - [x] prefixes are tolerated and stripped before evidence extraction.| Phase | Name | Status | Scope | appears immediately after the heading. Use the legacy table parser (step 5 below). Emit one note to the user: Plan uses v0.2.x table shape — supported during transition window. Consider migrating to v0.3.0 list shape (see planning-tools:master-plan-methodology).Plan does not conform to master-plan-methodology v0.3.0+ — Implementation Phases must use ### Phase <N>: <name> <emoji> H3 headings with - bulleted scope items (or, transitionally, the v0.2.x | Phase | Name | Status | Scope | table shape). See planning-tools:master-plan-methodology.For each ### Phase <N>: <name> <emoji> heading under ## Implementation Phases:
<N> (the integer phase number, e.g., 1, 2, 10).<emoji> (the last token on the line, separated from the phase name by exactly one space — one of ⏳ 🚧 ✅ ❌).### Phase heading or next ## heading (the scope text is the bulleted - unordered list. Legacy plans may include - [ ] / - [x] prefixes — the parser strips the optional [ ]/[x] and treats the remainder as a normal bullet for evidence extraction).<N> is non-integer (1a, A, 0.5, ranges), error with the integer-only rule pointer.<emoji> is missing or not one of ⏳ 🚧 ✅ ❌, error with Phase <N> heading does not end with a status emoji (⏳ 🚧 ✅ ❌). See planning-tools:master-plan-methodology v0.3.0 Status conventions.For each row of the | Phase | Name | Status | Scope | table:
Status column with this exact header text.<phase> argument was provided)✅, report Phase N already done in <path>. No changes. and stop (idempotent).✅:
### Phase <N>: <name> <old-emoji> line; preserve everything before the last token; replace only the last-token emoji with ✅. Anchor with the exact heading line.✅.Marked Phase N done in <path>. <K> phase(s) remain.Stop here. Do not run the auditor in manual mode.
<phase> argument)The audit runs entirely in the main conversation. No subagent is dispatched. See [[no-subagents-for-procedural-wrappers]] for the design choice.
Collect the list of unticked phase numbers — every phase whose Status is not ✅ (⏳, 🚧, ❌, or missing).
If the list is empty, report: All phases already done in <path>. Nothing to tick. Stop.
Read the branch diff once. Run git diff <MERGE_BASE>...HEAD --name-only to get the set of files modified on this branch. Cache this list — you will check phase scopes against it for every phase. Do not call git diff again per phase.
git diff "$MERGE_BASE"...HEAD --name-only
For each unticked phase, audit it inline:
a. Extract evidence anchors from the phase's scope text (the bulleted region under the ### Phase <N>: heading for v0.3.0+, or the Scope cell for v0.2.x):
src/foo/bar.ts, supabase/functions/<x>/index.ts, __tests__/x.test.ts, etc.).**Exit criteria:** scope item in v0.3.0+; from prose in the Scope cell in v0.2.x).b. Check file existence. For each in-scope file path, Read it (or check it exists). If a file is referenced as needing to be created and is missing → strong NOT_ACHIEVED signal.
c. Check branch diff membership. For each in-scope file path, check whether it appears in the cached diff name-only list. At least one file must appear in the diff for ACHIEVED.
d. Check symbol presence. For each named symbol, grep the relevant file(s) for the symbol. The symbol must be present in the current working tree.
e. Tally per the conservative verdict criteria table below.
(v0.3.2+: per-bullet - [ ] / - [x] checkbox state is no longer counted as evidence. The phase status emoji on the heading is the sole tick signal; code evidence — file existence, diff membership, symbol presence — is the sole audit signal.)
Verdict criteria (conservative — err toward NOT ticking):
| Verdict | All of these must hold |
|---|---|
ACHIEVED | (a) every file path in Scope exists, (b) ≥1 in-scope file appears in the branch diff vs merge-base, (c) every named symbol is present in the working tree, (d) no scope-mentioned file is conspicuously absent. |
UNCERTAIN | Some evidence present (e.g., files exist) but not enough — diff doesn't include the files, or a key symbol is missing, or the phase is non-code (docs/planning) and the audit cannot judge from code state. |
NOT_ACHIEVED | Scope references files that don't exist, or zero in-scope files appear in the branch diff, or named symbols are missing across the board. |
The default verdict is NOT_ACHIEVED / UNCERTAIN. Only graduate to ACHIEVED with concrete evidence. The user can always manually tick via /planning-tools:plan-tick <phase> if the audit is too conservative; recovering from a wrongly-ticked phase is harder.
Non-code phases (Scope describes planning, documentation, or analysis work with no code paths cited and no symbols to check) are UNCERTAIN by default. The user manually ticks these via /planning-tools:plan-tick <phase>.
Surface the audit report verbatim to the user. Use this exact shape:
# Plan Tick Audit Report
> Plan: <path>
> Branch base: <BASE> (merge-base <short-sha>)
> Phases evaluated: <N>
## Per-phase verdicts
### Phase <N>: <name>
- **Verdict:** ACHIEVED | UNCERTAIN | NOT_ACHIEVED
- **Evidence:**
- <one-line check result, e.g., `src/features/sf-links.ts` exists ✓>
- <`getRoaUrl` symbol present at `src/features/sf-links.ts:42` ✓>
- <file appears in branch diff ✓>
- **Conclusion:** <one short sentence>
### Phase <N+1>: …
…
## Summary
| Phase | Verdict |
|---|---|
| 1 | ACHIEVED |
| 2 | ACHIEVED |
| 3 | UNCERTAIN |
| 4 | NOT_ACHIEVED |
**ACHIEVED phases (safe to tick):** 1, 2
**UNCERTAIN phases (leave for now):** 3
**NOT_ACHIEVED phases (skip):** 4
Every verdict must include 2–4 one-line evidence rows. "Symbol present in file" without a line number is too vague — say getRoaUrl defined at src/features/sf-links.ts:42.
For each phase in the ACHIEVED phases (safe to tick) bucket, use the Edit tool to flip its emoji to ✅:
### Phase <N>: <name> <old-emoji> line, replacing the last-token emoji with ✅. Anchor with the full heading line.✅.Skip phases verdicted UNCERTAIN or NOT_ACHIEVED — leave them as-is.
Output one final summary line:
Ticked <K> phase(s) in <path>: <list>.
<remaining-pending> phase(s) remain (<uncertain-count> UNCERTAIN, <not-achieved-count> NOT_ACHIEVED).
If K == 0:
No phases ticked. <remaining-pending> phase(s) remain — audit verdicted them UNCERTAIN or NOT_ACHIEVED. To override, run /planning-tools:plan-tick <phase>.
If all phases are now ✅, append: All phases complete. Consider running /planning-tools:plan-verify to confirm and then opening the single PR per the Release section.
This command must not call AskUserQuestion in any code path. The user explicitly chose auto mode for this command. If something is undecidable from local state:
All decisions are made from local code state.
### Phase <N>: <name> <emoji> headings with - bulleted scope items; v0.3.2+ canonical, legacy - [ ] / - [x] tolerated) and v0.2.x legacy table shape (| Phase | Name | Status | Scope |). Shape detection is automatic.UNCERTAIN for a phase you know is done), run /planning-tools:plan-tick <phase> to override.[[no-subagents-for-procedural-wrappers]] for why.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
7 commands in this plugin
/plan-contextStage 0 — Ticket-source detection (optional)Pre-load context for a master plan — Triage picks domains autonomously, parallel Explore agents investigate, direct Reads verify findings. Emits a scope report. No plan file written./plan-deleteStep 1: Detect the current session's plan slugClear the current session's plan file in ~/.claude/plans/ — delete, recreate empty, re-read to prime the next plan/plan-masterTicket-source detection (Step 0)Draft a multi-phase master planning document. Runs Triage + Parallel Explore + Verify (or reuses a /plan-context report), then dispatches plan-master-architect to synthesize. Writes to a project-local path./plan-open-questionsStep 1 — Resolve the question sourceWalk through open questions one by one — from a master plan, a scope report, or questions already in the conversation. For each question, print a fixed short block (Why it matters / Where it matters), then capture the user's choice via a dedicated AskUserQuestion call per question (exactly one question per call — never batched). If the source is a master plan, batch-apply the answers by moving them from Open to Resolved. Any other source gets a printed summary and no file write. Runs entirely in the main conversation; no subagent dispatch./plan-progressStep 1 — Detect git contextSynthesize a dense progress entry for the current branch and append/update it at the configured destination (markdown file, Linear ticket comment, or GitHub issue/PR comment). SHA-based idempotency means safe to re-run between phases./plan-verifyStep 1 — Dispatch the verifier agentAudit a drafted master plan against the plan-verification-checklist. Dispatches the plan-verifier agent, presents findings, optionally appends a Verified marker on user approval.npx claudepluginhub oborchers/fractional-cto --plugin planning-toolsOther plugins' commands for the same job