with one click
ai-smell-scan
Detect AI-generated code smells. Read-only - does not fix.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Detect AI-generated code smells. Read-only - does not fix.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Audit a project against a canon's rules and checklist. Read-only — produces prioritized report without fixing. Works with any canon (nextjs, sql, typescript, etc.).
Lens home base - status, help, and setup
Plan and build a new feature with quality gates.
Simple changes done right. Make the change, clean up after yourself, report what happened.
Review against canons + quality gate, fix findings, verify. Claude-native — no external models.
Plan and improve existing code with quality gates.
| name | ai-smell-scan |
| description | Detect AI-generated code smells. Read-only - does not fix. |
Read-only scan for AI-generated code patterns. Reports findings without making changes.
No arguments? Describe this skill and stop. Do not execute.
Each smell type has a severity weight. The AI Smell Index is the weighted sum.
| Smell Type | Weight | Why |
|---|---|---|
| Over-abstraction | 3 | Adds complexity, hides logic |
| Defensive paranoia | 3 | Implies distrust in own code |
| Comment spam | 1 | Noise, but harmless |
| Speculative features | 3 | Dead code, maintenance burden |
| Enterprise patterns | 3 | Massive overkill |
| Generic wrappers | 2 | Indirection without value |
| Verbose naming | 1 | Annoying but functional |
| Excessive structure | 2 | Navigation overhead |
Index interpretation:
// increment counter above counter++Result<T, E> when you just throwuserUserData)## AI Smell Scan: [target]
SMELLS_FOUND:
- [file:line] [smell type]: [description]
- [file:line] [smell type]: [description]
SUMMARY:
| Smell Type | Count | Weight | Score |
|------------|-------|--------|-------|
| Over-abstraction | N | 3 | N×3 |
| Defensive paranoia | N | 3 | N×3 |
| Comment spam | N | 1 | N×1 |
| Speculative features | N | 3 | N×3 |
| Enterprise patterns | N | 3 | N×3 |
| Generic wrappers | N | 2 | N×2 |
| Verbose naming | N | 1 | N×1 |
| Excessive structure | N | 2 | N×2 |
TOTAL_SMELLS: N
AI_SMELL_INDEX: N (interpretation)
RECOMMENDATION: Run /ai-smell-fix to clean up
Use the AI_SMELL_INDEX to compare before/after:
# Before changes
/ai-smell-scan src/ → AI_SMELL_INDEX: 12
# After implementing with full base brain
/ai-smell-scan src/ → AI_SMELL_INDEX: 18
# Delta: +6 (got worse)
Track index after each /build or /improve run to detect skill configuration impact.
This is a read-only scan. Use /ai-smell-fix to fix issues.