Skip to content

/edikt:doctor

Validate governance setup and report what's healthy, what's missing, and how to fix it.

Usage

/edikt:doctor

What it checks

CheckPassWarn
.edikt/config.yaml validParse error shown
{base}/project-context.md existsSuggest /edikt:init
{base}/decisions/ ADRs✅ countEmpty → suggest /edikt:adr
{base}/invariants/✅ count
.claude/rules/ packs✅ countEmpty → suggest /edikt:init
Rule pack freshness✅ currentOutdated → suggest /edikt:rules-update
CLAUDE.md edikt sentinelMissing → suggest /edikt:init
SessionStart hookOutdated inline bash → suggest /edikt:upgrade
Stop hookOutdated format or blocking error → suggest /edikt:upgrade
PreToolUse hookMissing → suggest /edikt:init
PreCompact hookMissing → suggest /edikt:init
{base}/product/spec.mdMissing → suggest /edikt:intake
Active plans✅ countNone → suggest /edikt:plan
Auto-memory✅ age/sizeStale or near limit → suggest /edikt:context
Agents installed✅ countNone → suggest /edikt:init
Extensibility (template + rule overrides)Extension file configured but missing
Linter syncConfig newer than rules → suggest /edikt:sync
edikt version✅ matchProject version differs from installed → suggest /edikt:upgrade

Decision graph validation

Doctor also validates the consistency of the governance graph:

CheckWhat it detects
ADR contradictionsPairs of accepted ADRs making opposing decisions on the same topic
Rule-invariant consistencyRules that contradict an active invariant
Plan-ADR dependenciesActive plans referencing superseded ADRs
Invariant enforcementInvariants not referenced by any rule or hook
Orphan artifactsADRs, PRDs, or specs not referenced by any other artifact
Stale artifactsPRDs or specs stuck in draft for more than 7 days
State machine violationsSpecs referencing unaccepted PRDs, or plans referencing draft artifacts

Output

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 EDIKT DOCTOR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

 [ok]   .edikt/config.yaml valid
 [ok]   docs/project-context.md exists
 [ok]   docs/decisions/ — 4 ADRs
 [ok]   .claude/rules/ — 3 packs installed
 [!!]   go.md outdated (installed: 1.0, available: 1.2) — run /edikt:rules-update
 [ok]   CLAUDE.md has edikt sentinel
 [ok]   SessionStart hook is git-aware
 [ok]   Memory: 2 days old, 45/200 lines
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 14 passed, 1 warning, 0 failures
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Recommendations:
  1. go.md outdated — run /edikt:rules-update

Natural language triggers

  • "is edikt set up correctly?"
  • "check governance"
  • "doctor"
  • "any issues with edikt?"

Released under the Elastic License 2.0. Free to use, not for resale.