Command Palette

Search for a command to run...

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

code-simplifier

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

Code simplification skill for improving clarity, consistency, and maintainability while preserving exact behavior. Use when simplifying code, reducing…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Community Code Simplification Best Practices

Comprehensive code simplification guide for AI agents and LLMs. Contains 47 rules across 8 categories, prioritized by impact from critical (context discovery, behavior preservation) to incremental (language idioms). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics.

Core Principles

  1. Context First: Understand project conventions before making any changes
  2. Behavior Preservation: Change how code is written, never what it does
  3. Scope Discipline: Focus on recently modified code, keep diffs small
  4. Clarity Over Brevity: Explicit, readable code beats clever one-liners

When to Apply

Reference these guidelines when:

  • Simplifying or cleaning up recently modified code
  • Reducing nesting, complexity, or duplication
  • Improving naming and readability
  • Applying language-specific idiomatic patterns
  • Reviewing code for maintainability issues

Rule Categories by Priority

Priority Category Impact Prefix Rules
1 Context Discovery CRITICAL ctx- 4
2 Behavior Preservation CRITICAL behave- 6
3 Scope Management HIGH scope- 5
4 Control Flow Simplification HIGH flow- 9
5 Naming and Clarity MEDIUM-HIGH name- 6
6 Duplication Reduction MEDIUM dup- 5
7 Dead Code Elimination MEDIUM dead- 5
8 Language Idioms LOW-MEDIUM idiom- 7

Quick Reference

1. Context Discovery (CRITICAL)

2. Behavior Preservation (CRITICAL)

3. Scope Management (HIGH)

4. Control Flow Simplification (HIGH)

5. Naming and Clarity (MEDIUM-HIGH)

Полный SKILL.md на GitHub

Установить code-simplifier в Claude Code и Claude Desktop

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

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

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

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

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

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

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

AGENTS.mdREADME.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/behave-no-semantics-change.mdreferences/behave-preserve-api.mdreferences/behave-preserve-errors.mdreferences/behave-preserve-outputs.mdreferences/behave-preserve-side-effects.mdreferences/behave-verify-before-commit.mdreferences/ctx-detect-lint-config.mdreferences/ctx-follow-existing-patterns.mdreferences/ctx-project-over-generic.mdreferences/ctx-read-claude-md.mdreferences/dead-delete-not-comment.mdreferences/dead-keep-why-comments.mdreferences/dead-remove-obvious-comments.mdreferences/dead-remove-todo-fixme.mdreferences/dead-remove-unused.mdreferences/dup-avoid-over-abstraction.mdreferences/dup-data-driven.mdreferences/dup-extract-for-clarity.mdreferences/dup-no-single-use-helpers.mdreferences/dup-rule-of-three.mdreferences/flow-boolean-simplification.mdreferences/flow-early-return.mdreferences/flow-explicit-over-dense.mdreferences/flow-flatten-nesting.mdreferences/flow-guard-clauses.mdreferences/flow-no-nested-ternaries.mdreferences/flow-optional-chaining.mdreferences/flow-positive-conditions.mdreferences/flow-single-responsibility.mdreferences/idiom-go-error-handling.mdreferences/idiom-prefer-language-builtins.mdreferences/idiom-python-comprehensions.mdreferences/idiom-rust-iterator-chains.mdreferences/idiom-rust-question-mark.mdreferences/idiom-ts-const-assertions.md

FAQ

Что делает скилл code-simplifier?

Code simplification skill for improving clarity, consistency, and maintainability while preserving exact behavior. Use when simplifying code, reducing complexity, cleaning up recent changes, applying refactoring patterns, or improving readability. Triggers on tasks involving code cleanup, simplification, refactoring, or readability improvements.

Как установить скилл code-simplifier?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл code-simplifier запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить code-simplifier с