本文へスキップ
Skillpedia
一般的なプログラミング33k · #9085

deslop

できること

このスキルは、あなたのエージェントに、ブランチの変更を確認し、AIが書いた余計な部分を取り除く手順を案内します。既存のプロジェクトのスタイルに合うコードにしたい開発者が対象です。

使う場面

  • ✓ブランチにAIが生成したコードがあり、余分なコメントや不要なチェックが含まれているとき。
  • ✓型エラーを避けるためだけに追加された、anyへの型キャストを取り除きたいとき。
  • ✓マージの前に、コードを周囲のファイルのスタイルに合わせたいとき。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/sentry/deslop/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/sentry/deslop/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“mainと比べて、私のブランチにあるAIが生成した余計な部分を整理してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、mainとの差分を読み、余分なコメント、不要な防御的なコード、スタイルの食い違いを取り除いて、短い要約を返します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Remove AI Code Slop

Check the diff against main and remove all AI-generated slop introduced in this branch.

What to Remove

  • Extra comments that a human wouldn't add or are inconsistent with the rest of the file
  • Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted/validated codepaths)
  • Casts to any to get around type issues
  • Inline imports in Python (move to top of file with other imports)
  • Any other style that is inconsistent with the file

Process

  1. Get the diff against main: git diff main...HEAD
  2. Review each changed file for slop patterns
  3. Remove identified slop while preserving legitimate changes
  4. Report a 1-3 sentence summary of what was changed
よくある質問

何を取り除きますか?

余分なコメント、不要な防御的チェック、anyへの型キャスト、関数内に書かれたPythonのインポートを取り除きます。

コードの動作は変わりますか?

スキルは、正当な変更を残し、余計な部分とスタイルの問題だけを取り除くことを目的としています。

何と比べますか?

git diffを使って、ブランチとmainを比べます。

詳細

作者による元の説明

Remove AI-generated code slop from a branch. Use when cleaning up AI-generated code, removing unnecessary comments, defensive checks, or type casts. Checks diff against main and fixes style inconsistencies.

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#9085
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル