원클릭으로
cleanup
Remove dead code, unused imports, stale files, and fix code quality issues found by /audit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Remove dead code, unused imports, stale files, and fix code quality issues found by /audit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Add a new implementation of the primary protocol/interface (Alex Rivera's workflow)
Add a new API endpoint following all project standards
Plan and implement a complete feature end-to-end across all layers
Full codebase audit — dead code, layer violations, concurrency, observability, code quality
Set up or update GitHub Actions CI/CD pipeline (Marcus Chen's workflow)
Smart commit — validate, stage, and commit with a conventional commit message
| name | cleanup |
| description | Remove dead code, unused imports, stale files, and fix code quality issues found by /audit |
| disable-model-invocation | true |
Clean up the codebase: $ARGUMENTS
Unlike /audit (which finds issues), /cleanup actively removes and fixes them.
If not already done, run /audit to identify all issues. Otherwise, work from the provided audit findings.
__init__.py files — if they're empty and not needed for package structure, keep them but don't add unnecessary exportsEnsure imports follow this order in every file: Follow the language-standard import ordering convention. If the project uses a future annotations pattern (see stack concepts), it goes first.
Run the test and type-check commands (see project config). Both MUST pass. If anything breaks, the removed code was actually needed — restore it.
Report what was cleaned:
CLEANUP RESULTS
═══════════════
Unused imports removed: X (across Y files)
Dead functions removed: X
Commented code removed: X blocks
Stale config entries: X
Test cleanup: X items
Files modified: X
Lines removed: X
Tests: PASS
Types: PASS