Check planning directory integrity. Find and fix corrupted state.
Validates planning directory integrity by running nine diagnostic checks and reporting issues with targeted fixes.
npx claudepluginhub sienklogic/towlineThis skill is limited to using the following tools:
templates/check-pattern.md.tmpltemplates/output-format.md.tmplYou are running the health skill. Your job is to validate the integrity of the .planning/ directory, report problems, and suggest targeted fixes. You never auto-repair anything.
This skill runs inline and is read-only — it never modifies any files.
Each check follows the common pattern. Read skills/health/templates/check-pattern.md.tmpl for the shared execution flow: target files, validate against rules, classify as PASS/FAIL/WARN/INFO, and record the result with a fix suggestion for any failures.
Read skills/health/templates/output-format.md.tmpl for the output format: summary table, status indicators, issues list, optional recent decisions, and final result line.
Run all 9 checks in order. Collect results and present them together at the end.
Validate .planning/ exists with required scaffolding: STATE.md, config.json, ROADMAP.md.
.planning/ is missing: FAIL the entire health check immediately. Display:╔══════════════════════════════════════════════════════════════╗
║ ERROR ║
╚══════════════════════════════════════════════════════════════╝
No .planning/ directory found.
**To fix:** Run `/dev:begin` to initialize.
Stop all further checks.
/dev:begin to re-initialize, or create the file manually."Parse .planning/config.json as JSON. Check required fields: projectName, version. Check recommended fields: phases, currentPhase.
Compare directories in .planning/phases/ against phases defined in ROADMAP.md.
Glob all PLAN*.md and SUMMARY*.md in .planning/phases/. Match by plan number. A PLAN without SUMMARY is normal unless the phase is marked complete.
/dev:build or mark phase incomplete."Extract current phase, plan identifier, and progress percentage from STATE.md. Verify each against the file system.
Glob all PLAN*.md and SUMMARY*.md in .planning/phases/. Each file must start with ---, have a closing ---, contain valid YAML, and include required fields: title, status.
--- at the top of the file."--- delimiters."{field}: {suggested value} to the frontmatter."Compare ROADMAP.md phase statuses against STATE.md current position. Flag if ROADMAP says a phase is "verified" but STATE says it is "building", or if phases after current are marked complete.
Check if .planning/logs/hooks.jsonl exists. If so, scan last 20 entries for result: "error" or result: "unlink-failed".
Read .planning/config.json and check for fields referenced by skills:
features.auto_continue (build skill, auto-continue.js hook)
features.team_discussions (config skill)
features.goal_verification (build, review skills)
features.integration_verification (review skill)
git.mode (config skill)
PASS: All expected fields present
WARN (missing fields): Report each missing field and which skill uses it — "Run /dev:config to set all options."
After all checks, look for .planning/logs/decisions.jsonl. If it exists, display the last 5 entries as - {date}: {summary} (phase {N}). If it does not exist, skip silently.
After all checks complete, display the branded result:
If all checks passed (0 failures):
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TOWLINE ► HEALTH CHECK PASSED ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
{N} checks passed, {M} warnings
───────────────────────────────────────────────────────────────
## ▶ Next Up
**Continue your workflow** — planning directory is healthy
`/dev:status`
<sub>`/clear` first → fresh context window</sub>
───────────────────────────────────────────────────────────────
**Also available:**
- `/dev:continue` — execute next logical step
- `/dev:config` — adjust settings
───────────────────────────────────────────────────────────────
If failures found:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TOWLINE ► HEALTH CHECK FAILED ⚠
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
{N} checks passed, {F} failures, {M} warnings
───────────────────────────────────────────────────────────────
## ▶ Next Up
**Fix the failures** listed above, then re-run
`/dev:health`
───────────────────────────────────────────────────────────────
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.