skills/audit-code-health/SKILL.md
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".
npx skillsauth add kyzooghost/audit-code-health-skill audit-code-healthInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Systematic audit process that scans directories to identify security issues, bugs, and code health problems. Findings are tracked as work items for remediation.
Example: For @native-yield-operations/automation-service/ do /audit-code-health
For deeper audits, follow the Workflow below.
Use this skill when:
Do not use this skill when:
| Priority | Category | Severity | Reference | | -------- | ----------- | -------- | -------------------------------------------------- | | 1 | Security | CRITICAL | security-issues.md | | 2 | Bugs | HIGH | bugs-checklist.md | | 3 | Code Health | MEDIUM | code-health.md |
*.sol files, use the developing-smart-contracts skill for Solidity-specific security patternsunit-testing-guidelines skill to assess test quality and coverage gapsAudits 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
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
Analyze the target directory:
code-simplifier on hotspots (if available)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 |
Before filing, validate each finding:
Create work items for verified findings.
If using Beads (bd):
bd commands to create and link itemsIf bd is not available:
- [ ] [P0/Security] auth/jwt.ts: Token not verifiedEach cycle produces:
## 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
development
Sync a skill from this repo into the local machine's skill directories. Use when the user asks to make a repo skill available locally, sync a local skill for Claude, Agents, or Codex, update local skill symlinks, or follow the .claude/skills source link pattern with .agents/skills and .codex/skills symlinks.
development
Sync a command from this repo into local agent surfaces. Use when the user asks to make a repo command available locally, sync a local command for Claude, Agents, or Codex, update command symlinks, or expose a command to Codex as a skill.
testing
Use when the user asks to grill, interrogate, pressure-test, or relentlessly interview them about a plan until requirements, tradeoffs, dependencies, and implementation decisions are clear.
tools
Use when the user asks to create, update, draft, or generate a GitHub pull request, including /create-pr behavior or equivalent workflow.