← スキル一覧に戻る

deslop
by skyosev
⭐ 0🍴 0📅 2026年1月16日
SKILL.md
name: deslop description: Remove AI-generated code slop from a branch. Use to delete unnecessary comments/docs, defensive checks, broad try/catch blocks, type-cast hacks, lint suppressions, dead code, duplication, and style drift. Diff against base (main/master) and align changes with existing project idioms without altering intended behavior.
Remove AI Code Slop
Check the diff against the base branch and remove all AI-generated slop introduced in this branch.
Remove
- Redundant comments/docs: Delete narration that restates obvious behavior (e.g., "Increment the date"). Remove stale bug/workaround notes that no longer apply.
- Verbose comments: Make long comment blocks more concise while keeping the intent.
- Over-defensive handling: Remove unnecessary null/validation guards and broad try/catch blocks when inputs are trusted or exceptions should propagate. Prefer direct flow over catch-and-rethrow, empty catches.
- Silent fallbacks: Replace defensive fallbacks that silently mask invalid input with explicit errors. Surface potential bugs instead of hiding them.
- Type-system bypasses: Replace or remove casts/pragmas used only to silence errors (e.g.,
any,as unknown as T,// @ts-ignore,# type: ignore). Restore correct typing or remove the unnecessary construction. - Dead/unused code: Delete unused imports, variables, helpers, alternate implementations, and commented-out code. Keep the diff free of placeholders and vestiges.
- Style drift: Conform to local patterns (naming, formatting, error handling, structure).
- Duplication: Remove repeated logic and refactor to avoid duplicated semantics.
Process
- Diff against base:
git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD - Scan for slop: Identify added narration, guards, catches, casts, suppressions, dead code, duplication, and out-of-style constructs.
- Edit for intent:
- Remove slop while preserving legitimate behavior.
- Fix root causes behind suppressions when feasible; otherwise remove the suppression if it was unnecessary.
- Keep high-value comments that capture critical behavior or design intent that is not immediately obvious.
- Verify and summarize: Run tests/linters and write a 1–3 sentence summary of the cleanup (e.g., removed redundant commentary and null checks; removed unnecessary try/catch; aligned code with project conventions).
スコア
総合スコア
35/100
リポジトリの品質指標に基づく評価
✓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
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です