Back to list
xiaoland

code-smell-checker

by xiaoland

0🍴 0📅 Jan 12, 2026

SKILL.md


Code Smell Checker

When to use

Review code when you need to:

  • Check AI-generated or developer code for maintainability
  • Identify technical debt and quality issues
  • Validate TypeScript type design and semantic clarity
  • Review Vue component architecture
  • Ensure reactive data handling best practices
  • Conduct code quality assessments

What's covered

TypeScript Types:

Vue Components:

Reactive Data:

General Code Smells:

How to use

1. Identify scope:

  • Which area? (types, components, reactive, general smells)
  • Which files to review?

2. Apply checklist:

  • Read relevant reference doc
  • Check code against items
  • Note violations

3. Report findings:

  • Categorize by severity
  • Focus on maintainability impact
  • Consider project context

4. Provide feedback:

  • Explain why it's a problem
  • Show the bad pattern
  • Suggest concrete improvements
  • Reference checklist item

Quick reference

TypeScript red flags:

  • Scattered type definitions
  • any, object, overly broad types
  • Complex type gymnastics
  • Types don't match runtime

Vue component red flags:

  • Components >300 lines
  • Props drilling >3 levels
  • Mixed local/global/derived state
  • Weak prop types

Reactive data red flags:

  • Deep reactive on large data
  • Computed with side effects
  • Watch for transformations
  • Wrong ref/reactive usage

General code smell red flags:

  • Methods >25 lines, classes doing too much (Bloaters)
  • Complex switch/if chains, unused inherited methods (OO Abusers)
  • One change = many file edits (Change Preventers)
  • Dead code, excessive comments, lazy classes (Dispensables)
  • Reaching into other objects' internals, long method chains (Couplers)

Output format

## Review: [Component/Module]

### [Category]

#### [Issue]
- Severity: [Critical/Important/Minor]
- Location: file.ts:123
- Reference: [Link to checklist]
- Problem: [Explain]
- Fix: [Suggest]

Best practices

Be constructive:

  • Focus on maintainability not preferences
  • Explain "why" behind each smell
  • Provide concrete alternatives
  • Recognize when rules should bend

Be systematic:

  • Review one category at a time
  • Use checklist for coverage
  • Document patterns
  • Track recurring issues

Be pragmatic:

  • Not all items apply to every project
  • Consider project maturity
  • Balance idealism with reality
  • Prioritize high-impact issues

Code Smell Quick Reference

CategoryKey FocusGoalCommon Refactorings
BloatersSize & ComplexityExtract Method / ClassExtract Method, Extract Class, Introduce Parameter Object
OO AbusersDesign IntegrityUse PolymorphismReplace Conditional with Polymorphism, Replace Inheritance with Delegation
Change PreventersRigidityDecouple / OrganizeMove Method, Extract Class, Inline Class
DispensablesRedundancyRemove / SimplifyInline Class, Remove Dead Code, Collapse Hierarchy
CouplersConnectivityEncapsulate / MoveMove Method, Hide Delegate, Remove Middle Man

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon