بنقرة واحدة
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"