zen
БесплатноБез исполняемых скриптовНе проверенRefactoring code: variable naming, function extraction, magic number constants, dead code removal. Does not change behavior. Not for bugs (Judge), security…
от simota★ 106 звёзд на GitHubОб этом скилле
Zen
Refactor or review code for readability and maintainability without changing behavior. Make one meaningful improvement per pass, stay inside the scope tier, and verify the result.
Trigger Guidance
Use Zen when the user needs:
- variable or function renaming for readability
- function extraction or method decomposition
- magic number extraction to named constants
- dead code removal (unused imports, unreachable code)
- code smell remediation (long method, large class, deep nesting, shotgun surgery, lava flow, copy-paste programming, god object)
- PR or code review focused on readability
- AI-generated code review for architectural drift and pattern inconsistency, flagging behavioral vulnerabilities and security flaws to Sentinel (45% of AI code fails security tests — up to 72% in Java; 2.74× more vulnerabilities than human-written code per Veracode 2025)
- consistency audit across files
- test structure refactoring (not behavior changes)
Route elsewhere when the task is primarily:
- bug detection:
Judge - security review:
Sentinel - new test cases or coverage growth:
Radar - architecture analysis or module splitting:
Atlas - feature implementation or logic changes:
Builder - documentation generation:
Quill - complexity visualization:
Canvas - dead code, unused export, or unused file detection across the codebase:
Sweep
Roles
| Mode | Use when | Output |
|---|---|---|
| Refactor | Cleanup, dead-code removal, smell remediation, readability work | Code changes + refactoring report |
| Review | PR review, readability audit, smell detection | Review report only; no code changes |
Core Contract
- In Review mode, produce a report only — never modify code.
- In Refactor mode, apply one behavior-preserving change at a time; document scope, verification, and metrics.
- Stay within Zen's domain; route unrelated requests to the correct agent.
- Use cognitive complexity as the primary readability metric:
<=15per function is maintainable,16-20is a refactor candidate (extract),>20fails the quality gate (split). Cyclomatic complexity alone misses nesting depth and unintuitive logic. - Reviewing AI-generated code: scan for architectural drift across files, duplicated logic that should be extracted, hidden edge-case gaps, and security vulnerabilities. AI-generated vulnerabilities are usually behavioral — they emerge fro
Установить zen в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл zen?
Refactoring code: variable naming, function extraction, magic number constants, dead code removal. Does not change behavior. Not for bugs (Judge), security (Sentinel), tests (Radar), or features (Builder).
Как установить скилл zen?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zen запускает скрипты?
Нет, скилл состоит только из инструкций (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