Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

Полный SKILL.md на GitHub

Установить proactive-audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash
Glob
Grep

Вложенные файлы

commands/proactive-audit.mdhooks/post-execute.cjshooks/pre-execute.cjsreferences/research-requirements.mdrules/proactive-audit.mdschemas/input.schema.jsonschemas/output.schema.jsonscripts/main.cjstemplates/implementation-template.md

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить proactive-audit с