Skip to content

armadillo-doctor

Runs health checks on plugin-mode projects — settings integrity, orphan detection, managed rules sync

ModelSourceCategory
sonnetcoreMeta
  • After migrating to plugin mode (verify migration succeeded)
  • When plugin-mode project behaves unexpectedly
  • Periodic health check on plugin-mode installations
  • When user says “doctor”, “health check”, “diagnose plugins”
Full Reference

Health check for plugin-mode projects. Validates settings, detects orphaned armadillo files, and audits managed vs project-local rules.

Mandatory Announcement — FIRST OUTPUT before anything else:

┏━ 🛡 armadillo-doctor ━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ [one-line description of what you're checking] ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
  • After migrating to plugin mode (verify migration succeeded)
  • When plugin-mode project behaves unexpectedly
  • Periodic health check on plugin-mode installations
  • When user says “doctor”, “health check”, “diagnose plugins”
CheckWhat It VerifiesPassFail
Settings integritysettings.json has extraKnownMarketplaces + enabledPluginsBoth presentMissing fields
Orphan detectionNo stale armadillo-managed files remainCleanManaged skills/hooks/lib found
Rules syncCounts managed vs project-local rulesCounted— (always passes)
  1. Import checks from scripts/lib/doctor-plugin.js
  2. Get managed skills list from armadillo.json manifest
  3. Run runDoctorChecks(projectDir, { managedSkills })
  4. Display results table with pass/fail/warn status
┌─ Doctor Results ──────────────────────────────────┐
│ settings ✓ marketplace + 3 plugins enabled │
│ orphans ✓ no stale armadillo files │
│ rules ✓ 12 managed, 2 project-local │
└───────────────────────────────────────────────────┘
SkillRelationship
armadillo-syncRuns doctor after migration to plugin mode
doctor-plugin.jsLibrary module with check implementations
detect-entry-state.jsDetermines if project is in plugin mode