Skip to content
Back to skills

Stack Doctor

ASecurity

Lint the agent-stack setup — CLAUDE.md token budget (≤800), each SKILL.md description (≤1024 chars) and body (≤500 lines), hook conflicts in settings.json, frontmatter validity, and adapter availability. Use when something feels off, before committing config changes, or to confirm a healthy setup. Wraps `agent-stack doctor`; exit code 1 means there are issues to fix.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added August 30, 2026
ai-agents

Security analysis

A100/100

Scanned August 30, 2026

npx -y skills add drmahdikazempour/agent-stack --skill stack-doctor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stack Doctor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stack Doctor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/drmahdikazempour-stack-doctor/badge)](https://www.skillsdirectory.com/skills/drmahdikazempour-stack-doctor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stack-doctor
description: Lint the agent-stack setup — CLAUDE.md token budget (≤800), each SKILL.md description (≤1024 chars) and body (≤500 lines), hook conflicts in settings.json, frontmatter validity, and adapter availability. Use when something feels off, before committing config changes, or to confirm a healthy setup. Wraps `agent-stack doctor`; exit code 1 means there are issues to fix.
---

# 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.md` description ≤ 1024 chars (Agent Skills hard limit).
- Each `SKILL.md` body ≤ 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
1. Run `npx @drmahdikazempour/agent-stack doctor`.
2. If it exits non-zero, surface each failure with the file and the limit it broke.
3. For auto-fixable issues (e.g. CLAUDE.md over budget), offer `npx @drmahdikazempour/agent-stack optimize`.
4. For hook conflicts, never hand-edit `settings.json` — re-run `init`/`profile use` so the merger reconciles them.

`--skills-only` lints just the SKILL.md files (used in CI).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.