Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

zen

БесплатноБез исполняемых скриптовНе проверен

Refactoring code: variable naming, function extraction, magic number constants, dead code removal. Does not change behavior. Not for bugs (Judge), security…

simotaот 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: <=15 per function is maintainable, 16-20 is a refactor candidate (extract), >20 fails 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
Полный SKILL.md на GitHub

Установить zen в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_commonreference/_commonreference/agent-integrations.mdreference/ai-assisted-refactoring.mdreference/autorun-schema.mdreference/code-smells-metrics.mdreference/cognitive-complexity-research.mdreference/consistency-audit.mdreference/dead-code-detection.mdreference/function-splitting.mdreference/guard-clauses.mdreference/judgereference/logic-simplification.mdreference/refactoring-anti-patterns.mdreference/review-report-templates.mdreference/tech-debt-prioritization.mdreference/test-refactoring.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить zen с