kcanom/pi-healing/heal-plan
Claude Code and agent skill by kcanom/pi-healing
- community
Checking that the SKILL.md file is still in the repository.
Phase 2 of 4 in the heal chain. Reads the bug findings from the chain state file, confirms each one is real, ranks them, and proposes a concrete fix strategy for each — fix now, defer, or won't-fix — with risk notes and a verification method per fix. Trigger when heal-scan says "run /heal-plan", or standalone via "heal-plan", "plan the bug fixes", "prioritize the heal findings".
Install
npx vskill@latest install kcanom/pi-healing/heal-planSKILL.md
The same SKILL.md was published earlier as kcanom/pi-healing/heal-plan.
Heal: Plan
Chain version: 1
Phase 2 of 4: scan → plan → fix → verify
Overview
Turns the raw findings from phase 1 into an ordered fix plan the user can review before any code is touched. Each finding is first confirmed real, then gets a decision (fix / defer / won't-fix), a concrete approach, a risk assessment, and a named verification method. This phase is read-only on project code.
Workflow
Step 1 — Load State
Read .heal-state.md from the project root:
- If missing → "No state file found. Run
heal-scanfirst." - If the frontmatter doesn't parse or is missing
task/started/status/
chain_version → "State file is malformed. Not proceeding on an unreadable state file."
- If
chain_versionis not1→ "State file was written by an incompatible
version of the heal chain."
- If
statusis not one of this chain's known values (in-progress,
phase-1-done, phase-2-done, phase-3-done, complete) → "Unrecognized status <actual> — this state file may belong to a different or since-edited chain."
- If
statusis known but notphase-1-done→ "Expected statusphase-1-done
but found <actual>. Run the previous phase first."
- If the
## Phase 1 — Scansection or its findings table is missing despite
the right status → "Status says phase-1-done but the Phase 1 findings are missing. Treat as corrupted."
Check for .heal-state.lock (abort if present, same message as phase 1), then create it.
Step 2 — Confirm Each Finding
A finding that can't be confirmed must not reach the fix phase. For each entry in the Phase 1 table:
- Read the surrounding code enough to understand the actual defect — not just
the flagged line, but the callers and the failure path.
- Reproduce it where cheap: re-run the failing test, re-run the type/lint
command on that file, or trace the code path by hand and state the exact input that triggers it.
- If it turns out to be a false positive (the error is actually handled, the
condition can't occur, the marker describes a wish not a bug), mark it won't-fix with the reason — never silently delete a finding.
Step 3 — Build the Fix Plan
For each confirmed finding decide:
- Decision: fix / defer / won't-fix (with one-line reason for defer and
won't-fix)
- Approach: one or two sentences describing the concrete fix — specific
enough that phase 3 can apply it without re-deriving it
- Risk: low / medium / high — how likely the fix is to break something
else, and what its blast radius is (who calls this code)
- Verify: how this specific fix will be proven — the name of an existing
test that covers it, "new test: <what it asserts>" when no test covers the bug and the project has a test framework, or a manual command with expected output when there is no test suite. Every fix row must have one.
- Order: fix criticals and highs first; within a severity, do low-risk
fixes before high-risk ones; group findings that touch the same file
If two fixes conflict or one supersedes another, say so explicitly in the plan. If phase 1 recorded "no test suite" as a finding, decide here whether adding a minimal test harness is in scope (usually: defer it, and rely on manual verification for this run — say so).
Step 4 — Update State
Atomically rewrite .heal-state.md (temp file + rename): keep everything, append the Phase 2 section, set status: phase-2-done:
Delete .heal-state.lock.
Handoff
After completing this phase, output exactly:
Phase 2 complete. State written to.heal-state.md.Review the fix plan above, then: Run/heal-fixto begin Phase 3.
Do not start the next phase. Do not offer to continue. Output only the handoff line and stop.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/heal-plan/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kcanom/pi-healing/heal-plan)