proactive-audit
БесплатноЗапускает вложенные скриптыНе проверенAutomated health checks for framework artifacts modified during a pipeline. Validates hook syntax, security patterns (SE-01/SE-02), skill wiring, agent…
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Proactive Audit
Overview
Automated health checks for framework artifacts that were modified during the current pipeline. This skill fills the gap between reactive verification (tests, lint) and proactive framework-level validation (wiring, syntax, security patterns).
Core principle: Framework artifact changes require the same rigor as code changes. If a skill was created, verify it is wired. If a hook was modified, verify it compiles. If an agent was changed, verify its tool/skill lists are consistent.
When to Invoke
Invoke this skill as the final pipeline step whenever ANY of the following paths were created, modified, or deleted during the session:
.claude/hooks/**/*.cjs.claude/skills/**/SKILL.md.claude/agents/**/*.md.claude/workflows/**/*.md.claude/schemas/**/*.json.claude/templates/**/*.claude/CLAUDE.md.claude/lib/routing/routing-table.cjs
Invocation:
Skill({ skill: 'proactive-audit' });
Mandatory Skills
| Skill | Purpose | When |
|---|---|---|
task-management-protocol |
Track audit progress | Always |
ripgrep |
Fast targeted artifact search | During checks |
code-semantic-search |
Pattern discovery across artifacts | When investigating |
context-compressor |
Compress large audit results | When output is large |
verification-before-completion |
Gate completion on zero CRITICAL | Before marking done |
memory-search |
Check prior audit patterns | At start |
Step 1: Detect Changed Artifacts
Use git diff to identify which framework artifacts changed in this session:
# Primary: git diff against recent commits
git diff --name-only HEAD~5 -- .claude/hooks/ .claude/skills/ .claude/agents/ .claude/workflows/ .claude/schemas/ .claude/templates/ .claude/CLAUDE.md .claude/lib/routing/
# Secondary: check unstaged changes
git diff --name-only -- .claude/hooks/ .claude/skills/ .claude/agents/ .claude/workflows/ .claude/schemas/ .claude/templates/
# Tertiary: check untracked files
git ls-files --others --exclude-standard .claude/hooks/ .claude/skills/ .claude/agents/ .claude/workflows/ .claude/schemas/ .claude/templates/
Combine all three lists into a deduplicated set of changed artifact paths.
Step 2: Apply Check Matrix
For each changed artifact, apply the relevant checks from this matrix:
Hook Files (.claude/hooks/**/*.cjs)
| Check ID | Check | Command | Severity |
|---|---|---|---|
| H-01 | Syntax validity | node --check <file> |
CRITICAL |
| H-02 | SE-02: raw JSON.parse without safeParseJSON | grep -n "JSON.parse(" <file> then verify safeParseJSON import |
HIGH |
| H-03 | SE-01: shell injection via shell: true | grep -n "shell:\\s*true" <file> |
HIGH |
| H-04 | Hook registered in settings.json | grep "<hook-filename>" .claude/settings.json |
MEDIUM |
| H-05 | Exit code correctness | Verify try/catch wrapping, exit 0 on non-critical errors | MEDIUM |
H-02 detail: If JSON.parse( is found, check if the file also imports safeParseJSON from .claude/lib/utils/safe-json.cjs. If not, flag as HIGH finding. Exclude test files (*.test.cjs).
Skill Files (.claude/skills/**/SKILL.md)
| Check ID | Check | Command | Severity |
|---|---|---|---|
| S-01 | Skill appears in skill-catalog.md | grep "<skill-name>" .claude/docs/skill-catalog.md |
HIGH |
| S-02 | At least one agent has skill in frontmatter | grep -r "<skill-name>" .claude/agents/ --include="*.md" |
MEDIUM |
| S-03 | Skill appears in CLAUDE.md Section 8.5 | grep "<skill-name>" .claude/CLAUDE.md |
MEDIUM |
| S-04 | SKILL.md has valid frontmatter | Verify name:, description:, version: fields exist |
MEDIUM |
| S-05 | Validate skills (if available) | pnpm validate:skills 2>&1 |
LOW |
Agent Files (.claude/agents/**/*.md)
| Check ID | Check | Command | Severity
Установить proactive-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashGlobGrepВложенные файлы
FAQ
Что делает скилл proactive-audit?
Automated health checks for framework artifacts modified during a pipeline. Validates hook syntax, security patterns (SE-01/SE-02), skill wiring, agent consistency, and routing correctness. Invoked as the final pipeline step when framework artifacts were created, modified, or deleted.
Как установить скилл proactive-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл proactive-audit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub