simplify
БесплатноБез исполняемых скриптовНе проверенReview changed code for reuse, quality, and efficiency, then fix issues found. Use after implementing a feature or bug fix.
от dkarter★ 130 звёзд на GitHubОб этом скилле
Simplify
You are performing a post-change cleanup pass focused on code reuse, code quality, and efficiency.
If the user provided arguments, treat them as extra review focus:
$ARGUMENTS
Phase 1: Identify Changes
Run git diff (or git diff HEAD if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.
Phase 2: Launch Three Review Agents in Parallel
Use the Task tool to launch all three agents concurrently in a single message. Pass each agent the full diff so it has complete context.
Agent 1: Code Reuse Review
Check for:
- Existing utilities/helpers/components that could replace newly written code.
- New functions that duplicate existing functionality.
- Inline logic that should use existing utilities (for example string manipulation, path handling, parsing/formatting helpers).
Agent 2: Code Quality Review
Check for:
- Redundant state: duplicated state, cached values that can be derived.
- Parameter sprawl: adding parameters instead of generalizing or restructuring.
- Copy-paste with variation: near-duplicate code that should become a shared abstraction.
- Leaky abstractions: exposing internals or breaking abstraction boundaries.
- Stringly-typed code: raw strings where constants/enums/string unions/typed variants already exist.
- Unnecessary JSX nesting: wrappers that add no layout value when child/component props already handle layout.
Agent 3: Efficiency Review
Check for:
- Unnecessary work: redundant computation, repeated reads, N+1 patterns.
- Missed concurrency: independent operations run sequentially.
- Hot-path bloat: blocking work in startup or per-request paths.
- Recurring no-op updates: unconditional state/store updates in loops, intervals, or handlers; add change detection guards.
- Unnecessary existence checks: pre-checking file/resource existence before use (TOCTOU); operate directly and handle errors.
- Memory issues: unbounded structures, missing cleanup, listener/timer leaks.
- Overly broad operations: reading full files/datasets when only a subset is needed.
Phase 3: Fix Issues
Wait for all three agents to complete. Aggregate findings and fix each valid issue directly.
If a finding is a false positive or not worth addressing, note it and move on. Do not argue with the finding.
If you made code changes, run the project's relevant tests after applying fixes. Prefer targeted tests first, then broader test suites when appropriate.
When done, briefly summarize what was fixed, or confirm the code was already clean.
Установить simplify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл simplify?
Review changed code for reuse, quality, and efficiency, then fix issues found. Use after implementing a feature or bug fix.
Как установить скилл simplify?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл simplify запускает скрипты?
Нет, скилл состоит только из инструкций (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