kubb: Skill for Claude Code

.agents/skills/deslop/SKILL.md

deslop is a skill for Claude Code, Codex from kubb-labs/kubb. It costs 56 tokens per session (455 once invoked), scanned A, original, MIT.

A cleanup guide for removing unnecessary AI-generated patterns from code changes. It focuses on comments, extra error handling, type casts, deep nesting, and naming or formatting that does not match the project.

In plain words
What is it for?
Use it after generating or editing code, especially before opening a pull request, to make a diff smaller, more consistent, and more human-readable.
Why use it?
It helps a generated code change fit the surrounding code and remain easier to read without changing its intended behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is kubb-labs/kubb's own configuration. It tells Claude Code and Codex how to work on kubb itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kubb configures →

About the project

Kubb is a modular code-generation framework that turns OpenAPI descriptions into type-safe TypeScript code, Zod schemas, and TanStack Query integrations. It is used by TypeScript developers to generate client code and related interfaces from API specifications. The catalogue contains extensions such as skills, commands, hooks, agents, and a plugin that support Kubb workflows.

kubb-labs/kubb · 1,794 stars · on GitHub · kubb.dev

Reuse

Borrowing it

Nothing to install: this file belongs to kubb-labs/kubb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kubb-labs/kubb/main/.agents/skills/deslop/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kubb-labs/kubb

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deslop

README.md
[![agentmods](https://agentmods.dev/badge/skills/kubb-labs/kubb/deslop/github.svg)](https://agentmods.dev/skills/kubb-labs/kubb/deslop)
Your own site
<a href="https://agentmods.dev/skills/kubb-labs/kubb/deslop"><img src="https://agentmods.dev/badge/skills/kubb-labs/kubb/deslop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deslop

Your own site · 80×15
<a href="https://agentmods.dev/skills/kubb-labs/kubb/deslop"><img src="https://agentmods.dev/badge/skills/kubb-labs/kubb/deslop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00455
Opus 5 $0.00028 $0.00228
Sonnet 5 $0.00011 $0.00091
Haiku 4.5 $0.00006 $0.00046

Measured 9d ago against content hash a4f3943b9be7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

deslop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/deslop/SKILL.md · 44 lines

What it actually says

Deslop

Remove AI-generated code slop introduced in a branch so the diff reads like a human wrote it and matches the surrounding file and this repo's conventions.

When to use

  • After writing or generating a batch of code, before opening a PR.
  • When a diff shows the tells of AI generation: over-commenting, defensive scaffolding, or style that fights the existing file.
  • Prose and user-facing markdown are out of scope. Run the humanizer skill over those instead.

What to remove

  • Comments a human would not add: restating what the code already says, or inconsistent with the comment density of the rest of the file.
  • Defensive checks and try/catch blocks abnormal for the area, especially on trusted or already-validated code paths. The security rule puts validation at trust boundaries, not in internal code.
  • Casts to any used only to bypass a type error. Fix the type instead.
  • Deep nesting that early returns would flatten.
  • Naming, import, or export style inconsistent with the file and the code-style rule.

Guardrails

  • Keep behavior unchanged unless you are fixing a clear bug.
  • Prefer minimal, surgical edits over broad rewrites.
  • Never remove a check that guards a real trust boundary or real error handling. When unsure whether a check is slop or load-bearing, leave it.
  • Do not weaken types, lint rules, or tests to make the edit pass. Fix the root cause.
  • After editing, run pnpm format && pnpm lint:fix and let the tests pass.
  • Report a 1-3 sentence summary of what changed.
Skill Use for
humanizer Removing AI tells from prose and user-facing markdown
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 44 lines · 56 tokens per session scan A a4f3943b9be7

Subscribe to this mod's changes

deslop is a skill published in the GitHub repository kubb-labs/kubb (1,794 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 455 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skmtc-lang-typescript

The TypeScript target-language layer for Skmtc generators (@skmtc/lang-typescript): projection base factories, TsSnippet, the three register shapes, identifier kinds and the type-only import machinery, composition helpers, sanitization, TsFile render rules. Use ALONGSIDE skmtc-generator whenever a generator emits…

skmtc/skmtc · 87 tokens

lathe-release

Run Lathe release validation and publishing workflows. Use when the user asks to prepare, validate, cut, tag, publish, or ship a Lathe versioned release; runs the captured pre-release regression gate before tagging.

lathe-cli/lathe · 48 tokens

update-skills

Create or update repository skills and instructions when major learnings are discovered during a session. Use when the user says "learn!", when a significant pattern or pitfall is identified, or when reusable domain knowledge should be captured for future sessions.

microsoft/vscode · 51 tokens

github-copilot-upgrader

Use this to update the Github Copilot CLI/SDK.

microsoft/vscode · 18 tokens

commit

Commit staged or unstaged changes with an AI-generated commit message that matches the repository's existing commit style. Use when the user asks to 'commit', 'commit changes', 'create a commit', 'save my work', or 'check in code'.

microsoft/vscode · 52 tokens

sync

Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

microsoft/vscode · 52 tokens