config-audit — скилл для Claude Code: аудит конфигурации
Разбирает ~/.claude по полочкам: сколько скиллов, субагентов и хуков накопилось, что дублируется и где риск.
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill config-audit -a claude-codeЧто делает config-audit
Скилл ходит в Config Explorer API дашборда Agent Monitor на http://localhost:4820 и собирает отчёт по вашей конфигурации. Данные берутся из /api/cc-config/overview, /skills, /agents, /commands, /hooks и /settings — вручную ничего считать не нужно.
Отчёт начинается с вердикта: CLEAN, SPRAWL DETECTED или RISKY HOOKS. Дальше таблица по поверхностям с разбивкой user/project, список совпадений имён между областями (проектный скилл перекрывает пользовательский) и похожих по описанию единиц, а также разбор хуков с type: "command". Отдельно помечены хуки с сетевыми вызовами (curl, wget, http, nc) и те, что запускаются без timeout.
Дашборд должен быть уже запущен. Если http://localhost:4820 не отвечает, скилл скажет об этом и предложит поднять сервер командой npm start из корня репозитория. Правки предлагаются только для изменяемых поверхностей — скиллов, субагентов, команд, output-styles и CLAUDE.md; для плагинов, MCP-серверов и settings.json остаётся указать файл и править руками.
Какие задачи решает
- посчитать скиллы и субагенты отдельно по пользовательской и проектной области
- найти скилл, который перекрывает одноимённый пользовательский
- выловить хуки, дёргающие сеть через
curlилиwget - отличить поверхности, которые можно чистить через API, от тех, что правятся только в файле
- получить вердикт по конфигурации одной строкой
Примеры запросов агенту
- Проведи полный аудит моей конфигурации Claude
- Проверь только хуки: какие запускают shell-команды и без таймаута
- Прогони аудит скиллов для проекта по пути
?cwd=/home/me/work/api
Как установить config-audit
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill config-audit -a claude-code2Вручную: положить файлы
~/.claude/skills/config-audit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/config-audit/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill config-audit -a codex2Вручную: положить файлы
.agents/skills/config-audit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill config-audit -a cursor2Вручную: положить файлы
.cursor/skills/config-audit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install hoangsonww/Claude-Code-Agent-Monitor config-audit2Вручную: положить файлы
.github/skills/config-audit/SKILL.md1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill config-audit -a gemini-cli2Командой платформы
gemini skills install https://github.com/hoangsonww/Claude-Code-Agent-Monitor --path plugins/ccam-config/skills/config-auditВручную: положить файлы
.devin/skills/config-audit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill config-audit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о config-audit
Как установить config-audit в Claude Code?
Выполните npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill config-audit -a claude-code, файл скилла окажется в ~/.claude/skills/config-audit/SKILL.md.
Что делает config-audit?
Читает конфигурацию через Config Explorer API и выдаёт отчёт: счётчики по поверхностям, дубли скиллов и субагентов, хуки с shell-командами и список изменяемых поверхностей.
Нужен ли запущенный дашборд?
Да, скилл обращается к http://localhost:4820. Если сервер не отвечает, запустите npm start из корня репозитория.
Исходный текст
SKILL.md · MIT
---
name: config-audit
description: >
Run a full audit of the user's Claude Code configuration via the Agent
Monitor Config Explorer API: counts per surface (user vs project),
duplicate or overlapping skills and subagents, hooks that run shell
commands, and which surfaces are read-only vs mutable. Reads
/api/cc-config/overview, /skills, /agents, /commands, /hooks, and /settings.
Use when reviewing your Claude Code setup for sprawl, duplication, or risk.
---
# Config Audit
Produce a complete, data-backed audit of how the user's `~/.claude`
configuration has grown, what overlaps, and what is risky — all read through
the Agent Monitor dashboard at `http://localhost:4820`.
## Input
The user provides: **$ARGUMENTS**
This may be:
- empty or "full" — audit every surface (default).
- "skills" / "agents" / "commands" / "hooks" / "settings" — scope the audit to
one surface only.
- a project path passed as `?cwd=` — to audit a project other than the
dashboard server's own working directory.
## Data Sources
| Endpoint | Returns |
|----------|---------|
| `GET /api/cc-config/overview` | `roots` + `counts` for every surface, split `{user,project}` where applicable (skills, agents, commands, outputStyles, plugins, mcpServers, hooks, memory, settingsFiles) |
| `GET /api/cc-config/skills` | `{ items:[{ scope, name, file, size, mtime, frontmatter, preview }] }` |
| `GET /api/cc-config/agents` | `{ items:[{ scope, name, file, size, mtime, frontmatter, preview }] }` |
| `GET /api/cc-config/commands` | `{ items:[{ scope, name, file, size, mtime, frontmatter, preview }] }` |
| `GET /api/cc-config/hooks` | `{ items:[{ scope, file, exists, hooks:{ <Event>:[{matcher,type,command,timeout}] } }] }` |
| `GET /api/cc-config/settings` | `{ items:[{ scope, file, exists, data(redacted), raw_size }] }` |
## Report Sections
### 1. Surface inventory (user vs project)
From `/overview` `counts`, print a table: one row per surface with `user`,
`project`, and `total` columns. Cover skills, agents, commands, output-styles,
plugins (with enabled/disabled), marketplaces, MCP servers, hooks
(user/project/project-local), memory, and settings files. Echo the resolved
`roots` so the user knows which `claudeHome`/project was inspected.
### 2. Duplicate & overlapping skills + agents
Fetch `/skills` and `/agents`. Detect:
- **Name collisions across scope** — same `name` at both user and project
scope (project shadows user). List both `file` paths.
- **Near-duplicates** — entries whose `frontmatter.description` / `preview`
describe the same job. Group them and recommend keeping one.
### 3. Hooks that run shell commands
Flatten `/hooks` to `(scope, file, Event, matcher, type, command, timeout)`.
Flag every `type: "command"` entry. Within those, escalate ones that contain
network egress (`curl`, `wget`, `http`, `nc`) or run unbounded with no
`timeout`. Print the raw `command` so the user can review it.
### 4. Read-only vs mutable surfaces
State which surfaces the Config Explorer can mutate (skills, agents, commands,
output-styles, user/project CLAUDE.md, and per-project `auto-memory` files via
`PUT`/`DELETE /api/cc-config/file`) versus those that are read-only by design
(plugins, MCP servers, settings.json and its in-file hooks — written
concurrently by the running CLI). Direct cleanup suggestions only at mutable
surfaces; for read-only ones, name the source `file` to edit by hand.
## Output
- A one-line verdict first: CLEAN / SPRAWL DETECTED / RISKY HOOKS.
- Section 1 as a Markdown table (`Surface | User | Project | Total`).
- Section 2 as grouped lists with `file` paths.
- Section 3 as a table (`Scope | Event | Matcher | Command | Risk`).
- Sizes in KB; any cost in USD to 4 decimals; use ▲/▼ for scope deltas.
- Cite only fields the API returned — never fabricate counts or commands.
- If the dashboard is unreachable at `http://localhost:4820`, say so and tell
the user to start it with `npm start` from the repo root.
© hoangsonww · MIT · hoangsonww/Claude-Code-Agent-Monitor