Communityコーディング&開発github.com

deslop

差分スコープのAIスラップ(粗雑なコード)クリーンアップパス:現在のブランチ差分にあるコメントスラップ、防御的チェックスラップ、型変換スラップ、スタイルの逸脱を自動レビュー前に除去します。

deslop とは?

Deslopは、AIエージェントが生成したコードの粗雑な部分(スラップ)を、現在のブランチの差分に限定してクリーンアップするためのスキルです。具体的には、人間のメンテナーが書かないような説明コメントや、周囲のコードと調和しない防御的チェック、不要な型変換(特に`as any`や`as unknown as T`)、冗長な中間変数、互換性のためのシムやリトライ、スタイルの不一致などを検出・除去します。このスキルは`git diff`(通常は`origin/main`との比較)をスコープとし、リポジトリ全体のクリーンアップは行いません。機能的変更は厳禁で、クリーンアップによって動作が変わる可能性がある場合はそのまま報告します。あくまで`$autoreview`の前処理として実行され、正しさと安全性のレビューは`$autoreview`が担います。主にClaude CodeやCoderなどのAIエージェント向けに設計されています。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

deslop は何をしますか?

レビュー前に現在のブランチの差分のみをクリーンアップします。動作を絶対に維持します。

チェックリスト

  1. パスの範囲を git diff(origin/main に対するもの、またはマージベースが異なる場合はそちらに対するもの)に限定します。リポジトリ全体のクリーンアップは絶対に行いません。
  2. 変更されたすべてのハンクについて以下を検査します:
    • 人間のメンテナーが書かないようなコメント。特に、ナレーション、構文説明、コードを言い換えるだけの散文を含みます。
    • 周囲のモジュールでは異常な防御的チェックや try/catch ブロック、または想定された状態だけを保護するもの。
    • 型を偽装するキャスト、特に as any、as unknown as T、および拡大してからアサートするフロー。管理されたコードではOxlintが後者の2つのパターンを既に拒否します。
    • 冗長な中間変数や、一度しか使われないヘルパーで、ドメイン上の意味を追加したり、重複を減らしたり、制御フローを簡略化したりしないもの。
    • 互換性のためのシム、エイリアス、リトライ、フォールバック分岐で、名前付きの出荷契約と削除計画がないもの。
    • 周囲のファイルと矛盾する命名、制御フロー、インポート、フォーマット、その他のスタイル。
  3. 機能的編集は一切行いません。クリーンアップによって動作が変わる可能性がある場合は、そのままにして報告します。
  4. 修正が自明であり動作に影響がない場合にのみ、インラインで修正します。それ以外の場合は、著者に通知します。
  5. 結果を1〜3文で報告します。変更があったかどうか、およびレビューに残された非自明な項目を含めます。

$deslop を $autoreview の前に実行し、決してその代わりにはしません。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.

関連スキル