health

tw93/waza

Проводит аудит инженерного здоровья с учётом бюджета: дрейф инструкций и конфигов, хуки/MCP, поверхности верификации и поддерживаемость ИИ. Для Claude, Codex, Pi.

Звёзды7 606
Форки437
Авторtw93
Обновлённоя 11 2026

Установка

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.

TierSignalWhat's expected
Simple<500 files, 1 contributor, no CICLAUDE.md only; 0-1 skills; hooks optional
Standard500-5K files, small team or CICLAUDE.md + 1-2 rules; 2-4 skills; basic hooks
Complex>5K files, multi-contributor, active CIFull 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:

  • jq missing → conversation sections unavailable
  • python3 missing → MCP/hooks/allowedTools sections unavailable
  • settings.local.json absent → 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 DETAIL for Codex, Claude, Pi, and project instruction files.
  • AI MAINTAINABILITY SUMMARY / AI MAINTAINABILITY DETAIL for 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 deep on Windows, or bash "$HEALTH_SCRIPT" auto deep on Linux and macOS. Then launch the relevant subagents in parallel. Redact credentials to [REDACTED].<!-- -->
    • Agent 1 (Context + Security): Read agents/inspector-context.md. Feed CONVERSATION SIGNALS section.
    • Agent 2 (Control + Behavior): Read agents/inspector-control.md. Feed detected tier.
    • Agent 3 (AI Maintainability): Read agents/inspector-maintainability.md. Feed only TIER METRICS, AI MAINTAINABILITY SUMMARY or AI MAINTAINABILITY DETAIL, and the script hotspot lists. Launch this agent only for deep health audits, Complex projects, or explicit code-rot/AI-maintainability requests.
  • 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.json committed 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)
141 947 ★
rufloruvnet · Ruflo — платформа оркестрации мультиагентных систем для ИИ-агентов программирования…
81 987 ★
cli-hub-meta-skillhkuds · Каталог agent-native CLI для профессионального ПО: живые инструменты для креативных…
59 232 ★
codex-cli-runtimeopenai · Внутренний контракт-помощник для вызова среды codex-companion из Claude Code.
35 218 ★
context-modemksglu · Обязательные правила маршрутизации для context-mode. Вызывать при любом анализе…
34 250 ★
rememberrohitg00 · Сохранение инсайтов и решений в долгую память agentmemory с тегами.
30 436 ★
puatanweai · Заставляет ИИ не сдаваться и перебирать все варианты решения при повторных неудачах.
19 863 ★
capability-evolverEvoMap · Движок самоэволюции для ИИ-агентов: анализирует историю работы и вносит улучшения по…
8 750 ★
codex-pptningzimu · Генерация визуально единых презентаций PPT/PPTX на основе изображений из статей, отчётов…
7 993 ★
zerovercel-labs · Устанавливает Zero и загружает workflow, совместимые по версии, с навыками zero.
5 416 ★
Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Healthcare Revieweraffaan-m · Проверяет медицинский код: клиническая безопасность, CDSS, PHI и целостность данных.
225 587 ★
Skill Healthaffaan-m · Показывает панель состояния портфеля навыков с графиками и аналитикой.
225 587 ★
monday-crmanthropics · Управление monday CRM на естественном языке. Создание пайплайна с нуля, утренний брифинг…
100 комп.
operating-kitwshobson · Портативный рабочий метод: агенты жизненного цикла сессии, код-ревью перед релизом…
495 комп.
monday-crmanthropics · Управление monday CRM на естественном языке: построение воронки с нуля, утренний брифинг…
233 комп.
aeoalirezarezvani · Навык AEO: оптимизация контента для цитирования в ответах LLM, а не для поисковых…
510 комп.
ra-qm-skillsalirezarezvani · 14 навыков регуляторных вопросов и качества для HealthTech/MedTech: ISO 13485, MDR, FDA…
510 комп.
weekly-reviewalirezarezvani · Еженедельный обзор GTD: поиск открытых петель и аудит обязательств.
510 комп.
Cs Financial Analystalirezarezvani · Финансовый аналитик: оценка DCF, модели, бюджеты, прогнозы и метрики SaaS (ARR, MRR…
19 821 ★
business-health-diagnosticdeanpeters · Диагностирует здоровье SaaS-бизнеса по росту, удержанию, эффективности и капиталу.
8 061 ★

Лучшие ИИ-инструменты для программирования

ИИ для программирования

Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные

GenAPIGenapi
По запросу
5.0
Notepad++ AINotepad-plus-plus
По запросу
4.9
GitHub CopilotGitHub
По подписке
4.9
Creatium MaxCremax
По запросу
4.8
Emacs AIGnu
По запросу
4.8
KiteKite
По запросу
4.8
Amazon Q DeveloperAmazon
По запросу
4.8
VECTA
Есть бесплатный тариф
4.8
SoftPractice
Есть бесплатный тариф
4.8
VibeForge
Есть бесплатный тариф
4.7

Лучшие ИИ-инструменты для автоматизации и ассистентов

Ассистенты и автоматизация

Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк

Give Me Public
Есть бесплатный тариф
5.0
AITunnelAitunnel
По запросу
5.0
STIVAStiva
По запросу
5.0
Wikibot (Викибот)Wikibot
По запросу
4.9
mymeet.aiMymeet
По запросу
4.9
InsighterInsighter
По запросу
4.9
TGHuntTghunt
Есть бесплатный тариф
4.9
LegiscanLegiscan
По запросу
4.9
RouterAIRouterai
По запросу
4.9
Wikibot 1.0 (Викибот)Wikibot
По запросу
4.9

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8