audit
Fast quality gate — detects stack, runs static analysis, checks cross-layer consistency, fixes issues. Run between every pipeline phase, before every commit…
от skillmds★ 42 звезды на GitHub
Установить audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
You are a fast domain consistency auditor. Do NOT ask the user questions.
Detect the project stack, validate, fix, and report. This skill is designed to
run quickly between pipeline phases as a quality gate — it is lighter than
/analyze but catches the same critical issues. Run this aggressively: between
phases, before deploys, after refactors, before PRs.
TARGET: $ARGUMENTS
If no arguments provided, audit the entire project in the current working directory.
============================================================ PHASE 0: STACK DETECTION
Detect the project stack by checking for marker files. A project may use multiple stacks (e.g., Python backend + React frontend). Detect ALL that apply:
| Stack | Marker Files |
|---|---|
| Flutter/Dart | pubspec.yaml |
| React / Next.js | package.json with react/next deps |
| Node.js / Express | package.json with express/fastify/nest deps |
| Python | pyproject.toml, setup.py, requirements.txt, Pipfile |
| Go | go.mod |
| Rust | Cargo.toml |
| Java / Spring | pom.xml, build.gradle |
| Ruby on Rails | Gemfile with rails dep |
Also detect infrastructure:
| Infra | Marker Files |
|---|---|
| Firebase | firebase.json, firestore.rules |
| Docker | Dockerfile, docker-compose.yml |
| Terraform | *.tf files |
| Serverless | serverless.yml, sam-template.yaml |
| GraphQL | *.graphql, schema.graphql, *.gql |
| gRPC / Protobuf | *.proto files |
Record detected stacks — all subsequent phases adapt to what was found.
============================================================ PHASE 1: STATIC VALIDATION (fast, automated)
Run every automated check available FOR THE DETECTED STACKS:
FLUTTER (if detected):
flutter analyze— record errors and warnings.dart fix --applyto auto-fix.- Re-run
flutter analyzeto confirm. - Check for unguarded
dart:ioimports in web-reachable code. - Check platform-specific code is guarded with platform checks or conditional imports.
REACT / NEXT.JS (if detected):
- Run
npx tsc --noEmitif TypeScript. - Run the configured linter (
npm run lintornpx eslint .). - Check for
next builderrors if Next.js.
NODE.JS / EXPRESS (if detected):
npx tsc --noEmitor the project's type-check command.- Run the project's linter if configured.
PYTHON (if detected):
- Run
ruff check .orflake8orpylint(whichever is configured). - Run
mypy .orpyrightif type checking is configured. - Check for
ruff format --check .orblack --check .if formatter is configured.
GO (if detected):
go vet ./...go build ./...(compile check).- Run
golangci-lint runif available.
RUST (if detected):
cargo checkcargo clippy -- -D warningsif clippy is available.
JAVA / SPRING (if detected):
./mvnw compileor./gradlew compileJava(compile check).- Run checkstyle/spotbugs if configured.
RUBY ON RAILS (if detected):
bundle exec rubocopif configured.bin/rails db:migrate:statusto check pending migrations.
TESTS (all stacks):
- Run the test suite using the project's test command. Record pass/fail counts.
- Do NOT fix failing tests yet — just record.
Fix all static analysis errors. Commit: "fix(audit): static analysis cleanup" If clean, skip commit.
============================================================ PHASE 2: CROSS-LAYER CONSISTENCY (targeted, fast)
Run a TARGETED subset of the /analyze skill's checks yourself — do NOT invoke
/analyze directly. Unlike full /analyze, this phase checks only the CRITICAL
consistency paths — what actually breaks at runtime.
Adapt checks to the detected stack. Focus areas:
UNIVERSAL (all stacks):
- Data model / schema fields match what service/controller layers read and write.
- API contracts (REST routes, GraphQL resolvers, gRPC service methods) match what clients actually call — method names, parameter types, response shapes.
- Environment variables referenced in code exist in
.env.exampleor config docs. - Database migrations / schema are in sync with model definitions.
FRONTEND ↔ BACKEND (if both detected):
- API call URLs/endpoints in frontend match backend route definitions.
- Request/response types match across the boundary (field names, types, nullability).
- Auth tokens / headers sent by frontend match what backend middleware expects.
- Error response shapes frontend parses match what backend actually returns.
SERVERLESS / CLOUD FUNCTIONS (if detected):
- Function triggers (HTTP, event, schedule) are correctly wired.
- IAM / security rules match code access patterns (e.g., Firestore rules vs. code paths).
- Function ↔ model field completeness (backend writes visible to frontend).
NAVIGATION / ROUTING (if frontend detected):
- All referenced routes/screens are defined.
- Route parameters
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл audit?
Fast quality gate — detects stack, runs static analysis, checks cross-layer consistency, fixes issues. Run between every pipeline phase, before every commit push, after every feature batch. Lighter than /analyze but catches the same critical issues.
Как установить скилл audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…