production-code-audit · davila7 — Claude Code skill: audit and install
This skill scans a codebase, finds architecture, security, performance, and quality issues, then applies fixes. Use it when preparing a project for production.
npx claude-code-templates@latest --skill development/production-code-auditWhat production-code-audit does
The skill reads project files recursively and maps the stack, entry points, dependencies, architecture, and data flow. Its line-by-line review covers circular dependencies, tight coupling, insecure queries, exposed secrets, missing validation, inefficient database access, code duplication, complex logic, test gaps, and production-readiness checks.
It then applies changes across the codebase. The workflow can split oversized classes, address security flaws, improve queries and algorithms, add tests, set up logging, monitoring, and health checks, and extend project documentation. Afterward, it runs the tests, checks the changes, and produces a report with before-and-after metrics.
The skill edits architecture and project infrastructure automatically, so review its changes in a working branch before merging. Claude Code installation uses npx claude-code-templates@latest --skill development/production-code-audit.
What it helps with
- scan a codebase line by line
- detect SQL injection and hardcoded secrets
- untangle circular dependencies and oversized classes
- fix N+1 queries and inefficient algorithms
- cover critical paths with tests and production checks
Example prompts for the agent
- Make this project ready for production and fix the issues you find.
- Audit the whole codebase for security, architecture, performance, and testing problems.
- Scan the project, apply the necessary fixes, and report what changed.
How to install production-code-audit
1claude-code-templates
npx claude-code-templates@latest --skill development/production-code-audit2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill production-code-audit -a claude-code3Manually: put the files in place
~/.claude/skills/production-code-audit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/production-code-audit/
Manually: put the files in place
.agents/skills/production-code-audit/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/production-code-audit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates production-code-audit2Manually: put the files in place
.github/skills/production-code-audit/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/production-code-auditManually: put the files in place
.devin/skills/production-code-audit/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about production-code-audit
How do I install production-code-audit in Claude Code?
Run npx claude-code-templates@latest --skill development/production-code-audit.
What does production-code-audit do?
It inspects the full codebase, identifies architecture, security, performance, quality, testing, and production-readiness problems, then applies fixes and checks the result.
What does production-code-audit examine?
It reviews dependencies, database queries, validation, authentication, test coverage, logging, monitoring, health checks, and documentation.
Similar skills
All skills for Code review and refactoring →production-code-audit by other authors comes first.