gaoscode/planweave

plan-recovery

Diagnose and recover PlanWeave execution anomalies such as stale current refs, state/results drift, orphan artifacts, blocked or diverged blocks, submit retries, and review-feedback loop inconsistencies.

First seen Jun 14, 2026

Installation

$ npx skills add gaoscode/planweave --skill plan-recovery

Summary

  • Diagnose and recover PlanWeave execution anomalies such as stale current refs, state/results drift, orphan artifacts, blocked or diverged blocks, submit retries, and review-feedback loop inconsistencies.
  • Use when PlanWeave execution state looks wrong, doctor reports issues, submit partially succeeded, or coordinator cannot safely continue.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gaoscode/planweave.

npx skills add gaoscode/planweave

Browse all from gaoscode/planweave

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 373
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,860 B
  • docs SUMMARY.md 362 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 46 installs

SKILL.md

Plan Recovery

Use this skill for abnormal PlanWeave execution state. Do not perform normal implementation or review work.

Quick Start

  1. Stop dispatching dependent work.
  2. Resolve the CLI entry and run <pw> help recovery for exact commands.
  3. Inspect package, state, results, and current/status/explain output; run doctor only for state/results consistency questions.
  4. Separate plan defects from runtime state/results drift.
  5. Use exact recovery commands for state writes when they express the needed repair; inspect files directly for evidence.
  6. Report what was repaired, what remains unsafe, and the next coordinator action.

Doctor Boundary

  • doctor detects narrow runtime state/results consistency issues such as stale current refs, orphan results, and state/index run drift.
  • doctor --repair is not a general plan repair tool.
  • Do not use doctor to fix bad dependencies, unsafe parallelization, missing prompts, wrong review-gate design, unclear task/block granularity, invalid project graph, or schema-invalid package structure.
  • For plan defects, report NEEDSPLANUPDATE and guide manual edits to the Plan Package, prompts, dependencies, or review gates.

Diagnose First

Check:

  • active current refs and current feedback.
  • block/task status and claim hints.
  • latest run indexes versus state block lastRunId.
  • orphan result artifacts.
  • stale current refs.
  • diverged or blocked refs and reasons.
  • review attempts, feedback status, and re-review state.
  • whether a retry is same-content idempotency or a fresh work revision.

Recovery Actions

  • Use doctor before state/results repair; use repair only when the reported fix is narrow and evidence-backed.
  • Read package/state/results directly when CLI output is incomplete, contradictory, or too summarized for diagnosis.
  • If CLI cannot safely claim/submit, have the coordinator read package/state/results and manually assign exact refs until write-back is safe.
  • Use blocked/unblocked commands for external prerequisites or temporary stops.
  • Use diverged/resolve-divergence when implementation reality no longer matches the Plan Package.
  • For submit partial success, look for persisted report/result artifacts before creating new runs or attempts.
  • For feedback resolved but still current, re-check current/status before submitting anything.
  • For parallel mismatch, compare sequential and parallel claimability before declaring no work.
  • If parallel mismatch comes from package design, adjust dependencies, parallel safety, or review gate placement manually instead of running repair.

Manual Fallback

Direct file inspection is part of recovery:

  • read project-graph.json when present, each canvas package/manifest.json, source prompts, state.json, results/, and planweave schema project/manifest/state/layout when structure is suspect.
  • verify metadata belongs to the same task/block/run before trusting indexes.
  • use CLI/runtime commands for mechanical workspace operations, validation, recovery transactions, and runtime state/results changes.
  • edit Plan Package semantic files directly inside CLI-returned workspace paths when the repair is a plan update: project-graph.json dependencies, canvas manifest.json tasks/blocks/edges/acceptance/prompt paths, and source prompt Markdown.
  • use narrow CLI edit commands when they exactly express the semantic change; otherwise update the source package files and prompts directly.
  • edit state.json or results/ directly only when no recovery command expresses the fix, the exact invariant is known, and the user accepts the risk.
  • after direct plan edits, run canvas-scoped validation for edited canvases and project validation when project-graph.json, canvas edges, or crossTaskEdges changed.
  • preserve evidence paths and explain any direct state/results write.

Stop Conditions

Stop and ask for user or plan update when:

  • package dependencies or prompts are wrong.
  • state cannot be repaired without guessing.
  • multiple current refs conflict with actual work ownership.
  • result metadata points to the wrong block or task.
  • review/feedback state is contradictory after doctor.
  • a recovery command would hide a real product or contract defect.

Recovery Report

Report:

  • verdict: RECOVERED, NEEDSPLANUPDATE, or BLOCKED.
  • symptoms and evidence.
  • commands run.
  • files inspected.
  • repairs made or intentionally skipped.
  • next safe command for plan-coordinator.