Skip to content

feat: add plan status tracking to writing-plans and executing-plans#442

Open
Mharbulous wants to merge 1 commit intoobra:mainfrom
Mharbulous:add-plan-status-tracking
Open

feat: add plan status tracking to writing-plans and executing-plans#442
Mharbulous wants to merge 1 commit intoobra:mainfrom
Mharbulous:add-plan-status-tracking

Conversation

@Mharbulous
Copy link

@Mharbulous Mharbulous commented Feb 9, 2026

Summary

Adds YAML frontmatter with status: pending/executed to track the plan lifecycle across writing-plans and executing-plans:

  • writing-plans: Plan Document Header template now includes status: pending frontmatter
  • executing-plans: Step 5 (Complete Development) now marks the plan as status: executed before finishing

Motivation

When creating handovers for implementation tasks, downstream tools need to distinguish pending plans from already-executed ones. Without status tracking, stale plans accumulate in docs/plans/ and can cause false positive matches — routing to executing-plans for a plan that was already fully implemented.

The status field provides a simple, deterministic signal:

  • status: pending → plan exists and awaits execution → route to executing-plans
  • status: executed → plan already completed → route to writing-plans (new plan needed)
  • No frontmatter → legacy plan → ignored by matching logic

Changes

  • skills/writing-plans/SKILL.md: Added status: pending to plan header template + status values documentation
  • skills/executing-plans/SKILL.md: Added step 1 to Step 5 to update plan status to executed on completion

Testing

Verified against 9 existing plan files across a real repository. 5 implementation plans (with writing-plans signature) and 4 design docs (without). Status detection was 100% accurate with no false positives or negatives.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Plans now include status tracking with "pending" and "executed" states in their metadata.
    • Plan execution flow updated to automatically mark plans as "executed" upon completion.
    • Added explanatory documentation describing the status lifecycle and automatic updates.

Adds YAML frontmatter with `status: pending/executed` to track plan lifecycle.
writing-plans creates plans with `status: pending` in the header template.
executing-plans marks plans `status: executed` on completion (Step 5).

This enables downstream tools (like handover skills) to distinguish
pending plans from already-executed ones, preventing stale plan
false positives when auto-routing to planning superpowers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 9, 2026

📝 Walkthrough

Walkthrough

This change introduces a status tracking mechanism for plans using YAML frontmatter. The writing-plans skill now generates documents with status: pending, and the executing-plans skill has been reordered to explicitly update this status to executed as the first step before performing other operations.

Changes

Cohort / File(s) Summary
Plan Status Tracking
skills/writing-plans/SKILL.md, skills/executing-plans/SKILL.md
Adds YAML frontmatter-based status field (pending/executed) to plan documents. The executing-plans skill now updates plan status as the first step in its sequence before announcements and subsequent actions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A status we track, from pending to done,
Plans now remember their journey begun,
First mark them executed with care,
Then announce to the world, if you dare! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding plan status tracking functionality to two skills. It is concise, clear, and reflects the primary objective of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@obra
Copy link
Owner

obra commented Feb 9, 2026

Could you please give me a human-written explanation of the actual failure mode you experienced?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants