simplify
БесплатноБез исполняемых скриптовНе проверенReviews the current diff for duplication, dead code, needless abstraction and inconsistency with surrounding code, then applies the high-confidence fixes…
от steveclarke★ 37 звёзд на GitHubОб этом скилле
Simplify
A lightweight cleanup pass on the current diff. ship runs it when a repo
documents no review path of its own. It exists for harnesses without a
built-in /simplify, such as Codex.
Contract: the current diff introduces no avoidable complexity.
What to do
Review the diff (see scope below) and remove, with high-confidence edits only:
- Duplication
- Dead code
- Needless indirection
- Unnecessary abstraction
- Premature generalization
- Patterns inconsistent with the surrounding code
- Test noise
Do not churn design or public APIs unless the diff itself created the problem. If a change needs judgment rather than being clearly correct, report it instead of "fixing" it.
Fix issues directly and report what changed, briefly. This is quality cleanup only — it does not hunt for bugs. For correctness/security review, use a code-review skill/command instead.
Determining scope
Default to the diff between the current branch and its fork point from the base branch:
BASE="$(gh pr view --json baseRefName -q .baseRefName 2>/dev/null || gh repo view --json defaultBranchRef -q .defaultBranchRef.name 2>/dev/null || echo main)"
BASE_REF="$(git rev-parse --verify --quiet "$BASE" >/dev/null 2>&1 && echo "$BASE" || echo "origin/$BASE")"
FORK="$(git merge-base "$BASE_REF" HEAD 2>/dev/null)"
git diff "$FORK"...HEAD
If there's no branch/PR context yet (uncommitted work-in-progress), review
git diff HEAD instead — staged and unstaged changes against the last
commit.
If the user names a specific file, scope, or commit range, use that instead of the default.
Установить simplify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл simplify?
Reviews the current diff for duplication, dead code, needless abstraction and inconsistency with surrounding code, then applies the high-confidence fixes. Quality cleanup only, not a bug hunt. Use on 'simplify', 'clean this up' or 'simplify this diff', and from ship.
Как установить скилл 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