Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

emil-unslop-code

БесплатноБез исполняемых скриптовНе проверен

Strip the tells that mark code as AI-generated — narrated comments, try-catch theater, silent fallbacks, dead scaffolding, `as any` — then make the diff read…

freekmurzeот freekmurze★ 1 019 звёзд на GitHub

Об этом скилле

Unslop Code

Nobody flags AI code for one bad line. They recognize the accumulation: a comment narrating every statement, a try-catch around code that can't throw, a fallback to an empty array, a helper that already exists two files over. Each choice is defensible alone; together they're a watermark. The cause is mechanical: models were trained where code that runs wins, so they over-defend, over-comment, and over-scaffold — everything that makes a snippet survive in isolation makes it slop inside a codebase.

Slop is rarely buggy. It compiles, it passes tests, and it still costs you: it buries intent, hides real failures behind quiet fallbacks, and doubles the surface the next reader has to hold in their head. This skill is a pass over any generated change, and the default fix for almost every pattern in it is deletion, not rewriting.

The pass

  1. Scan the diff (or file) for the patterns below, in order: comments, defense, types, naming, structure, logging, tests, scope.
  2. Fix by deleting first. Rewrite only where behavior must survive. When removing a cast, catch, or fallback forces a choice about what happens on bad input, choose the loud failure — a throw or a failed build — over the quiet wrong answer.
  3. Match the room: mirror the surrounding codebase's comment density, naming, and error-handling idiom. Slop is relative — a comment style that's normal in one repo is noise in another.
  4. Final read: "What here would make a reviewer suspect a model wrote this?" Fix it. Repeat until the answer is nothing.

Comments

Comments carry the strongest signal, and one test covers all of them: does this comment state something the code cannot? A constraint, a unit, a tradeoff, the bug it works around — keep. Everything else — delete.

Comments that narrate

// increment the counter above count++. // Loop through each item. // Return the result. The model comments the way it was rewarded to in training: constantly. Narration restates the next line and doubles the code's length for zero information. Delete every one.

Comments that talk to the reviewer

// Updated to use the new API. // Removed the old implementation. // Now handles null. // NEW:, // Fixed:. These describe the diff, not the code — and the moment the change merges they describe nothing, because the next reader never saw the old version. That explanation belongs in the commit message. Delete.

Comments that lie

A comment describing behavior the code no longer has, a parameter that was removed, a step that moved elsewhere. Worse than no comment, because a reader trusts it over the code. When editing any region, re-read every comment in it and delete or correct the ones the edit invalidated.

Section dividers and numbered steps

// ===== Helpers =====, // Step 1: parse input. A function that needs numbered steps needs extracted functions with those names instead. Delete the divider, or do the extraction.

Docstrings that restate the signature

@param userId - the ID of the user. Bytes, not information. Document constraints, units, side effects, and surprising behavior — or document nothing.

Commented-out code and summary blocks

Delete commented-out code; git has it, and "kept just in case" is what version control is for. Delete file-level blocks that list everything the code below does; they go stale on the first edit and nobody reads them.

Defensive theater

Models over-defend because defensive code "succeeds" more often. In a real codebase the defense inverts: it hides bugs instead of preventing them.

Checks against impossible states

A null check on a value the type system, the constructor, or the three lines above already guarantee. if (!user) return; after a call that throws when user is missing. Trust the invariant — and if it genuinely isn't guaranteed, fix the type once instead of checking at every call site.

Catch theater

Catching only to log and rethrow unchanged. An empty catch. catch (e) { console.error(e) } that swallows the failure and continues as if it succeeded. Handle errors once, at a real boundary, adding context — or don't catch at all. A stack trace beats a log line plus corrupted state.

Silent fallbacks

catch { return [] }. ?? defaultValue masking a failed fetch. A simpler backup code path for when the real one fails. This is the most dangerous pattern on the list, because the fallback keeps tests green while the primary path is broken — you can no longer tell what you're actually running. Let it fail loudly, unless degraded behavior is an explicit product decision, and then make the degraded state visible to the user.

Validation at every layer

The same null-and-range check repeated in the handler, the service, and the helper. Validate untrusted input once at the boundary, then pass a trusted value through — repetition just means three places to update when the rule changes.

Condition padding

`x !== null && x !== undefine

Полный SKILL.md на GitHub

Установить emil-unslop-code в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл emil-unslop-code?

Strip the tells that mark code as AI-generated — narrated comments, try-catch theater, silent fallbacks, dead scaffolding, `as any` — then make the diff read like the codebase it lands in. Use when cleaning up agent-written code, before opening a PR, when a diff "looks AI-generated", or as a pass after any generated change. Triggers on: code slop, AI slop, slop, de-slop, unslop, clean up this code, obvious comments, redundant comments, narrated comments, commented-out code, stale comments, try-catch, swallowed error, silent failure, fallback, defensive, null checks, as any, ts-ignore, non-null assertion, console.log, debug logs, TODO, dead code, unused imports, duplicate helper, one-call wrapper, V2, enhanced, legacy alias, backwards compatibility, minimal diff, drive-by changes, tautological test, skipped test, "reads like Copilot wrote it".

Как установить скилл emil-unslop-code?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл emil-unslop-code запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить emil-unslop-code с