planr-fix
Planr Fix
Use this skill when the next job is to finish real implementation work, not just describe it.
A planr-fix is invalid if it claims completion without owned scope, honest live status, root-cause reasoning for bug-driven work, and exact verification evidence.
CLI-First Rule
- Read ../planr-shared.md first.
- Use
./.planr/tooling/planr status show,ensure-scope,set-checklist,set-blocker, andset-verificationfor.planrstate whenever they fit. - There is no
planr.py fixcommand today. Use normal repo tools for implementation, tests, and scoped verification.
Required Inputs
- the trigger: user request, failing test, bug doc, task note, or
planr-reviewfinding - the governing
.planr/plans/*.plan.mdwhen one exists - any explicitly referenced historical source doc still in scope
- the exact implementation files and tests for the owned scope
Core Rules
- Convert every in-scope request, finding, or failing behavior into a real fix or an explicit blocked or unverified item.
- For bugs, regressions, contract failures, unexpected requests, restore or hydration issues, and hidden writes, debug root-cause first:
- state the expected behavior and invariant
- trace the call path
- identify the canonical source of truth and the first unintended side effect or write
- Fix the correct owner layer, not only the downstream symptom.
- Do not make contracts, parsers, or validation more permissive unless that behavior is proven canonical.
- Apply the hard-cut policy by default: remove fallback, compatibility, shim, dual-path behavior, and one-value shells unless transition support was explicitly requested.
- Checked phase items, completed plan
todos, and live-status entries are claims until the owned diff and verification evidence prove them.
Required Workflow
- Start from the concrete trigger, not from the diff.
- Define the owned implementation scope and exclude unrelated dirty paths.
- Use the CLI to ensure or inspect the live scope entry before major edits when the command surface fits.
- Translate each in-scope issue into explicit checklist items with owned scope and required proof.
- Implement the canonical fix in the correct layer, including hard-cut cleanup where required.
- Update or add the smallest proof that can fail for the right reason.
- After each substantial step, sync checklist, blocker, and verification state through the CLI when supported.
- Reconcile checked plan items, completed
todos, and live-status claims against the owned diff and actual verification before marking anything complete. - Return completed work separately from blocked or unverified work, quoting exact commands and real results.
Output Format
Use this structure:
Execution scopeChecklist statusVerification evidenceRemaining blockers or unverified itemsBrief summary
Rules for the response:
- Say which findings, direct requests, or failing behaviors were closed.
- If the work started from a bug or regression, name the root cause and the layer fixed.
- Quote the exact verification command for each completed claim.
- If something could not be verified, say that explicitly rather than smoothing it over.
- Keep the summary short and factual.
Additional Resource
- Read ../planr-shared.md first for shared CLI coverage and shared
.planrrules. - For the full execution checklist, verification ladder, and response template, see reference.md
More from regenrek/codex-planr
planr-review
Review agent-owned implementation scope in this repository against `.planr` plans or live status, path-scoped Git evidence, and acceptance criteria. Use for findings-first audits of completion, correctness, architecture, hard-cut cleanup, and test sufficiency. Not for implementing fixes (`planr-fix`), writing a new execution contract (`planr-plan`), or giving a verdict-only status answer (`planr-status`).
1planr-plan
Create or update executable `.planr/plans/*.plan.md` contracts in this repository. Use when scope, ownership, phase breakdown, verification, or acceptance criteria must be defined before implementation, including bug-to-plan conversions and review-finding follow-up plans. Not for executing fixes (`planr-fix`), giving a verdict-only status answer (`planr-status`), or running a findings-first audit (`planr-review`).
1planr-summary
Produce a user-facing recap of an owned `.planr` scope in this repository. Use when the user asks what changed, why it changed, what works now, what intentionally no longer works, or what remains blocked after `planr-fix`, `planr-status`, or `planr-review`. Not for deciding completion (`planr-status`), running a findings-first audit (`planr-review`), or continuing implementation (`planr-fix`).
1planr-status
Assess the honest current state of a scoped `.planr` task in this repository. Use when the user asks what is done, what remains, what is blocked, whether a scope is complete, which scopes are open, or what should come next. Start with the deterministic `.planr` CLI where it has command coverage. Not for implementing fixes (`planr-fix`) or running a findings-first audit (`planr-review`).
1