andersonlimahw/lemon-ai-hub/code-smell-detector

Claude Code and agent skill by andersonlimahw/lemon-ai-hub

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

PR-level code smell gating and trend tracking. Detects new smells introduced in a PR, blocks merge if smell density exceeds threshold, tracks file-level smell trends over time, and generates weekly maintainability reports. Use when enforcing code quality standards in CI or monitoring technical debt accumulation.

Install

npx vskill@latest install andersonlimahw/lemon-ai-hub/code-smell-detector

SKILL.md

The same SKILL.md was published earlier as andersonlimahw/lemon-ai-hub/code-smell-detector.

Code Smell Detector Plugin

Quality gates on every PR. Trend tracking over time.

Commands

/code-smell-detector setup — configure CI quality gate
/code-smell-detector pr — analyze smells introduced in current PR
/code-smell-detector trend — show smell density trend (last 30 days)
/code-smell-detector hotspots — files with worst smell density
/code-smell-detector report — weekly maintainability report

PR Gate

Blocks merge if PR introduces:

  • New god class (>300 lines, >10 methods)
  • Method longer than 50 lines
  • Duplication of >15 lines found elsewhere in codebase
  • >3 new magic numbers
CODE SMELL PR CHECK — PR #247
================================
⚠️ 2 new smells introduced (non-blocking, warning)
❌ 1 critical smell introduced (BLOCKING)
[BLOCK] src/services/PaymentService.ts — GOD CLASS
File grew from 180 → 520 lines in this PR
Added 8 new methods across 4 different concerns
→ Break into: PaymentGatewayService, RefundService, InvoiceService
[WARN] src/utils/checkout.ts:45 — method too long (78 lines)
[WARN] src/utils/checkout.ts:12 — magic number 86400 (seconds/day?)
→ const SECONDS_PER_DAY = 86_400

Trend Report

SMELL TREND — last 30 days
============================
Smell density: 2.4 → 2.1 smells/100 lines ✅ (improving)
HOTSPOT FILES (by smell density)
src/services/UserService.ts 4.8/100 ↑ worsening
src/api/checkout.ts 3.2/100 → stable
src/components/AdminPanel.tsx 2.9/100 ↓ improving

Weekly Report

Generated every Monday:

  • Overall smell density vs last week
  • Top 5 files added/removed from hotspot list
  • Recommended refactors ranked by impact
  • Team velocity correlation (high smell density = slower feature delivery)

Pairs with /code-smell skill for deep interactive analysis.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
16
Repository forks
3
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/andersonlimahw/lemon-ai-hub/code-smell-detector/badge)](https://verified-skill.com/skills/andersonlimahw/lemon-ai-hub/code-smell-detector)

Something wrong with this skill or its page? Tell us.