Code Smells
БесплатноБез исполняемых скриптовНе проверенUse when diagnosing structural maintainability problems in existing frontend code before deciding how to refactor it, especially when evidence, false-positive…
от bovinphang391 установка в других каталогахОб этом скилле
Code Smell Diagnosis
Overview
Diagnose structural problems from concrete evidence. A smell is a prompt to investigate, not proof that code must change.
Procedure
- Establish the requested scope and project facts.
- Collect concrete structural and change-coupling evidence.
- Match evidence against the smell catalog.
- Apply false-positive checks.
- Report confidence, impact, and candidates from the mapping guide.
- If the request is diagnosis-only, do not modify business code.
Finding Contract
Every finding states location, evidence, smell ID/name, impact, confidence (HIGH, MEDIUM, LOW), candidate refactorings, priority, and material false-positive considerations. LOW confidence is never an automatic-edit signal.
Quick Reference
| Need | Reference |
|---|---|
| Standard 24-smell model | Smell catalog |
| Evidence and false positives | Detection guide |
| Candidate refactorings | Smell-to-refactoring map |
Common Mistakes
- Treating a metric threshold as proof.
- Reporting a smell without a file/symbol and evidence.
- Treating every loop, switch, comment, wrapper, or pipeline as defective.
- Editing code when the user asked for diagnosis only.
Установить Code Smells в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Code Smells?
Use when diagnosing structural maintainability problems in existing frontend code before deciding how to refactor it, especially when evidence, false-positive checks, and candidate transformations are needed without editing business code.
Как установить скилл Code Smells?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Code Smells запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic