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