Agent skill
refactor-clean
Codebase temizliği için kullan. "/refactor-clean" komutuyla tetiklenir. Dead code, kullanılmayan import, loose .md dosyaları, eski TODO'lar temizlendiğinde devreye gir. Uzun session sonlarında kullanılması önerilir.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/refactor-clean-cagan-rn-todo-app
SKILL.md
Refactor & Clean Workflow
Kapsam
Bu skill davranış değiştirmez — sadece temizlik yapar.
Adımlar
1. Dead Code Tarama
# Kullanılmayan import'ları bul
grep -r "import" src/ | # analiz
# TypeScript unused variables
npx tsc --noEmit 2>&1 | grep "declared but"
2. TODO / FIXME Tarama
grep -r "TODO\|FIXME\|HACK\|XXX" src/
Listele ve kullanıcıya göster. Hangilerinin çözüleceğini sor.
3. Console.log Tarama
grep -r "console\." src/ --include="*.ts" --include="*.tsx"
Bulunanları kaldır veya logger'a çevir.
4. Loose .md Dosyaları
.claude/tmp/ klasöründe 7 günden eski session dosyaları:
find .claude/tmp/ -name "*.md" -mtime +7
Kullanıcıya listele, onay alarak sil.
5. Kullanılmayan Dependency Kontrolü
npx depcheck
Sonuçları göster, kullanıcı kararına bırak.
6. Test Çalıştır
Temizlik sonrası: npm test
Tüm testler geçmeli — hiçbir davranış değişmemeli.
7. Sonuç Raporu
- Kaç satır silindi
- Kaç dosya düzenlendi
- Test sonucu
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?