audit-code-health

Scans codebases for security vulnerabilities, bugs, and code health issues. Creates structured work items for remediation. Triggers on "audit", "code review", "security scan", "find bugs", "tech debt", or "assess code quality".

kyzooghost/skills30 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: audit-code-health
description: Scans codebases for security vulnerabilities, bugs, and code health issues. Creates structured work items for remediation. Triggers on "audit", "code review", "security scan", "find bugs", "tech debt", or "assess code quality".
license: MIT
---

# Code Health Auditor

Systematic audit process that scans directories to identify security issues, bugs, and code health problems. Findings are tracked as work items for remediation.

## Quick Start

Example: `For @native-yield-operations/automation-service/ do /audit-code-health`

1. **Scan** the target directory for issues
2. **Document** findings in a table (Security → Bugs → Code Health)
3. **File** work items or create a findings summary

For deeper audits, follow the [Workflow](#workflow-overview) below.

## When to Apply

Use this skill when:

- Auditing a codebase for security vulnerabilities
- Identifying bugs and edge cases
- Assessing technical debt and code health
- Creating structured work items for remediation
- Running systematic code reviews

## When NOT to Apply

Do not use this skill when:

- Developing a new feature
- Writing a new test

## Core Principles

1. **Audit only, no fixes**: Discover and document—never modify code
2. **Track everything**: All findings become work items
3. **Scoped analysis**: Stay within the target directory unless context requires external references
4. **Prioritize by impact**: Security → Bugs → Code Health

## Audit Categories by Priority

| Priority | Category    | Severity | Reference                                          |
| -------- | ----------- | -------- | -------------------------------------------------- |
| 1        | Security    | CRITICAL | [security-issues.md](reference/security-issues.md) |
| 2        | Bugs        | HIGH     | [bugs-checklist.md](reference/bugs-checklist.md)   |
| 3        | Code Health | MEDIUM   | [code-health.md](reference/code-health.md)         |

## Quick Reference

### Security Issues (CRITICAL)

- Auth/authz errors
- Injection risks (SQL, command, XSS)
- SSRF, path traversal
- Secrets or insecure defaults
- Broken crypto usage
- Missing input validation
- Dependency vulnerabilities

### Bugs (HIGH)

- Edge cases and boundary conditions
- Concurrency / race conditions
- Error handling gaps
- Resource leaks
- Numeric overflow/underflow
- Retry / timeout bugs

### Code Health (MEDIUM)

- Oversized or high-complexity modules
- Low test coverage near critical logic
- Duplicated abstractions
- Dead code or unused exports
- Poor documentation
- Misleading names

## Related Skills

- **Smart Contracts**: If you detect `*.sol` files, use the `developing-smart-contracts` skill for Solidity-specific security patterns
- **Unit Testing**: Use the `unit-testing-guidelines` skill to assess test quality and coverage gaps

## Workflow Overview

Audits run in cycles. Choose depth based on scope:

| Scope          | Cycles | When to Use                            |
| -------------- | ------ | -------------------------------------- |
| Quick scan     | 1-2    | Small PRs, single files, targeted review |
| Standard audit | 3-5    | Feature modules, API surfaces          |
| Deep audit     | 6-10   | Full codebase, security-critical systems |

Each cycle follows: **SCAN → FINDINGS → VERIFY → FILE → TRIAGE**

## Cycle Process

For each cycle, execute these steps:

```
Cycle Progress:
- [ ] Step 1: SCAN - Inspect target directory
- [ ] Step 2: FINDINGS - Document issues by category
- [ ] Step 3: VERIFY - Validate findings before filing
- [ ] Step 4: FILE - Create work items
- [ ] Step 5: TRIAGE - Assign priorities
```

### Step 1: SCAN

Analyze the target directory:

- Review code for security issues, bugs, and health problems
- Run read-only tooling: build, tests, lint, typecheck
- Use `code-simplifier` on hotspots (if available)

### Step 2: FINDINGS

Produce a findings table grouped by Security, Bugs, Code Health:

| Severity | Type     | File(s)       | Description        | Confidence |
| -------- | -------- | ------------- | ------------------ | ---------- |
| P0       | Security | `auth/jwt.ts` | Token not verified | High       |

### Step 3: VERIFY

Before filing, validate each finding:

- [ ] Confirmed the issue exists (not a false positive)
- [ ] Identified the correct file and line number
- [ ] Assessed severity accurately
- [ ] Checked if issue is already tracked

### Step 4: FILE

Create work items for verified findings.

**If using Beads (`bd`):**
- See [beads-format.md](reference/beads-format.md) for epic/issue structure
- Use `bd` commands to create and link items

**If bd is not available:**
- Use Markdown task lists for tracking findings
- Format: `- [ ] [P0/Security] auth/jwt.ts: Token not verified`

### Step 5: TRIAGE

- Assign P0/P1/P2 priorities
- Identify quick wins vs deep refactors
- Group related issues under epics (if using bd)

## Output Format

Each cycle produces:

```markdown
## Cycle N Summary

### Findings Table
| Severity | Type | File(s) | Description | Confidence | Status |

### Work Items Created
- [P0] ...
- [P1] ...

### Triage Notes
...

### Backlog Overview
Open items grouped by priority
```

## Constraints

- **DO NOT** implement code changes
- **STAY WITHIN** target directory unless minimal external context needed
- **PREFER** many small issues over large vague ones
- **VERIFY** findings before filing to avoid false positives

## Reference Files

- [Security Issues Checklist](reference/security-issues.md)
- [Bugs Checklist](reference/bugs-checklist.md)
- [Code Health Checklist](reference/code-health.md)
- [Beads Format Guide](reference/beads-format.md)
- [Audit Examples](reference/examples.md)

More Code Review skills

pr-to-video

heygen-com/hyperframes

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

178.9k

receiving-code-review

obra/superpowers

Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation

178.0k

public-relations

coreyhaines31/marketingskills

When the user wants help with public relations, earned media, press coverage, journalist outreach, or media strategy (not pull requests). Also use when the user mentions 'PR,' 'public relations,' 'press,' 'press release,' 'press coverage,' 'media outreach,' 'pitch a journalist,' 'get featured,' 'media list,' 'media kit,' 'press kit,' 'newsjacking,' 'news hijack,' 'HARO,' 'Qwoted,' 'Featured,' 'Help A Reporter,' 'reporter request,' 'tech press,' 'TechCrunch,' 'earned media,' 'thought leadership placement,' 'op-ed,' 'guest article,' 'press contacts,' 'podcast prep,' 'going on a podcast,' 'podcast guest,' 'prep me for this podcast,' or 'how do I get press.' Use this for earned media work — finding journalists, pitching stories, newsjacking, prepping podcast appearances, and responding to press requests. For startup/SaaS/AI directory submissions, see directory-submissions. For product launches, see launch. For social-media engagement, see social. For cold-email outreach to prospects, see cold-email.

33.1k

← All Code Review skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY