スキル一覧に戻る
mvillmow

detect-code-smells

by mvillmow

Training framework written in Mojo

11🍴 4📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: detect-code-smells description: "Identify code quality issues and anti-patterns. Use when reviewing code for maintainability problems." mcp_fallback: none category: analysis tier: 2 user-invocable: false

Detect Code Smells

Identify code quality issues, anti-patterns, and maintainability problems that suggest need for refactoring.

When to Use

  • Code review before merging
  • Identifying refactoring priorities
  • Mentoring and code quality improvement
  • Planning technical debt reduction

Quick Reference

# Python code smell detection
pip install pylint radon
pylint --disable=all --enable=convention,refactor module.py
radon cc -a module.py  # Cyclomatic complexity
radon mi -s module.py  # Maintainability index

Workflow

  1. Scan for patterns: Identify common code smell patterns (long functions, duplication, magic numbers)
  2. Check complexity: Measure cyclomatic and cognitive complexity
  3. Evaluate naming: Check for unclear variable/function names
  4. Review structure: Identify violations of SOLID principles
  5. Document findings: List smells with severity and recommendations

Output Format

Code quality report:

  • Code smell type (duplication, long method, magic number, etc.)
  • Location (file:line)
  • Severity (critical/high/medium/low)
  • Explanation of the issue
  • Suggested fix or refactoring approach

References

  • See CLAUDE.md > SOLID principles for design guidance
  • See CLAUDE.md > DRY and KISS principles for quality standards
  • See refactor-code skill for applying fixes

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

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

+20
LICENSE

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

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

レビュー

💬

レビュー機能は近日公開予定です