Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
33 lines
1.2 KiB
Markdown
33 lines
1.2 KiB
Markdown
---
|
||
name: msd:health
|
||
description: Diagnose planning directory health and optionally repair issues
|
||
argument-hint: "[--repair] [--context]"
|
||
allowed-tools:
|
||
- Read
|
||
- Bash
|
||
- Grep
|
||
- Write
|
||
- AskUserQuestion
|
||
requires: [thread]
|
||
---
|
||
<objective>
|
||
Validate `.planning/` directory integrity and report actionable issues. Checks for missing files, invalid configurations, inconsistent state, and orphaned plans.
|
||
|
||
`--context` runs an orthogonal check: the running session's context utilization. The workflow asks for the model's tokensUsed + contextWindow, calls `msd-tools query validate.context`, and renders one of three states:
|
||
|
||
| Utilization | State | Action |
|
||
|-------------|----------|-------------------------------------------------------|
|
||
| < 60% | healthy | no action — context is comfortable |
|
||
| 60% – 70% | warning | recommend `/msd:thread` to start fresh |
|
||
| ≥ 70% | critical | reasoning quality may degrade past the fracture point |
|
||
</objective>
|
||
|
||
<execution_context>
|
||
@~/.claude/msd-core/workflows/health.md
|
||
</execution_context>
|
||
|
||
<process>
|
||
Execute end-to-end.
|
||
Parse `--repair` and `--context` flags from arguments and pass to workflow.
|
||
</process>
|