Back to list
skyosev

deslop

by skyosev

0🍴 0📅 Jan 16, 2026

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

  1. Diff against base: git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD
  2. Scan for slop: Identify added narration, guards, catches, casts, suppressions, dead code, duplication, and out-of-style constructs.
  3. 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.
  1. 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).

Score

Total Score

35/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
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon