mach10 icon indicating copy to clipboard operation
mach10 copied to clipboard

pr-review-fix: Step 3 and Step 4 not marked completed before skill exits

Open LeanAndMean opened this issue 7 months ago • 1 comments

Summary

The /mach10:pr-review-fix skill delegates to /feature-dev:feature-dev in Step 3 and recommends next steps in Step 4, but neither step's task is marked completed until after the user runs a subsequent command (e.g., /mach10:push). This makes the task list show Step 3 and Step 4 as still in-progress when the skill has actually finished its work.

Current Behavior

After /mach10:pr-review-fix finishes:

  • Step 3 ("Fix review findings via feature-dev") remains in_progress
  • Step 4 ("Recommend next steps") remains pending
  • Both are only marked completed when the next skill (/mach10:push) runs and inherits the task context

Proposed Behavior

Steps 3 and 4 should be marked completed within the /mach10:pr-review-fix skill's own execution, before it returns control to the user.

Acceptance Criteria

  • Step 3 is marked completed after the feature-dev skill invocation returns
  • Step 4 is marked completed after the next-step recommendation is printed
  • All 5 steps (0–4) show completed in the task list when the skill finishes

Technical Notes

The issue is in the skill instructions for /mach10:pr-review-fix. The instructions say to mark Step 3 completed and Step 4 completed, but because Step 3 delegates to a Skill tool invocation, the TaskUpdate calls after the Skill tool return may not execute reliably — the model may treat the Skill result as the end of its turn. The fix likely involves restructuring the instructions to ensure TaskUpdate calls are explicitly sequenced after the Skill tool returns.

This may not be the only skill with this problem — other skills that delegate to sub-skills (e.g., via the Skill tool) may have similar task-completion gaps. Once the root cause is identified, consider an overall improvement to CLAUDE.md guidance on how to write skill instructions that reliably complete their own task tracking, rather than fixing each skill individually.

Observed during PR review fix session on LeanAndMean/highthroughputsolidstatesynthesis PR 15.

LeanAndMean avatar Apr 14 '26 04:04 LeanAndMean

Duplicate of #117, fixed in PR #118. The fix added post-delegation re-anchoring prose to pr-review-fix and documented the pattern in CLAUDE.md for all tracked commands with Skill delegations.

LeanAndMean avatar Apr 15 '26 19:04 LeanAndMean