| name | aislop |
| description | Static analysis linter for AI-generated code patterns — 40+ rules, 7 languages, deterministic, no LLM. |
| tags | ["code-quality","linting","ai-code","static-analysis","ci-cd"] |
| related_skills | ["hermes-agent","requesting-code-review"] |
AISlop — AI Code Slop Detector
AISlop catches the telltale patterns that AI coding agents leave in your code. 40+ rules across 7 languages. Pure pattern matching — no LLM calls.
Prerequisites
Installation
npm install -g aislop
Quick Start
aislop ./src/
aislop --lang typescript,python ./src/
aislop --format json ./src/ | jq '.violations'
aislop --fix ./src/
Rule Categories
- Over-commenting — excessive JSDoc/docstrings on simple functions
- Redundant error handling — try/catch blocks that just re-throw
- Generic naming —
data, result, temp, value as variable names
- Unnecessary abstractions — wrapper functions that add no logic
- Verbose patterns — loops that could be array methods
CI Integration
- name: Check AI slop
run: npx aislop --format json ./src/ > slop-report.json
continue-on-error: true
- name: Gate AI code quality
run: aislop --min-severity high ./src/
Pitfalls
- Some rules may flag legitimate patterns in certain contexts
- Auto-fix is conservative — review changes before committing
- Rules are deterministic — same input always produces same output
Verification
aislop --version
echo "function getData() { let data = []; return data; }" > test.js
aislop test.js