production-code-audit — скилл для Claude Code: аудит кода перед
Скилл для комплексной проверки кода на уязвимости, ошибки и узкие места перед развёртыванием. Находит конкретные проблемы, предлагает исправления и проверяет результаты.
npx skills add sickn33/agentic-awesome-skills --skill production-code-audit -a claude-codeЧто делает production-code-audit
production-code-audit сканирует выбранную часть репозитория, ищет проблемы безопасности, логические ошибки и недостатки производительности, потом предлагает минимальные исправления и валидирует их. Скилл работает с явно заданной областью — конкретные файлы или директории, которые вы указываете; не трогает остальное.
Для каждой найденной проблемы скилл показывает путь и строку, объясняет, что и почему опасно, предлагает исправление и проверяет его на реальных данных. Например, если в коде SQL-запрос собирается конкатенацией, скилл найдёт это, заменит на параметризованный запрос к БД и протестирует с нормальным вводом, пустым значением и данными с кавычками.
Отчёт показывает, что удалось проверить, какие проблемы остались открытыми (например, если нужны специальные переменные окружения или доступ к продакшену) и что требует ещё работы. Скилл не даёт гарантию production-ready и не заменяет код-ревью, но помогает отсеять очевидные ошибки до деплоя.
Какие задачи решает
- найти и исправить SQL-инъекции в запросах к БД
- проверить обработку пользовательского ввода на предмет уязвимостей
- выявить утечки чувствительных данных в коде
- оптимизировать критические части, замедляющие выполнение
- убедиться, что логика обработки ошибок корректна и безопасна
Примеры запросов агенту
- Проверь src/auth.ts на уязвимости перед тем, как выкатить в production
- Сделай аудит всех файлов в api/ — найди и исправь проблемы с безопасностью
- Оптимизируй database queries в db/models/ и покажи, что работает быстрее
Как установить production-code-audit
1Через Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill production-code-audit -a claude-code2Вручную: положить файлы
~/.claude/skills/production-code-audit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/production-code-audit/
1Через Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill production-code-audit -a codex2Вручную: положить файлы
.agents/skills/production-code-audit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill production-code-audit -a cursor2Вручную: положить файлы
.cursor/skills/production-code-audit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sickn33/agentic-awesome-skills production-code-audit2Вручную: положить файлы
.github/skills/production-code-audit/SKILL.md1Через Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill production-code-audit -a gemini-cli2Командой платформы
gemini skills install https://github.com/sickn33/agentic-awesome-skills --path skills/production-code-auditВручную: положить файлы
.devin/skills/production-code-audit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill production-code-audit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора80
Весь набор →Похожие
Вопросы о production-code-audit
Как установить production-code-audit в Claude Code?
Выполни npx skills add sickn33/agentic-awesome-skills --skill production-code-audit -a claude-code, потом открой ~/.claude/skills/production-code-audit/SKILL.md — там инструкция для агента.
Что делает production-code-audit?
Ищет в коде ошибки безопасности, логические баги и проблемы с производительностью, предлагает исправления и проверяет их. Работает только с той частью кода, которую вы ему дадите.
Скилл заменит code-ревью?
Нет. production-code-audit помогает найти явные проблемы (SQL-инъекции, утечки данных, неправильную обработку ошибок), но не видит логику в целом и не заменяет человеческую проверку. Используй как первый слой защиты.
Исходный текст
SKILL.md · MIT
---
name: production-code-audit
description: "Audit an explicitly scoped codebase for evidenced security, correctness and performance issues; implement authorized targeted repairs and report validation plus residual readiness gaps."
risk: critical
source: community
date_added: "2026-02-27"
---
# Production Code Audit
## Detailed Guide
Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
## When to Use This Skill
- Use when user says "make this production-ready"
- Use when user says "audit my codebase"
- Use when user says "make this professional/corporate-level"
- Use when user says "optimize everything"
- Use when user wants enterprise-grade quality
- Use when preparing for production deployment
- Use when code needs to meet corporate standards
## Worked Example: Query Repair
For a request-controlled email used in a concatenated PostgreSQL query, trace the input and confirm the driver, then replace concatenation with its parameter-binding API:
```typescript
// pg-compatible example; driver and database fixtures must be supplied.
const result = await db.query('SELECT id FROM users WHERE email = $1', [email]);
```
Validate a normal match, no match and a synthetic quote-containing input. Record actual commands and results; do not assert the test passed from the snippet alone. If a credential was found, removing it from source does not revoke it: report rotation and history/artifact exposure to the authorized owner without copying the value.
## Output Example (Illustrative Structure)
```markdown
Scope: repository, base/head, files fully read, excluded/unavailable files.
Finding: path:line, trigger, observed behavior, impact and severity rationale.
Repair: minimal change and why it preserves the intended behavior.
Validation: command/environment/result, or explicitly not run with reason.
Remaining gaps: unsupported runtime, unreviewed deployment, external configuration.
Readiness: evidence available and specific unresolved criteria; no blanket certification.
```
Any metrics must come from reproducible measurements with dataset, environment and baseline/head. Zero scanner findings does not mean zero vulnerabilities, and OWASP Top 10 is an awareness list rather than a “compliance” certificate. An audit request does not authorize deploying, provisioning telemetry/caches or contacting third parties.
## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
© sickn33 · MIT · sickn33/agentic-awesome-skills