plan-step-tracker
Query topic step status or check completion; reject invalid completion evidence.
Files5
View on GitHubSKILL.mdskills/plan-step-tracker/SKILL.md
GitHubPurpose
Provide a low-token, read-only way to query plan/<topic>/<topic>.step.md and enforce blocking when incomplete work remains.
Trigger / When to use
Use this skill when:
- you need the status of one topic's
.step.mdfile without reading the whole file - you need a blocking gate that stops follow-on work when any step is still pending
- you need the canonical Python CLI contract for step queries
- you need grep fallback guidance because the Python CLI cannot run
Do not use this skill when:
- you need to edit
.step.mdfiles or change checkbox markers - you need to query more than one topic in one pass
- you need to prove that external artifacts exist beyond what the checkbox file declares
- you need a watcher, daemon, or real-time progress monitor
Inputs
<topic>: required topic name; resolves toplan/<topic>/<topic>.step.md<operation>: one ofread_all,read_not_run,read_success,check_all_succeeded, orcheck_impl_steps_succeeded- current working directory at repository root so the Python CLI and fallback paths resolve correctly
Process
- Resolve
plan/<topic>/<topic>.step.mdand keep the interaction read-only. - Prefer the Python CLI:
python skills/plan-step-tracker/scripts/step_tracker.py <operation> <topic> - Interpret checkbox markers exactly as the CLI does:
[X]= done[ ]= pending[x]= pending, with a warning on stderr
- Preserve the command contract by honoring exit codes:
read_all,read_not_run,read_successreturn exit code0on successful readscheck_all_succeededreturns exit code0only when nothing is pendingcheck_impl_steps_succeededreturns exit code0only when## Implementation Stepscontains no pending items- missing
.step.mdreturns exit code1and is blocking
- If Python CLI execution is unavailable, use the grep fallback from
reference.md, and explicitly note that grep cannot reproduce the lowercase[x]warning by itself. - Never modify
.step.md, normalize checkbox casing, or continue past a blockingcheck_all_succeededresult.
Examples
Positive: Use the blocking command before a gated handoff
$ python skills/plan-step-tracker/scripts/step_tracker.py check_all_succeeded my-feature
❌ BLOCKED: 2 steps pending (exit code 1)
[ ] implementation-review
[x] code-review
The caller stops and reports the pending steps.
Negative: Treat lowercase [x] as complete or ignore exit code 1
$ python skills/plan-step-tracker/scripts/step_tracker.py check_all_succeeded my-feature
Warning: Found lowercase [x] at line 18; treating as pending
❌ BLOCKED: 1 steps pending (exit code 1)
[x] code-review
Wrong follow-up: continuing anyway or rewriting the file inside this skill.
Outputs
read_all: all parsed checkbox lines on stdout; exit code0read_not_run: pending lines on stdout, including lowercase[x]; exit code0read_success: completed[X]lines on stdout; exit code0check_all_succeeded: success summary with exit code0, or blocked summary plus pending lines with exit code1check_impl_steps_succeeded: implementation-only success summary with exit code0, or blocked summary plus pending implementation lines with exit code1- errors:
Error: File not found: plan/<topic>/<topic>.step.mdon stderr with exit code1
Validation
Required Checks
- run only one of the five supported operations
- keep the command path as
python skills/plan-step-tracker/scripts/step_tracker.py <operation> <topic> - treat exit code
1fromcheck_all_succeededor missing files as blocking - treat exit code
1fromcheck_impl_steps_succeededas an implementation-only blocking signal - treat lowercase
[x]as pending, not done - keep the workflow read-only
Quality Checks (best effort)
- prefer the Python CLI over grep so warning and exit-code semantics stay exact
- if fallback grep is used, disclose the lowercase
[x]limitation explicitly - keep output concise by returning only the requested subset of steps
On Soft Fail
- mark the result
INCOMPLETEwhen the caller's desired operation is unclear - state any fallback limitations explicitly
- do not fabricate completion state beyond the file contents
Failure Handling
Missing Context
- if
<topic>is missing or does not resolve to a single expected path, mark the resultBLOCKEDand request the exact topic name - if the caller does not specify an operation and intent does not clearly imply one, mark the result
INCOMPLETE
Ambiguous Requirement
- if the caller asks a broad question like "check the plan" without saying whether they need pending steps, completed steps, all steps, or a blocking gate, do not guess when that choice could change downstream behavior
- if a fallback command is used, say that warning behavior for lowercase
[x]must be checked manually
Execution Limitation
- if Python CLI execution is unavailable, fall back to grep guidance from
reference.md - if neither Python nor grep can be run safely, stop at
BLOCKEDrather than inferring status from memory
Verification
- verify exit code
0fromcheck_all_succeededbefore continuing a gated workflow - verify exit code
1blocks continuation when any pending step or missing file is reported - verify
check_impl_steps_succeededinspects only## Implementation Stepsand ignores pending items outside that section - verify lowercase
[x]remains pending and produces a warning when the Python CLI is used - verify fallback grep guidance is presented as an approximation, not as a replacement for the CLI warning behavior
Boundaries
- read-only only; this skill does not update step files
- single-topic only; no aggregation across multiple plan folders
- checkbox-state only; no evidence validation for artifacts outside the
.step.mdfile - no extra status model beyond done versus pending
- no behavior changes to the local Python CLI contract
Local references
reference.md: stable CLI contract, path rules, exit-code semantics, and grep fallback limitationsexamples.md: detailed command examples, blocking cases, edge cases, and fallback usage patternsscripts/step_tracker.py: local Python CLI that implements the preserved command and exit-code contracttests/: pytest coverage for parsing, filtering, blocking, missing-file handling, and lowercase[x]behavior