blueprint-plugin/skills/blueprint-feature-tracker-sync/SKILL.md
Sync feature tracker with TODO.md, taskwarrior sidecars, and PRDs. Use when reconciling TODO.md vs tracker, draining WO entries, or recalculating stats.
npx skillsauth add laurigates/claude-plugins blueprint-feature-tracker-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Synchronize the feature tracker JSON with TODO.md and manage task progress.
| Use this skill when... | Use blueprint-feature-tracker-status instead when... |
|---|---|
| You're reconciling TODO.md checkboxes with the tracker | You want a read-only view of completion stats |
| You're draining WO entries from a taskwarrior sidecar (--drain-wave) | You want PRD coverage or ready-to-start lists |
| You're recalculating completion statistics after work | Use feature-tracking instead for low-level FR-code edits |
| You want a markdown progress summary via --summary | You need a quick "where are we?" snapshot without writes |
Note: As of v1.1.0, feature-tracker.json is the single source of truth for progress tracking. The tasks section replaces work-overview.md.
Usage: /blueprint:feature-tracker-sync [--summary] [--drain-wave WO-A,WO-B,...] [--evidence-files <list>] [--evidence <text>]
Flags:
| Flag | Description |
|------|-------------|
| --summary | Generate human-readable markdown summary (stdout only, no file) |
| --drain-wave WO-A,WO-B,... | Sidecar mode: drain a comma-separated list of completed WOs from tasks.pending into tasks.completed, then flip any FRs whose implementing_wos are now all closed |
| --evidence-files <list> | Comma-separated list of files (one per WO) holding the evidence string for --drain-wave. Pairs positionally with the WO list |
| --evidence <text> | Inline evidence string (single WO only). Use when the text is short and free of single quotes |
Decide which mode applies before any work:
--summary is present, run Mode: Generate Summary and exit.--drain-wave is present, run Mode: Taskwarrior Sidecar Drain and exit.TODO.md is absent, prefer Sidecar Drain semantics for any user-facing
completion prompts; otherwise run Mode: Full Sync (Default).--summary)When --summary is provided, generate a human-readable progress report without modifying any files:
jq -r '
"# Work Overview: \(.project)\n\n" +
"## Current Phase: \(.current_phase // "Not set")\n\n" +
"**Progress**: \(.statistics.complete)/\(.statistics.total_features) features (\(.statistics.completion_percentage)%)\n\n" +
"### In Progress\n" +
(if (.tasks.in_progress | length) == 0 then "- (none)\n" else (.tasks.in_progress | map("- \(.description) [\(.id)]") | join("\n")) + "\n" end) +
"\n### Pending\n" +
(if (.tasks.pending | length) == 0 then "- (none)\n" else (.tasks.pending | map("- \(.description) [\(.id)]") | join("\n")) + "\n" end) +
"\n### Recently Completed\n" +
(if (.tasks.completed | length) == 0 then "- (none)\n" else (.tasks.completed | map("- \(.description) [\(.id)]") | join("\n")) + "\n" end) +
"\n## Phase Status\n" +
(.phases | map("- \(.name): \(.status)") | join("\n"))
' docs/blueprint/feature-tracker.json
Output example:
# Work Overview: my-project
## Current Phase: phase-1
**Progress**: 22/42 features (52.4%)
### In Progress
- Implement OAuth integration [FR2.3]
- Add rate limiting [FR3.1]
### Pending
- Webhook support [FR4.1]
- Admin dashboard [FR5.1]
### Recently Completed
- User authentication [FR2.1]
- Session management [FR2.2]
## Phase Status
- Foundation: complete
- Core Features: in_progress
- Advanced Features: not_started
Exit after displaying summary.
Determine whether this project uses the taskwarrior-sidecar convention
(taskwarrior is the authoritative pending/completed queue, linked to blueprint
via the bpid/bpdoc UDAs). Either signal is sufficient:
Marker rule file: test -f .claude/rules/task-tracking.md.
Live taskwarrior linkage: any task carries a bpid matching one of the
project's blueprint IDs.
Use the parallel-safe export | jq idiom (see
.claude/rules/parallel-safe-queries.md) — never task list, which exits
1 on empty results and silently cancels sibling tool calls in a parallel
Bash batch:
task bpid.any: status:any export | jq 'length'
Treat any non-zero count as "sidecar present".
If a sidecar is detected, set SIDECAR=true and:
TODO.md reconciliation steps (Steps 4–5, 8) — there is no
authoritative TODO file to align against.status:completed as the truth signal for WO entries.TODO.md.test -f docs/blueprint/feature-tracker.json
If not found, report:
Feature tracking not enabled in this project.
Run `/blueprint:init` and enable feature tracking to get started.
docs/blueprint/feature-tracker.json for current feature and task statusTODO.md for checkbox states (if exists)For each feature in the tracker:
a. Verify status consistency:
complete: Check TODO.md has [x] (if tracked there)partial: Some checkboxes checked, some notin_progress: Should have entry in tasks.in_progressnot_started: Check TODO.md has [ ], not in completedblocked: Note if blocking reason is documentedb. Check implementation evidence (REQUIRED — drives status inference for shipped code). For each feature with non-empty implementation.files: verify each file exists, backfill implementation.commits via git log --follow --format="%H" -- <file> (deduped, merged into existing array), and backfill implementation.tests via Glob on conventional patterns (tests/**/*<slug>*, **/*<slug>*.test.*, **/test_*<slug>*.py).
Infer status from evidence ONLY when current status == "not_started":
| Evidence | Inferred status |
|---|---|
| All files exist AND ≥1 commit touches them | complete (pending Step 5 user confirmation) |
| Some files exist, others missing | partial |
| No listed files exist | leave as not_started |
Never silently downgrade an already-complete/in_progress/partial feature. List flipped features under "Inferred from evidence" in the Step 9 sync report. See REFERENCE.md for the canonical merge jq.
Look for inconsistencies:
complete in tracker but unchecked in TODO.mdcomplete in trackertasks.in_progress but tracker says completenot_started but Step 3b inferred shipped code (confirm via Step 5)If discrepancies found (use AskUserQuestion):
question: "Found {N} discrepancies. How should they be resolved?"
options:
- label: "Update tracker from TODO.md"
description: "Trust TODO.md, update tracker to match"
- label: "Update TODO.md from tracker"
description: "Trust the tracker, update TODO.md to match"
- label: "Review each discrepancy"
description: "Show each discrepancy and decide individually"
- label: "Skip - don't resolve discrepancies"
description: "Report discrepancies but don't change anything"
(complete / total) * 100complete if all features completein_progress if any feature in_progresspartial if some complete, some notnot_started if no features startedRun only when the manifest at the root has workspaces.role == "root" AND the
feature-tracker contains any feature with a non-empty implemented_by array.
For each feature with implemented_by:
For every {workspace, ref} entry, read
<workspace>/docs/blueprint/feature-tracker.json and look up ref.
Collect the child statuses. If any entry cannot be resolved (missing file
or missing ref), record a warning and treat that entry as not_started
for the rollup.
Derive the root feature's status using this rule:
| Child statuses observed | Derived status |
|-------------------------|----------------|
| All resolved entries complete | complete |
| Any blocked | blocked |
| Any in_progress, or a mix of complete/not_started | partial |
| All not_started | not_started |
Overwrite the feature's status with the derived value. Do NOT touch
implementation on portfolio features; status alone is recomputed.
Rebuild the top-level workspaces summary by reading each child's
statistics block:
"workspaces": {
"projects/esp32-lamp": {
"total": 14, "complete": 6, "completion_percentage": 42.9,
"current_phase": "phase-1", "last_synced_at": "<now>"
}
}
Recompute root statistics after the derived statuses are applied so the
portfolio-level totals reflect the child-driven states.
Emit warnings in the sync report (Step 9) for unresolved implemented_by
entries, and suggest /blueprint:workspace-scan when a referenced
workspace is not present in the root manifest's workspaces.children.
statistics sectionlast_updated to today's datecurrent_phase to first incomplete phase[x] for complete features[ ] for not_started featuresPrint: statistics block (total/complete/partial/in_progress/not_started/blocked + completion %), current phase, phase-status list, active tasks list, "Changes Made" (status flips, TODO checkboxes touched), "Inferred from evidence" (Step 3b flips with their commit SHAs), and "Unresolved Discrepancies" if any were skipped. See REFERENCE.md for the full report template.
Update the task registry entry in docs/blueprint/manifest.json:
jq --arg now "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--arg todo_hash "$(sha256sum TODO.md 2>/dev/null | cut -d' ' -f1)" \
--argjson processed "${FEATURES_SYNCED:-0}" \
'.task_registry["feature-tracker-sync"].last_completed_at = $now |
.task_registry["feature-tracker-sync"].last_result = "success" |
.task_registry["feature-tracker-sync"].context.last_todo_hash = $todo_hash |
.task_registry["feature-tracker-sync"].stats.runs_total = ((.task_registry["feature-tracker-sync"].stats.runs_total // 0) + 1) |
.task_registry["feature-tracker-sync"].stats.items_processed = $processed' \
docs/blueprint/manifest.json > tmp.json && mv tmp.json docs/blueprint/manifest.json
Use AskUserQuestion:
question: "Sync complete. What would you like to do next?"
options:
- label: "View detailed status"
description: "Run /blueprint:feature-tracker-status for full breakdown"
- label: "Continue development"
description: "Run /project:continue to work on next task"
- label: "I'm done"
description: "Exit sync"
--drain-wave)Drain one or more completed WOs from tasks.pending into tasks.completed,
sourcing evidence from taskwarrior annotations (or from named files / an
inline string), then flip any FR-level entries whose implementing WOs are
now all closed.
Split --drain-wave on commas. For each WO ID, line up the matching evidence
source in this priority order:
--evidence-files (file path), read with
jq --rawfile to dodge single-quote collisions.--evidence (single-WO drains only).annotate line on the linked taskwarrior task (Step 2).AskUserQuestion.Refuse the run with a clear message if the WO list and --evidence-files
list are both provided but their lengths disagree — partial drains are
worse than no drain.
For each WO in the wave, fetch the latest annotation. Use the parallel-safe
export | jq idiom — never task list — so a missing-task case returns
exit 0 instead of cancelling sibling tool calls (see
.claude/rules/parallel-safe-queries.md):
task bpid:"$WO" status:completed export \
| jq -r '.[0].annotations | sort_by(.entry) | last | .description // empty'
If the result is empty, fall back to status:any (the user may have closed
the task before drain). If still empty, fall back to the next priority source
from Step 1.
Persist each evidence string to a temp file (mktemp) — embedded single
quotes in commit messages collide with shell when inlined into a jq
program literal, and --rawfile is the standard escape:
ev_file="$(mktemp)"
printf '%s' "$EVIDENCE_STRING" > "$ev_file"
For each WO-NNN in the wave, with its evidence file $ev_file, advance
the tracker in a single jq pass per WO. Store the date once and pass it
in as an argument so the same value lands on every entry:
today="$(date -u +%Y-%m-%d)"
jq --arg id "$WO" \
--arg today "$today" \
--rawfile ev "$ev_file" '
.tasks.completed = (
[ .tasks.pending[]
| select(.id == $id)
| . + {"completed": $today, "evidence": $ev}
] + .tasks.completed
)
| .tasks.pending = [.tasks.pending[] | select(.id != $id)]
' docs/blueprint/feature-tracker.json > docs/blueprint/feature-tracker.json.tmp
mv docs/blueprint/feature-tracker.json.tmp docs/blueprint/feature-tracker.json
Loop the WOs sequentially — each pass reads the file the previous pass wrote — so concurrent writes cannot collide on the same file.
If a WO ID is not in tasks.pending, report skipped: not pending for
that entry and continue. Do not error the whole wave.
For each feature whose implementing_wos array overlaps the drained wave,
recompute its status. The flip is the second hand-jq pattern users
repeat per wave; do it once here:
jq --arg today "$today" '
(.features // [])
|= map(
if (.implementing_wos // []) | length > 0 then
. as $fr
| (.implementing_wos
| map(. as $woid
| (($fr | .. | objects | select(has("id")) | select(.id == $woid))
// null)
| . != null)) as $resolved
| (((.implementing_wos | length) > 0)
and ([.implementing_wos[] as $wo
| any(($fr.parent_tracker.tasks.completed // [])[]; .id == $wo)]
| all)) as $all_done
| if $all_done and (.status // "") != "complete"
then . + {"status": "complete", "completed_at": $today}
else .
end
else .
end
)
' docs/blueprint/feature-tracker.json > docs/blueprint/feature-tracker.json.tmp
mv docs/blueprint/feature-tracker.json.tmp docs/blueprint/feature-tracker.json
If the tracker schema stores features in a flat features array but with a
different shape (e.g., nested under phases[].features[]), adapt the path
prefix while preserving the same logic: a feature flips to complete only
when every WO ID listed in implementing_wos appears in
tasks.completed.
Record each flip in the run report (Step 6). Never silently downgrade an
already-complete FR.
Re-run Step 6 of Mode: Full Sync (Default) so the totals reflect the
drained WOs and any flipped FRs. Then write the updated last_updated and
current_phase per Step 7 of Full Sync.
Print a Drain Report:
Sidecar Drain Report
====================
Wave: WO-031, WO-032, WO-033
Drained:
- WO-031: pending -> completed (evidence: 142 chars from tw annotation)
- WO-032: pending -> completed (evidence: 209 chars from /tmp/wo032_ev.txt)
- WO-033: skipped (not in tasks.pending)
FR flips:
- FR-017 (Skill Progression): in_progress -> complete
Statistics:
- Total Features: 42
- Complete: 23 (54.8%) [+1 from FR-017]
- Recently Completed: WO-031, WO-032 added to top of tasks.completed
Next: run /taskwarrior:task-done if any sibling tasks should also close.
Clean up temp evidence files with rm -f "$ev_file".
For the common one-WO case, the same flow with --drain-wave WO-031 and
either --evidence "<text>" or no evidence flag (annotation autosourced) is
shorter than the legacy hand-rolled jq one-liner — and emits the same
on-disk shape. Prefer /taskwarrior:task-done when you also need to close
the linked taskwarrior task; this skill only edits the tracker.
For ad-hoc tracker surgery (jq recipes for adding to in_progress, completing tasks, queueing pending work) and a sample summary report, see REFERENCE.md.
taskwarrior-plugin:task-done — close a single taskwarrior task and drain
the linked tracker entry; pairs with this skill's --drain-wave for
wave-granular drains where multiple WOs land at once.taskwarrior-plugin:task-coordinate — surface the next N unblocked tasks
before starting a wave, so the WOs you eventually drain here line up with
what the queue actually scheduled..claude/rules/parallel-safe-queries.md — the task ... export | jq
idiom is mandatory whenever this skill queries taskwarrior. task list
exits 1 on empty results and silently cancels sibling parallel tool calls.tools
Scaffold a new ComfyUI custom-node repo (pyproject, CI, release-please, vitest+pytest, JS extension skeleton) in the picker/gesture vein. Use when bootstrapping or init-ing a comfyui node pack.
tools
Orchestrate a ComfyUI node pack from idea to registry: scaffold, create + seed the repo, open the gitops adoption PR. Use when releasing or spinning up a new comfyui node pack.
testing
macOS EndpointSecurity/EDR high CPU & battery drain. Use when Kandji ESF / XProtect pegs a core; trace the exec storm via powermetrics + eslogger.
development
odiff pixel-by-pixel image diffing. Use when comparing screenshots, detecting visual regressions, diffing before/after PNGs, asserting golden images.