# production-code-audit

This skill scans a codebase, finds architecture, security, performance, and quality issues, then applies fixes. Use it when preparing a project for production.

- skill · `type=skill` · Claude Code · 193 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/production-code-audit
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/production-code-audit

## What it 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`.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/production-code-audit
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill production-code-audit -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/production-code-audit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/production-code-audit/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/production-code-audit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/production-code-audit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates production-code-audit
```

2. **Manually: put the files in place**
- File: `.github/skills/production-code-audit/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/production-code-audit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/production-code-audit/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/production-code-audit

## When to use it
- 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
- 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.

## Similar
- [improve-codebase-architecture](https://affpapa.org/en/nevibecode/skills/improve-codebase-architecture.md) — skill · 1163035 installs
- [tdd](https://affpapa.org/en/nevibecode/skills/tdd.md) — skill · 1141062 installs
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [codebase-design](https://affpapa.org/en/nevibecode/skills/codebase-design.md) — skill · 850344 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs

## Other versions with the same name
- [production-code-audit · sickn33](https://affpapa.org/en/nevibecode/skills/sickn33-production-code-audit.md) — 1200 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
