clean-code
БесплатноБез исполняемых скриптовНе проверенEnforce SOLID, DRY, KISS principles during implementation. Auto-activated when writing or modifying code.
Об этом скилле
Clean Code Skill
Purpose
Ensure all code follows clean code principles.
Core Principles
SOLID
Reference: principles/solid.md
DRY (Don't Repeat Yourself)
Reference: principles/dry.md
- Extract common logic to functions
- Use constants for magic values
- Create shared utilities
KISS (Keep It Simple, Stupid)
Reference: principles/kiss.md
- Favor readability over cleverness
- One thing per function
- Obvious over implicit
YAGNI (You Aren't Gonna Need It)
Reference: principles/yagni.md
- Implement only what's needed now
- No speculative generalization
- Add complexity when required
Code Quality Checklist
Use before committing: checklists/pre-commit.md
Naming
- Variables describe content
- Functions describe action
- Classes describe entity
- No abbreviations (except common ones)
Functions
- Single responsibility
- < 20 lines preferred
- < 5 parameters
- No side effects where possible
Comments
- Explain why, not what
- Update when code changes
- Remove commented-out code
Error Handling
- Specific error types
- Meaningful messages
- Proper logging
- Recovery or fail gracefully
Auto-Checks
When implementing, verify:
npm run lint
npm run typecheck
Установить clean-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл clean-code?
Enforce SOLID, DRY, KISS principles during implementation. Auto-activated when writing or modifying code.
Как установить скилл clean-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clean-code запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic