← Back to list

code-janitor
by pevd950
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: code-janitor description: "Clean up codebases by removing dead code, simplifying logic, and reducing tech debt; use when asked to refactor for simplicity, delete unused code, or tidy dependencies (trigger keywords: cleanup, refactor, tech debt, simplify, remove unused)."
Code Janitor
What this skill does
- Eliminates dead code, redundant logic, and unnecessary abstractions.
- Simplifies control flow and reduces tech debt with minimal, safe diffs.
When to use it
- Trigger phrases: "cleanup", "refactor", "tech debt", "simplify", "remove unused".
- Use when the goal is to reduce complexity or remove unused code safely.
Step-by-step workflow
- Identify unused code, dead branches, and duplicate logic; confirm intent.
- Remove or consolidate with minimal diffs; avoid scope creep.
- Simplify control flow (flatten conditionals, inline single-use helpers).
- Prune unused dependencies and redundant config only when safe.
- Update or remove stale comments and docs tied to removed code.
- Run focused tests or checks to validate behavior.
Expected outputs / formatting
- List of removals and simplifications with file references.
- Tests run and any remaining risks.
- Notes on follow-ups if larger refactors are deferred.
Example prompts
- "Clean up unused code in this module."
- "Simplify this workflow and remove dead branches."
- "Remove unused dependencies and tidy the config."
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon