code-slop
БесплатноБез исполняемых скриптовНе проверенDetect AI-generated code patterns ("slop") in PHP/Laravel and TypeScript/React source — comment narration, generic naming, premature interfaces, defensive…
от AsyrafHussin★ 112 звёзд на GitHubОб этом скилле
Code Slop Detection
Taste-level review of code for AI-generated patterns. Contains 24 rules across 6 categories covering comments, naming, over-engineering, defensive overdose, test slop, and style fingerprints. Where technical-debt measures quantitative code debt (complexity, duplication, CVEs), this skill measures the qualitative failure mode: code that passes every metric but reads like a tutorial blog post, not like a human wrote it.
Metadata
- Version: 1.0.1
- Scope: PHP / Laravel + TypeScript / React (Node)
- Rule Count: 24 rules across 6 categories
- License: MIT
Why this skill exists
Industry data on AI-assisted code (GitClear 2025 code-quality report; arXiv 2510.03029, Investigating The Smells of LLM Generated Code):
- Refactoring collapsed from 25% to <10% of changes (GitClear)
- Copy-paste surged 8.3% → 12.3%; code duplication rose ~8x (GitClear)
- Code-smell rates +42–85% over professionally written reference solutions, depending on the model (arXiv 2510.03029, Java tasks)
- Generic catch blocks that don't distinguish error types, and missing timeouts on external calls, are among the patterns reviewers report most in AI-assisted PRs
Maintainers feel it too: curl ended its bug bounty in January 2026 after a flood of low-quality AI-generated reports.
None of this fails a typical CI lint. It just makes the codebase slowly unmaintainable. This skill is the lens for catching it before it ships.
The core insight: reading cost > writing cost now. The cost of writing code collapsed; the cost of reading it didn't. Code you can't quickly understand is slop, even if it works.
How to Audit
When the user asks "review for AI slop", "audit code-quality taste", or "find AI patterns" — run through this skill's rules as a checklist against the changed files (PR diff) or full repo.
Audit Step 1: Determine Scope
- If a PR diff is provided: audit only files changed in the diff
- If files are named: audit those
- If no scope: audit the whole repo, prioritized by recently-touched files (most likely AI output)
Audit Step 2: Detect Stack
| Signal | Stack |
|---|---|
composer.json + artisan |
PHP / Laravel |
package.json (with TypeScript/React deps) |
Node / TypeScript / React |
| Both present | Laravel + Inertia + React |
Audit Step 3: Run the Slop Checklist
For each item below, output:
- CLEAN — pattern not present (brief confirmation)
- SUSPICIOUS — present in small amounts; flag and discuss
- INFLATED — present extensively; verbose-but-functional; remediation recommended
- CRITICAL — extensive AI-fingerprint presence; full review needed before merge
Comments
- No comments that just narrate the code (
// create useraboveUser::create(...)) - No empty docblocks (
/** Get user */abovegetUser()) - No placeholder comments left in (
// TODO: implement,// your code here,// implementation) - No closing-brace labels (
} // end function,} // end if block)
Naming
- No generic placeholder names (
data,result,info,temp,helper) - No over-descriptive run-on names (
theUserWhoIsCurrentlyLoggedIn) - No suffix abuse (
*Helper/*Manager/*Util/*Wrapperoverused without justification) - No type-in-name patterns (
userObject,resultArray,stringData)
Over-engineering
- No interfaces with exactly one implementation (and no plan for a second)
- No single-method classes that should be top-level functions
- No wrapper functions called once that just delegate
- No new dependency added when an existing one does the same job
Defensive overdose
- No generic
catch (e) { console.error(...) }blocks around code that can't throw - No null checks for impossible nulls (after non-null assertions / type-guaranteed values)
- Real defensive concerns (timeouts on external calls, rate limits) ARE present
Test slop
- No tests that mock every dependency with no real behavioural assertion
- No "doesn't throw" tests that just call and check for exceptions
- No tests that mirror the implementation's logic (re-encoding rather than verifying)
- No snapshot tests standing in for behavioural assertions
Style fingerprints
- Some formatting drift exists (no codebase looks like every file ran through the most aggressive linter)
- No
as any/@ts-ignore/@ts-expect-errorsprinkled where inference is hard - Repo has some
// HACK:/// XXX:/ 2am comments somewhere — codebases without scars are suspect - No debug artifacts (
console.log,var_dump,dd(),dump()) left in production code - No
if (x) return true; else return false/ redundant type annotations on obvious literals
Audit Step 4: Build the Slop Ledger
End the audit with a verdict table:
## Code Slop Ledger
| File | Verdict | Top findings | Suggested action |
|
Установить code-slop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл code-slop?
Detect AI-generated code patterns ("slop") in PHP/Laravel and TypeScript/React source — comment narration, generic naming, premature interfaces, defensive overdose, mock-everything tests, and the absence of human "scars". Use when reviewing AI-assisted PRs, auditing code for taste/quality (not metrics — that's technical-debt), or hardening a code-review checklist. Triggers on "review for AI slop", "find AI patterns", "check code feels human", "audit code-quality taste".
Как установить скилл code-slop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-slop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic