Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

deslop

bởi brennerspear

Git & GitHub
274Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Remove AI-style code slop from a branch by reviewing diffs, deleting inconsistent defensive noise, and preserving.

Mô tả

Kỹ năng này làm gì

Scans a branch diff for AI-generated noise, such as unnecessary defensive checks, redundant type casts, lint suppressions, and placeholder comments, then removes only what contradicts local code style. It compares each candidate against surrounding patterns before deleting anything and verifies the build passes afterward.

Unlike a manual grep-and-delete pass, it checks each candidate against local file context before removing it, so legitimate domain guards at trust boundaries are preserved.

Khi nào nên dùng

  • Stripping verbose null checks from AI-generated code before a PR review
  • Removing defensive try/catch blocks that don't match the project's error handling style
  • Deleting redundant type casts inserted by a code generation tool
  • Clearing out TODO and placeholder comments left over from AI scaffolding
  • Removing lint-disable comments added defensively by AI assistants

Quy trình ví dụ

ĐẦU VÀO

User asks: remove the AI slop from my feature branch before I open a PR

AGENT
  1. 1

    Runs git diff main...HEAD to inspect all lines added on the branch

  2. 2

    Uses rg to build a candidate list of comments, casts, lint ignores, and defensive checks

  3. 3

    Reviews each candidate in full file context against nearby local patterns

  4. 4

    Removes only items inconsistent with local style, preserving behavior and boundary guards

  5. 5

    Runs project checks and reports exactly what was removed and what was intentionally kept

ĐẦU RA

List of modified files with a breakdown of removed slop and preserved guards

Cài đặt

clawhub install brennerspear/deslop

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết