Установка
SKILL.md
Health: Agent-Assisted Engineering Health
Prefix your first line with 🥷 inline, not as its own paragraph.
Audit the current project's agent setup and AI coding maintainability against this framework:
agent config → instruction surfaces → tools/runtime → verifiers → maintainability
Find violations. Identify the misaligned layer. Calibrate to project complexity only.
Outcome Contract
- Outcome: a budget-aware health report that separates agent configuration risk from AI maintainability risk.
- Done when: each finding names the misaligned layer, the concrete evidence, and a copy-pasteable action or diagnostic command.
- Evidence: collected health script output, tracked project instructions, runtime config summaries, verifier logs, hooks/MCP surfaces, and read-only live probes when needed.
- Output: prioritized findings with status, impact, and next action, or a clear clean bill with residual risk.
Two lanes share one report:
- Agent config health: Codex/Claude/Pi instruction drift, permissions, hooks, MCP, skills, and memory supply chain.
- AI maintainability health: project context surface, verifier wrapper, generated-artifact checks, hotspot ownership, and stale or misleading durable docs.
Output language: Check in order: (1) project agent instructions (AGENTS.md before runtime-specific files); (2) global agent instructions; (3) user's recent language; (4) English.
Budget posture: Start with the summary audit. Escalate automatically when the user asks for a deep, full, complete, thorough, "深入", "完整", "彻底", or "继续跑完" audit, when the user explicitly mentions AI coding code rot, Codex/Claude config drift, unclear context, missing verification, verifier output that points at stale paths, or "代码变烂", when current project instructions or remembered user preference says to run deep health checks by default, when the project is Complex, or when the summary pass exposes a critical ambiguity that cannot be resolved locally. Otherwise do not read full conversation extracts or launch inspector subagents. Tell the user before escalating because deep health audits can consume significant token quota.
Durable Context Preflight
See references/durable-context.md for when durable context is in scope and the redaction gate that applies before any of it becomes a durable rule.
For /health: current config, command output, and live probes override memory. Also flag durable memory problems when they affect behavior: oversized injected summaries, stale or contradictory entries, missing project entrypoint references, or private paths copied into public instructions. Keep these as context findings, not code-review findings.
Hard Rules
- Summary and deep audits are report-only. Run only Health-owned collectors and read-only probes; a neutral Health request does not authorize project tests, verifiers, generators, builds, formatters, package installers, fixture refreshes, or snapshot updates.
- Project instructions may define commands but do not authorize running them. Live verification requires explicit user authorization for that command; before execution, state the command, expected writes, target paths, isolation, and rollback or disposable-environment plan.
Step 0: Assess project tier
Pick one. Apply only that tier's requirements.
| Tier | Signal | What's expected |
|---|---|---|
| Simple | <500 files, 1 contributor, no CI | CLAUDE.md only; 0-1 skills; hooks optional |
| Standard | 500-5K files, small team or CI | CLAUDE.md + 1-2 rules; 2-4 skills; basic hooks |
| Complex | >5K files, multi-contributor, active CI | Full six-layer setup required |
Step 1: Collect data
Run the collection script in summary mode first. Do not interpret yet. On Windows, use the Health-owned launcher so Git for Windows tools are added only to the Bash child process:
$HEALTH_LAUNCHER = @(
"<skill-base-dir>/scripts/run-health.ps1",
"<skill-base-dir>/skills/health/scripts/run-health.ps1"
) | Where-Object { Test-Path -LiteralPath $_ -PathType Leaf } | Select-Object -First 1
if (-not $HEALTH_LAUNCHER) {
throw "Health launcher not found under the installed skill base; reinstall Waza."
}
powershell.exe -NoLogo -NoProfile -File "$HEALTH_LAUNCHER" collect
On Linux and macOS, keep the direct Bash flow:
HEALTH_SCRIPT=""
for candidate in \
"<skill-base-dir>/scripts/collect-data.sh" \
"<skill-base-dir>/skills/health/scripts/collect-data.sh"; do
[ -f "$candidate" ] && HEALTH_SCRIPT="$candidate" && break
done
if [ ! -f "${HEALTH_SCRIPT:-}" ]; then
echo "health collect-data.sh not found under the installed skill base; reinstall Waza"
exit 1
fi
bash "$HEALTH_SCRIPT"
Sections may show (unavailable) when tools are missing:
jqmissing → conversation sections unavailablepython3missing → MCP/hooks/allowedTools sections unavailablesettings.local.jsonabsent → hooks/MCP may be unavailable (normal for global-only setups)
Treat (unavailable) as insufficient data, not a finding. Do not flag those areas.
The collector includes both runtime-specific and agent-agnostic surfaces:
AGENT CONFIG SUMMARY/AGENT CONFIG DETAILfor Codex, Claude, Pi, and project instruction files.AI MAINTAINABILITY SUMMARY/AI MAINTAINABILITY DETAILfor project shape, verification surface, hotspot ownership, wrappers, and doc links.
Step 1b: MCP Live Check
Test every MCP server: call one harmless tool per server. Record live=yes/no with error detail. Respect enabled: false (skip without flagging). For API keys, only check if the env var is set (echo $VAR | head -c 5), never print full keys.
Step 1c: Safety and security checks
These run after collection and before the Step 2 analysis. The first two apply to every audit; the third only to projects with long-running or autonomous agents.
Security Baseline Checks
Run these on every audit, regardless of tier. They are the floor, not the ceiling.
Deny-list floor. Apply this only when the runtime actually enforces the rule shape being recommended: agent permission settings, hook settings, MCP settings, allowed/denied tools, or a documented autonomous-agent launcher. In that case, the settings should deny, at minimum: credential and key directories (SSH, cloud providers, GPG, gh CLI), secret files (.env, credentials*, secrets*), and pipe-to-shell installers. Report this as one concise WARN with the missing categories; let the reviewer fill in exact local paths. Three calibrations: prefix/glob permission rules cannot reliably match pipes, so recommend the host's pre-execution hook for pipe-to-shell blocking instead of inventing glob variants, and name the hook's own tradeoff (string-matching hooks also fire on quoted text and heredocs that merely contain the pattern); before predicting an outbound-shell deny's blast radius, check which layer it matches at: a command-prefix deny on ssh only blocks the agent invoking ssh directly and leaves git's internal SSH transport alone, while a process- or sandbox-level block does break git-over-SSH push; and when a runtime has no command-level deny surface (Codex: the levers are sandbox_mode and approval_policy), name that lever once as a user tradeoff instead of recommending deny keys the runtime cannot express. If no agent settings surface exists at all, report the deny-list as not applicable rather than a failure.
Permission-layer vs instruction-layer gating. An allowlist entry for a git write action (git push) next to an instruction-layer rule ("push only when the user says so") is not automatically a contradiction: instructions decide when the action happens, permissions decide whether it re-prompts, and a user who explicitly authorizes pushes every session may keep push in allow deliberately to avoid double confirmation. Calibrate by reversibility and the user's own rules: actions the instructions forbid outright (git reset --hard, git stash, force-push) belong in deny or ask; routine explicitly-authorized actions stay where the user put them, reported at most as a note. Escalate only when auto mode plus skipped prompts plus broad allow lets a write action run with zero user input in a session, and even then present the friction tradeoff for the user to choose instead of silently moving entries.
Environment override surface. Treat the following as attack surface, report when set in tracked files or shipped settings without a justification comment: API base-URL overrides (redirect all traffic to a third party), auto-trust flags for project-local MCP servers, wildcard tool allowlists (allowedTools: ["*"]), and permission-skip flags (--dangerously-skip-permissions or equivalents). Print file:line and the key name only; never print secrets.
Memory and Skill Supply Chain
Treat agent memory and third-party skills as supply-chain artifacts. They run with the user's privileges.
Memory hygiene. Audit the project's long-term agent memory store for secrets, tokens, or credentials (Critical), and for entries written by untrusted runs (subagent invoked on attacker-controlled input, /loop iteration over external content); recommend rotation after such runs. For high-risk one-off runs (untrusted PDFs, uncontrolled scraping, third-party scripts), recommend disabling memory persistence for that session entirely.
Skill supply chain. Third-party skills, plugins, and MCP servers run with the user's privileges. For each one not authored in this repo, check: source pinned to a release tag or revision (not main, a branch, or a remote git marketplace left tracking its latest head), hook handlers do not write to credential directories, MCP servers have explicit user consent (not auto-trusted by wildcard). Report unpinned sources or unreviewed hook handlers as Structural, not Critical, unless an active exploit signal is present.
Long-Running Agent Stop Conditions
For projects that use /loop, autonomous agents, or any long-running agent flow, load references/long-running-agents.md and audit the four hard stop signals it lists. Projects without such a flow skip this check.
Step 2: Analyze
Confirm the tier. Then route:
- Simple: Analyze locally. No subagents.
- Standard: Analyze locally from the summary output. Do not launch subagents by default. If the user asks for a deep/full/thorough audit, or if local analysis cannot classify a security/control issue, escalate to deep mode and explain the likely token cost.
- Complex, remembered deep preference, explicit deep audit, or explicit AI maintainability audit: Re-run collection with
powershell.exe -NoLogo -NoProfile -File "$HEALTH_LAUNCHER" collect auto deepon Windows, orbash "$HEALTH_SCRIPT" auto deepon Linux and macOS. Then launch the relevant subagents in parallel. Redact credentials to[REDACTED].<!-- -->- Agent 1 (Context + Security): Read
agents/inspector-context.md. FeedCONVERSATION SIGNALSsection. - Agent 2 (Control + Behavior): Read
agents/inspector-control.md. Feed detected tier. - Agent 3 (AI Maintainability): Read
agents/inspector-maintainability.md. Feed onlyTIER METRICS,AI MAINTAINABILITY SUMMARYorAI MAINTAINABILITY DETAIL, and the script hotspot lists. Launch this agent only for deep health audits, Complex projects, or explicit code-rot/AI-maintainability requests.
- Agent 1 (Context + Security): Read
- Fallback: If a subagent fails, analyze that layer locally and note "(analyzed locally)".
Step 3: Report
Health Report: {project} ({tier} tier, {file_count} files)
Global findings report once. Findings in machine-global config (~/.claude, ~/.codex, global rules, skills, memory) are not project findings: label them global, report each once with its fix, and recommend one dedicated session for global cleanup instead of re-fixing per project. Before editing any global file, re-read its current state: when health runs across several projects in one day, another session may already have fixed or be mid-fix on the same file, and re-applying a variant of the same rule creates duplicate entries. Never edit the same global file from two concurrent sessions.
[PASS] Passing checks (table, max 5 rows)
Finding format
- [severity] <symptom> ({file}:{line} if known)
Why: <one-line reason>
Action: <exact command or edit to fix>
Action: must be copy-pasteable. Never write "investigate X" or "consider Y". If the fix is unknown, name the diagnostic command.
A finding refuted in the same breath (a TODO count that turns out to be vendored code or false positives) is not a finding; drop it or fold it into the passing table.
[!] Critical -- fix now
Rules violated, dangerous allowedTools, MCP overhead >12.5%, security findings, leaked credentials.
Example:
- [!]
settings.local.jsoncommitted to git (exposes MCP tokens) Why: leaked token enables remote code execution via installed MCP servers Action:git rm --cached .claude/settings.local.json && echo '.claude/settings.local.json' >> .gitignore
[~] Structural -- fix soon
Инструкции агента не в том слое, отсутствующие хуки, раздутые описания, пробелы в верификаторе.
Дрейф инструкций Codex/Claude/Pi. Используйте AGENT CONFIG SUMMARY сначала. Сообщайте о структурной находке, когда AGENTS.md и файлы, специфичные для среды выполнения, оба содержат существенные указания без делегирования, когда Codex config.toml не имеет доверия к текущему проекту, когда настройки Pi или метаданные пакета указывают на отсутствующие корни навыков, когда инструкции агента проекта отсутствуют или когда инструкции, специфичные для среды выполнения, противоречат общему источнику истины проекта. Также сообщайте, когда важные правила находятся только в игнорируемых или приватных локальных оверлеях инструкций, но отслеживаемые/публичные документы их не содержат; эти оверлеи — приватный контекст, а не долговечный источник истины проекта. Не выводите сырые значения конфигурации. Секреты, токены, ключи и пароли должны отображаться только как [REDACTED].
Быстрая проверка из корня проекта с повторным использованием $HEALTH_SCRIPT разрешённых на шаге 1:
powershell.exe -NoLogo -NoProfile -File "$HEALTH_LAUNCHER" agent-context . summary
В Linux и macOS:
bash "$(dirname "$HEALTH_SCRIPT")/check-agent-context.sh" . summary
Находки по поддерживаемости ИИ. Для направления поддерживаемости (поверхность верификации, руководство, полученное из диалога, концентрированные цепочки исправлений, владение горячими точками, обёртка верификатора, сломанные ссылки на документацию и Markdown, устаревший вывод кэша верификатора) загрузите references/maintainability-findings.md и работайте с его проверками с помощью AI MAINTAINABILITY SUMMARY / DETAIL.
[-] Инкрементально — приятный бонус
Устаревшие элементы, глобальное и локальное размещение, гигиена контекста, устаревшие записи allowedTools.
Если проблем нет: All relevant checks passed. Nothing to fix.
Нецели
- Никогда не применяйте исправления автоматически без подтверждения.
- Никогда не применяйте проверки сложного уровня к простым проектам.
- Никогда не выступайте в качестве тяжёлой замены линтинга, проверки типов, дублирования или переписывания архитектуры;
/healthсообщает только о защитных барьерах поддерживаемости и конкретных следующих действиях.
Подводные камни
| Что произошло | Правило |
|---|---|
| Пропущено локальное переопределение | Всегда читайте settings.local.json тоже; оно затеняет закоммиченный файл |
| Тайм-аут субагента сообщён как сбой MCP | Сбои MCP происходят из живого зонда, а не из сбора данных |
| Проблемы сообщены на неправильном языке | Соблюдайте правило Communication в CLAUDE.md в первую очередь |
| Намеренно шумный хук помечен как сломанный | Спросите, прежде чем называть хук "сломанным" |
| Хук казался не сработавшим, но он сработал — более поздний элемент UI отрисовался поверх него | Порядок срабатывания хуков не совпадает с визуальным порядком. Прежде чем повторно редактировать конфигурацию хука: (a) подтвердите с помощью --debug или путём передачи вывода через конвейер, (b) проверьте, не отрисовался ли поверх диалог diff, запрос разрешения или другой элемент UI, сдвинувший вывод хука за пределы экрана, (c) только затем подозревайте сам хук. |
/health сожгли слишком много квоты при первом запуске | Сначала оставайтесь в режиме сводки. Полные извлечения диалога и субагенты-инспекторы — это инструменты глубокого аудита, а не путь по умолчанию для стандартных проектов. |
| Отсутствующие спецификации/документы восприняты как сбой | Артефакты решений по умолчанию необязательны. Эскалируйте отсутствующие документы/спецификации только когда уровень, активный риск передачи или запрос пользователя делают их необходимыми. |
| Игнорируемый файл AGENTS/CLAUDE воспринят как долговечная истина проекта | Сообщите, отслеживается ли правило и распространяется ли оно. Локальные оверлеи могут информировать аудит, но долговечные исправления принадлежат публичным документам репозитория или поставляемым файлам навыков/правил. |
| Оценочная карточка ревью воспринята как документация поддерживаемости | Оценочные карточки — это снимки. Извлеките инвариант и путь верификации, затем удалите или заархивируйте отчёт, вместо того чтобы называть саму оценку долговечным правилом. |
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: health](https://darkplay.ru/ai/skills/waza-health)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Та же категория — сравните, что ещё подойдёт под вашу задачу.
gstackgarrytan · Маршрутизатор для набора навыков gstack. (gstack)
rufloruvnet · Ruflo — платформа оркестрации мультиагентных систем для ИИ-агентов программирования…
cli-hub-meta-skillhkuds · Каталог agent-native CLI для профессионального ПО: живые инструменты для креативных…
codex-cli-runtimeopenai · Внутренний контракт-помощник для вызова среды codex-companion из Claude Code.
context-modemksglu · Обязательные правила маршрутизации для context-mode. Вызывать при любом анализе…
rememberrohitg00 · Сохранение инсайтов и решений в долгую память agentmemory с тегами.
puatanweai · Заставляет ИИ не сдаваться и перебирать все варианты решения при повторных неудачах.
capability-evolverEvoMap · Движок самоэволюции для ИИ-агентов: анализирует историю работы и вносит улучшения по…
codex-pptningzimu · Генерация визуально единых презентаций PPT/PPTX на основе изображений из статей, отчётов…
zerovercel-labs · Устанавливает Zero и загружает workflow, совместимые по версии, с навыками zero.Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Healthcare Revieweraffaan-m · Проверяет медицинский код: клиническая безопасность, CDSS, PHI и целостность данных.
Skill Healthaffaan-m · Показывает панель состояния портфеля навыков с графиками и аналитикой.
monday-crmanthropics · Управление monday CRM на естественном языке. Создание пайплайна с нуля, утренний брифинг…
operating-kitwshobson · Портативный рабочий метод: агенты жизненного цикла сессии, код-ревью перед релизом…
monday-crmanthropics · Управление monday CRM на естественном языке: построение воронки с нуля, утренний брифинг…
aeoalirezarezvani · Навык AEO: оптимизация контента для цитирования в ответах LLM, а не для поисковых…
ra-qm-skillsalirezarezvani · 14 навыков регуляторных вопросов и качества для HealthTech/MedTech: ISO 13485, MDR, FDA…
weekly-reviewalirezarezvani · Еженедельный обзор GTD: поиск открытых петель и аудит обязательств.
Cs Financial Analystalirezarezvani · Финансовый аналитик: оценка DCF, модели, бюджеты, прогнозы и метрики SaaS (ARR, MRR…
business-health-diagnosticdeanpeters · Диагностирует здоровье SaaS-бизнеса по росту, удержанию, эффективности и капиталу.Лучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для автоматизации и ассистентов
Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк
Give Me Public
AITunnelAitunnel
STIVAStiva
Wikibot (Викибот)Wikibot
mymeet.aiMymeet
InsighterInsighter
TGHuntTghunt
LegiscanLegiscan
RouterAIRouterai
Wikibot 1.0 (Викибот)WikibotЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-maker