Deslopのロゴ

Deslop

組織
overextended
deslop

Remove AI-generated slop from FiveM resource code (Lua, TypeScript, JavaScript) without changing behaviour. Use when the user asks to deslop, clean up or tidy code an agent wrote, or after finishing a change to a resource and before it is committed.

概要

公開者overextended
リポジトリskills
スキル名deslop
スター
22
フォーク
4
同梱ファイル
2
ライセンスGPL-3.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    overextendedがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDeslopをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/overextended/skills/tree/main/skills/fivem/deslop
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/overextended/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/fivem/deslop .claude/skills/deslop
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDeslopを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDeslopを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Deslopは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Remove AI code slop

Find the code changed on this branch and remove the AI-generated slop introduced in it. Behaviour stays the same: this is a cleanup, not a refactor.

Scope

  • Git repository: diff against the merge base with the default branch (git merge-base HEAD origin/HEAD, else main or master), plus uncommitted changes.
  • No git (common for a server folder): use the files changed in this session. If there were none, ask which resource or files to clean.

Only touch lines the diff introduced. The code around them sets the style; it isn't the target.

Focus areas

Judge each candidate against the file and the rest of its resource: what is slop in one resource is house style in another.

Everywhere

  • Comments that narrate the code (-- loop through players), restate a function name, or don't match how the file comments.
  • Leftover debugging: stray print or console.log, commented-out code.
  • Deep nesting that an early return flattens.
  • Packed code. See Layout.
  • Locals, imports or parameters the branch added and nothing uses.
  • Names out of step with the file (camelCase in a snake_case file, or the reverse).

Lua

  • pcall wrappers and nil checks around values that can't be nil on a trusted path: an export of a resource the manifest declares as a dependency, a value the same function just set.
  • Comparisons to true or false (if isOpen == true then) when the file doesn't write them.
  • New globals where the file declares local. Before making one local, search the whole resource for other uses: every Lua file of a resource shares one global scope per side, so another file may read it.
  • Citizen.CreateThread / Citizen.Wait mixed with CreateThread / Wait in one file. They are the same functions: match the file.
  • A hand-rolled helper the resource already gets from ox_lib, when ox_lib is a dependency of the resource: a contains loop beside code that uses lib.table.contains, a RequestModel / HasModelLoaded wait loop where the resource uses lib.requestModel elsewhere. Swap only when the ox_lib function does the same thing; read its source for differences (timeouts, return values, errors) first.

TypeScript / JavaScript

  • Casts to any, as unknown as, and @ts-ignore / @ts-expect-error used only to silence a type error.
  • try / catch around trusted calls that only logs and carries on.

Layout

Agents pack code: several statements on a line, guard after guard with no blank line between, a condition wrapped across lines to stay in one if. Judge layout against the file on the default branch or files the branch didn't touch, never against the branch's own code: when the branch wrote most of a file, its layout is the slop.

  • One statement per line.
  • A blank line between steps: the guards, the lookups, the work, the reply.
  • A guard stays on one line only when it's short and its body is a bare return or return false. A guard that returns a table or does more goes across lines.
  • A condition too long for one line becomes several guards, never one if wrapped across lines.
  • A call or table constructor that runs past about 120 characters goes one argument or field per line. Shorter ones stay on one line.

Before:

lua
if type(data) ~= 'table' or type(data.slot) ~= 'number' or type(data.count) ~= 'number'
    or data.count < 1 then return false end
local player = GetPlayer(source)
if not player or not player.shop then return false end
local item = player.shop.items[data.slot]
if not item then return false end
if item.license and not HasLicense(player, item.license) then return false, { type = 'error', description = 'missing_license' } end

After:

lua
if type(data) ~= 'table' then return false end

if type(data.slot) ~= 'number' or type(data.count) ~= 'number' or data.count < 1 then
    return false
end

local player = GetPlayer(source)

if not player or not player.shop then return false end

local item = player.shop.items[data.slot]

if not item then return false end

if item.license and not HasLicense(player, item.license) then
    return false, { type = 'error', description = 'missing_license' }
end

Never remove

Server code that receives anything from a client is not a trusted path. Keep every check on:

  • arguments of server-side net event handlers (RegisterNetEvent, AddEventHandler on a net event) and of server-side lib.callback.register callbacks;
  • lookups derived from source: the player exists, owns the item, is near the target, has the job or group;
  • rate limits, distance checks and permission checks (IsPlayerAceAllowed, framework job or group checks).

A generic cleanup reads these as defensive noise, and they are what stops exploits. If one really looks redundant, leave it and mention it in the summary. Splitting a check into its own guard or onto its own line is fine: every check stays.

Also keep checks on data from the database, from NUI callbacks (RegisterNUICallback), and guards around optional resources (GetResourceState(name) == 'started').

Guardrails

  • Keep behaviour unchanged unless fixing a clear bug, and name any bug fix in the summary.
  • Prefer minimal, focused edits over broad rewrites. Layout is the exception: fix every packed line the branch added, not a sample. Don't reformat code it didn't touch.
  • Keep the final summary concise (1-3 sentences).

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Deslop」では何ができますか?

Remove AI-generated slop from FiveM resource code (Lua, TypeScript, JavaScript) without changing behaviour. Use when the user asks to deslop, clean up or tidy code an agent wrote, or after finishing a change to a resource and before it is committed.

TypingMindでDeslopを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Deslopはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDeslopをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/overextended/skills/tree/main/skills/fivem/deslopを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Deslopを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Deslopは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDeslopを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Deslop」は無料ですか?

はい。overextendedがGitHubでGPL-3.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇