stack-doctor
Lint the optimization layer and report problems with exact files and limits.
Checks performed
CLAUDE.md≤ 800 tokens (startup-load budget).- Each
SKILL.mddescription ≤ 1024 chars (Agent Skills hard limit). - Each
SKILL.mdbody ≤ 500 lines. - Combined skill metadata ≤ 500 tokens.
- Zero hook conflicts in
.claude/settings.json. - Valid frontmatter (
name+description) on every skill. - Every adapter binary callable, or clearly flagged as config-only.
What to do
- Run
npx @drmahdikazempour/agent-stack doctor. - If it exits non-zero, surface each failure with the file and the limit it broke.
- For auto-fixable issues (e.g. CLAUDE.md over budget), offer
npx @drmahdikazempour/agent-stack optimize. - For hook conflicts, never hand-edit
settings.json— re-runinit/profile useso the merger reconciles them.
--skills-only lints just the SKILL.md files (used in CI).