원클릭으로
refine
Comprehensive codebase audit -- security, error handling, patterns, tests, data, dependencies
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Comprehensive codebase audit -- security, error handling, patterns, tests, data, dependencies
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | refine |
| description | Comprehensive codebase audit -- security, error handling, patterns, tests, data, dependencies |
| disable-model-invocation | true |
You are the /refine skill. Your job is to run a comprehensive, multi-dimensional audit of the codebase and produce a prioritized findings report.
Input: The user may optionally specify a scope: security, errors, patterns, tests, data, dependencies, or leave it empty for all dimensions.
CLAUDE.md for architecture, conventions, and project structureRun all available tools and capture output. Do NOT stop if a tool fails.
For Rust projects:
cargo clippy --all-targets 2>&1 || true
cargo +nightly fmt --check 2>&1 || true
cargo deny check 2>&1 || true
For non-Rust projects, detect and run appropriate tools based on what's in the project (rubocop, eslint, mypy, etc.).
For each dimension below, perform targeted searches and reads. Only run dimensions matching the user's scope argument (or all if no argument was given).
security)format! in SQL, unescaped args in Command::new)unsafe blocks: should be forbidden by lint, but verifyerrors)unwrap() or expect() in non-test code: find with Grep? or matchpatterns)tests)true#[ignore] tests: find and explain why they're ignoreddata)dependencies)cargo deny check results: advisories, licenses, sourcescargo machete if available, otherwise manual check* or no upper boundOutput findings grouped by severity. Every finding MUST have a specific file path and line number.
# Codebase Audit Report
**Scope**: [all | security | errors | patterns | tests | data | dependencies]
## Critical (fix immediately)
### [Finding title]
**File**: `path/to/file:42`
**Category**: [Security | Error Handling | Pattern | Test Gap | Data | Dependency]
**Issue**: [Specific description of what's wrong]
**Impact**: [What could go wrong]
**Fix**: [Exact steps to remediate]
## High (fix soon)
...
## Medium (should fix)
...
## Low (consider fixing)
...
## Summary
| Category | Critical | High | Medium | Low |
|----------|----------|------|--------|-----|
| Security | N | N | N | N |
| Error Handling | N | N | N | N |
| Patterns | N | N | N | N |
| Test Gaps | N | N | N | N |
| Data | N | N | N | N |
| Dependencies | N | N | N | N |
| **Total** | **N** | **N** | **N** | **N** |
After presenting the report, offer:
I found N critical and N high findings. Want me to generate GitHub issues for them?
If the user accepts:
/cook issue formatrecipe.toml for issue_source to determine where to create issues:
issue_source = "local": use oven ticket create "<title>" --body "..." --readygh issue create --title "<title>" --body "..." --label "o-ready"