Community程式設計與開發github.com

Deslop

在程式碼審查前,清理當前分支差異中的註解、防禦性檢查、型別混淆與風格漂移,不影響行為。

Deslop 是什麼?

Deslop 是一個專注於清理當前分支差異(diff)的 AI 輔助工具,用於在自動審查(autoreview)之前移除不必要的「雜物」(slop)。它會對比 `origin/main` 或合併基礎分支,僅檢查變更區塊,而不會對整個程式碼庫進行全域清理。其主要用途包括移除人類維護者不會撰寫的敘述性註解、異常的防禦性檢查或 try/catch 區塊、型別轉換(如 `as any` 或 `as unknown as T`)、冗餘的中間變數、未納入合約的相容性墊片,以及與周圍檔案風格不一致的寫法。Deslop 不進行任何功能性編輯;若清理可能改變行為,則僅回報而不修改。執行結果會以 1–3 句話總結,說明是否有任何變更,以及留待作者處理的非瑣碎項目。此技能適用於任何支援 `git diff` 與自動審查流程的開發環境(如 Claude Code、Cursor 等),強調在 `$autoreview` 之前先執行 `$deslop`,而非取代後者,以確保正確性與安全性審查不受影響。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/deslop

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Deslop 是做什麼的?

僅在審查前清理當前分支差異。絕對保持行為不變。

檢查清單

  1. 將範圍限定於 git diff 與 origin/main 的比較,或當合併基礎不同時使用該基礎。絕不執行全倉庫清理。
  2. 檢查每個變更區塊中是否有:
    • 人類維護者不會撰寫的註解,包括敘述、語法解釋,以及僅重述程式碼的散文;
    • 在周圍模組中異常的防禦性檢查或 try/catch 區塊,或僅保護假想狀態的程式碼;
    • 混淆型別的轉換,特別是 as any、as unknown as T,以及先拓寬再斷言的流程。Oxlint 已在受控程式碼中拒絕後兩種模式;
    • 冗餘的中間變數或一次性輔助函式,未增加領域意義、未減少重複或未簡化控制流程;
    • 沒有命名發布合約與移除計畫的相容性墊片、別名、重試及後備分支;
    • 與周圍檔案衝突的命名、控制流程、導入、格式化及其他風格。
  3. 不做任何功能性編輯。若清理可能改變行為,則跳過並回報它。
  4. 僅在清理微不足道且行為不變時,才直接修正發現的問題。否則,將其標記給作者處理。
  5. 用 1–3 句話回報結果,包括是否有任何變更,以及任何留待審查的非瑣碎項目。

請在 $autoreview 之前執行 $deslop,絕不能取代它。自動審查(autoreview)仍是必要的正確性與安全性審查關卡。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能