Add task tracking to pr-review-fix
Summary
Add TaskCreate/TaskUpdate progress tracking to the pr-review-fix command. This command gathers PR and review context, identifies which findings to fix (potentially with user interaction for finding selection), then delegates the actual fixes to feature-dev. Task tracking will ensure every step is an explicit checkpoint that cannot be silently skipped.
Part of #81 (Tier 2 -- HIGH priority). See #81 for task tracking conventions and overall context.
File: commands/pr-review-fix.md
What Is Task Tracking?
mach10 commands should use TaskCreate and TaskUpdate to establish visible progress checkpoints. Tasks are created upfront after input parsing, then transitioned to in_progress / completed as work proceeds. This makes long-running commands observable and forces the execution to explicitly pass through each checkpoint. See #81 for the full conventions.
Task Graph
All 5 tasks are created in Step 0 after input parsing. Each task starts as pending (except Step 0 itself, which starts as in_progress).
| Task | Subject | activeForm | in_progress | completed |
|---|---|---|---|---|
| Step 0 | Step 0: Parse input and create task list | Parsing input | Immediately after creation | After all other tasks are created |
| Step 1 | Step 1: Gather PR and review context | Gathering context | Before fetching PR and locating review/assessment comments | After review comment located, assessment located if provided |
| Step 2 | Step 2: Identify issues to fix | Identifying issues | Before matching identifiers or presenting findings to user | After findings identified, user has selected if multiSelect was needed |
| Step 3 | Step 3: Fix review findings via feature-dev | Fixing findings | Before Skill invocation | After Skill returns |
| Step 4 | Step 4: Recommend next steps | Recommending next steps | Before displaying suggestion | After suggestion displayed |
Notes:
- Step 0 absorbs the current Step 1 (Parse Input) and adds the task bootstrap. Current Steps 2-5 become Steps 1-4.
- Step 2 may be very quick (if specific findings were provided as F/S identifiers) or involve user interaction (if only the PR number was given and findings need to be selected via
AskUserQuestionwithmultiSelect). - Step 3 wraps the feature-dev skill delegation -- the bulk of execution time.
- 5 tasks follows the 1-to-1 step mapping convention: one task per command step.
Delegation Notes
- Step 3 delegates to
/feature-dev:feature-devvia the Skill tool. The Step 3 task brackets this delegation. - The Skill invocation instruction should be rewritten from the old "add each phase as a task to your todo list" wording to explicit
TaskCreate/TaskUpdatereferences per the delegation phase tracking convention. Instruct feature-dev to create a task for each phase using"Phase N: <action>"subject convention. - The skill's internal phase tasks are not tracked by this command -- they appear in the shared flat task list alongside Steps 0-4.
Shared Task Context Warning
Step 3 delegates to /feature-dev:feature-dev via the Skill tool, which runs in the same session context. Any tasks that feature-dev creates internally will appear in the same flat task list alongside Steps 0-4. The "Step N:" vs "Phase N:" subject prefixes provide visual distinction.
When implementing task tracking for this command:
- Expect a mixed task list after Step 3 transitions to
in_progress. Feature-dev will add its own Phase tasks at the same level as Steps 0-4. - Use stored task IDs (not positional IDs) to locate Steps 0-4 when transitioning them after delegation returns.
- Do not suppress feature-dev's internal task creation -- those tasks provide valuable progress visibility during the fix phase.
Implementation Checklist
Changes to commands/pr-review-fix.md:
- [ ] Add
TaskCreate, TaskUpdatetoallowed-toolsin frontmatter - [ ] Add Step 0 that parses input and creates the full task list (absorbing current Step 1)
- [ ] Renumber current Steps 2-5 to Steps 1-4
- [ ] Add
TaskUpdatein_progress/completed markers at start/end of each step - [ ] Rewrite the Step 3 Skill invocation instruction from old "todo list" wording to explicit
TaskCreate/TaskUpdatewith"Phase N:"convention
Other changes:
- [ ] Bump plugin version in
.claude-plugin/plugin.json - [ ] Update CLAUDE.md "Task-tracking instruction sync" note to reflect that
pr-review-fixhas been converted (if all three feature-dev-delegating commands are done, update the note fully; otherwise note partial progress)
Acceptance Criteria
- [ ] All 5 tasks (Steps 0-4) are created in Step 0 after input parsing, before any work begins
- [ ] Step 0 is created first and immediately marked
in_progress, thencompletedafter all other tasks exist - [ ] Each subsequent step transitions
in_progress->completedat the boundaries described in the task graph - [ ] Step 2 covers the optional user selection flow (multiSelect for finding IDs)
- [ ] Step 3 brackets the Skill invocation
- [ ] Step 3 Skill instruction uses explicit
TaskCreate/TaskUpdatereferences with"Phase N:"convention (not the old "todo list" wording) - [ ] Task tracking does not interfere with the delegated
/feature-dev:feature-devskill's behavior - [ ] The mixed task list (command Step tasks + feature-dev Phase tasks) remains intelligible
- [ ]
allowed-toolsin frontmatter includesTaskCreateandTaskUpdate
Note: The task tracking conventions have been revised (see comment on issue 81). The task graph in this issue body follows the old "3-5 compound tasks" convention and is now stale. When implementing this sub-issue, derive the task graph using 1-to-1 step mapping: one task per command step, with a Step 0 that handles input parsing and task list creation. See the updated CLAUDE.md conventions and commands/pr-review.md for the reference implementation.
Implementation Plan: Add task tracking to pr-review-fix
Stage 1: Add task tracking to pr-review-fix
What it accomplishes: Adds TaskCreate/TaskUpdate progress tracking to the pr-review-fix command, making every step an explicit checkpoint that cannot be silently skipped. Rewrites the Skill invocation instruction to use the explicit TaskCreate/TaskUpdate delegation phase tracking convention.
Files modified:
commands/pr-review-fix.md-- add task tracking instrumentation, renumber steps, rewrite Skill instructionCLAUDE.md-- update two sync notes to reflect new step numbers and conversion status.claude-plugin/plugin.json-- version bump 1.18.0 -> 1.19.0
Detailed changes to commands/pr-review-fix.md
- Frontmatter: Add
TaskCreate, TaskUpdatetoallowed-tools - Step 0 (absorbs current Step 1): Keep all existing parse input prose. Add task bootstrap block: create Step 0 task first and mark
in_progress, create remaining 4 tasks aspending, present task table, mark Step 0completed - Step 1 (current Step 2, renumbered): Add
in_progressbookend after heading,completedbookend at end. Update cross-reference from "Step 4" to "Step 3" - Step 2 (current Step 3, renumbered): Add
in_progress/completedbookends - Step 3 (current Step 4, renumbered): Add
in_progress/completedbookends. ReplaceIMPORTANT: After reading the development plan phases, add each phase as a task to your todo list so you do not skip any phases.with new wording using explicitTaskCreate/TaskUpdatereferences and"Phase N: <action>"convention. Update "retrieved in Step 2" to "retrieved in Step 1" - Step 4 (current Step 5, renumbered): Add
in_progress/completedbookends
Detailed changes to CLAUDE.md
- Finding-identifier sync (line 67): Update
commands/pr-review-fix.md (argument-hint, Step 1 examples/parsing, Step 3 extraction)tocommands/pr-review-fix.md (argument-hint, Step 0 examples/parsing, Step 2 extraction) - Task-tracking instruction sync (line 69): Remove
commands/pr-review-fix.md (Step 4)from the old-wording list. Add note thatpr-review-fixhas adopted native tracking with"Phase N:"convention in its Step 3 Skill invocation. Update "three" to "two" for remaining commands.
Detailed changes to .claude-plugin/plugin.json
- Bump version from
1.18.0to1.19.0
Task graph
| Task | Subject | activeForm | in_progress | completed |
|---|---|---|---|---|
| Step 0 | Step 0: Parse input and create task list | Parsing input | Immediately after creation | After all other tasks are created |
| Step 1 | Step 1: Gather PR and review context | Gathering context | Before fetching PR and locating review/assessment comments | After review comment located, assessment located if provided |
| Step 2 | Step 2: Identify issues to fix | Identifying issues | Before matching identifiers or presenting findings to user | After findings identified, user has selected if multiSelect was needed |
| Step 3 | Step 3: Fix review findings via feature-dev | Fixing findings | Before Skill invocation | After Skill returns |
| Step 4 | Step 4: Recommend next steps | Recommending next steps | Before displaying suggestion | After suggestion displayed |
Testing
This is a plugin definition (no runtime code). Verification is manual: review the resulting file against the pr-review.md reference implementation and the CLAUDE.md conventions.
This comment will guide staged implementation via /mach10:issue-implement 99 1.
Implementation Plan: Add task tracking to pr-review-fix
Stage 1: Add task tracking to pr-review-fix
What it accomplishes: Adds TaskCreate/TaskUpdate progress tracking to the pr-review-fix command, making every step an explicit checkpoint that cannot be silently skipped. Rewrites the Skill invocation instruction to use the explicit TaskCreate/TaskUpdate delegation phase tracking convention.
Files modified:
commands/pr-review-fix.md-- add task tracking instrumentation, renumber steps, rewrite Skill instructionCLAUDE.md-- update two sync notes to reflect new step numbers and conversion status.claude-plugin/plugin.json-- version bump 1.18.0 -> 1.19.0
Detailed changes to commands/pr-review-fix.md
-
Frontmatter: Add
TaskCreate, TaskUpdatetoallowed-tools(afterTask, beforeEdit). -
Step 0 (absorbs current Step 1): Keep all existing parse-input prose (argument structure, 4 example inputs, extraction logic). After the parse-input block, add the task bootstrap:
- Create Step 0 task via
TaskCreateand immediately markin_progress. - Create Steps 1-4 as
pending. - Store each returned task ID for use in later
TaskUpdatecalls -- do not assume IDs are sequential. - Mark Step 0
completed.
- Create Step 0 task via
-
Step 1 (current Step 2 "Gather Context", renumbered): Add
in_progressbookend as first instruction,completedbookend as last instruction. Update the cross-reference at the end of the step from "Save the review comment content for use in Step 4" to "Save the review comment content for use in Step 3". -
Step 2 (current Step 3 "Identify Issues to Fix", renumbered): Add
in_progress/completedbookends. -
Step 3 (current Step 4 "Delegate to Feature Dev", renumbered): Add
in_progress/completedbookends. Replace the old Skill invocation instruction:Old:
IMPORTANT: After reading the development plan phases, add each phase as a task to your todo list so you do not skip any phases.
New:
IMPORTANT: Use
TaskCreateto create a task for each phase of the 7-phase development plan before starting work. Use"Phase N: <action>"as the subject format (e.g.,"Phase 1: Understand the codebase"). Mark each phasein_progressviaTaskUpdatewhen starting andcompletedwhen finishing. Do not skip any phases.Update the two "retrieved in Step 2" references to "retrieved in Step 1".
-
Step 4 (current Step 5, renumbered and renamed): Rename heading from
"## Step 5: After Fixes"to"## Step 4: Recommend next steps"(matching the task subject and thepr-review.mdconvention). Addin_progress/completedbookends.
Task graph
| Task | Subject | activeForm | in_progress | completed |
|---|---|---|---|---|
| Step 0 | Step 0: Parse input and create task list | Parsing input | Immediately after creation | After all other tasks are created |
| Step 1 | Step 1: Gather PR and review context | Gathering context | Before fetching PR and locating review/assessment comments | After review comment located, assessment located if provided |
| Step 2 | Step 2: Identify issues to fix | Identifying issues | Before matching identifiers or presenting findings to user | After findings identified, user has selected if multiSelect was needed |
| Step 3 | Step 3: Fix review findings via feature-dev | Fixing findings | Before Skill invocation | After Skill returns |
| Step 4 | Step 4: Recommend next steps | Recommending next steps | Before displaying suggestion | After suggestion displayed |
Detailed changes to CLAUDE.md
-
Finding-identifier sync (line 67): Update
commands/pr-review-fix.md (argument-hint, Step 1 examples/parsing, Step 3 extraction)tocommands/pr-review-fix.md (argument-hint, Step 0 examples/parsing, Step 2 extraction). -
Task-tracking instruction sync (line 69): Three edits within this bullet:
- Remove
commands/pr-review-fix.md (Step 4)from the old-wording command list, leavingcommands/issue-implement.md(Step 4) andcommands/pr-ci-fix.md(Step 4). - Change "all three locations" to "both locations".
- In the closing sentence, change "the three feature-dev-delegating commands" to "the two remaining feature-dev-delegating commands". Add a sentence noting that
pr-review-fixhas adopted nativeTaskCreate/TaskUpdatetracking with"Phase N:"convention in its Step 3 Skill invocation.
- Remove
Detailed changes to .claude-plugin/plugin.json
- Bump version from
1.18.0to1.19.0.
Testing
This is a plugin definition (no runtime code). Verification is manual: review the resulting file against the pr-review.md reference implementation and the CLAUDE.md conventions.
This comment will guide staged implementation via /mach10:issue-implement 99 1.
Progress: Stage 1 complete
Implemented task tracking for the pr-review-fix command per the implementation plan.
Changes (commit 53738ce):
commands/pr-review-fix.md-- AddedTaskCreate/TaskUpdatetoallowed-tools; added Step 0 bootstrap (absorbs old Step 1) with task table; renumbered old Steps 2-5 to Steps 1-4; addedin_progress/completedbookends to each step; rewrote Skill invocation instruction to use explicitTaskCreate/TaskUpdatewith"Phase N:"convention; updated cross-referencesCLAUDE.md-- Updated finding-identifier sync note (Step 0/Step 2 references) and task-tracking instruction sync note (removedpr-review-fixfrom old-wording list, noted native tracking adoption, updated counts).claude-plugin/plugin.json-- Version bump 1.18.0 -> 1.19.0
All acceptance criteria from the issue are met. Verified against pr-review.md reference implementation.