Loading...
Loading...
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.
npx skill4agent add pproenca/dot-skills code-simplifier| Priority | Category | Impact | Prefix | Rules |
|---|---|---|---|---|
| 1 | Context Discovery | CRITICAL | | 4 |
| 2 | Behavior Preservation | CRITICAL | | 6 |
| 3 | Scope Management | HIGH | | 5 |
| 4 | Control Flow Simplification | HIGH | | 9 |
| 5 | Naming and Clarity | MEDIUM-HIGH | | 6 |
| 6 | Duplication Reduction | MEDIUM | | 5 |
| 7 | Dead Code Elimination | MEDIUM | | 5 |
| 8 | Language Idioms | LOW-MEDIUM | | 7 |
ctx-read-claude-mdctx-detect-lint-configctx-follow-existing-patternsctx-project-over-genericbehave-preserve-outputsbehave-preserve-errorsbehave-preserve-apibehave-preserve-side-effectsbehave-no-semantics-changebehave-verify-before-commitscope-recent-code-onlyscope-minimal-diffscope-no-unrelated-refactorsscope-no-global-rewritesscope-respect-boundariesflow-early-returnflow-guard-clausesflow-no-nested-ternariesflow-explicit-over-denseflow-flatten-nestingflow-single-responsibilityflow-positive-conditionsflow-optional-chainingflow-boolean-simplificationname-intention-revealingname-nouns-for-dataname-avoid-abbreviationsname-consistent-vocabularyname-avoid-genericname-string-interpolationdup-rule-of-threedup-no-single-use-helpersdup-extract-for-claritydup-avoid-over-abstractiondup-data-drivendead-remove-unuseddead-delete-not-commentdead-remove-obvious-commentsdead-keep-why-commentsdead-remove-todo-fixmeidiom-ts-strict-typesidiom-ts-const-assertionsidiom-rust-question-markidiom-rust-iterator-chainsidiom-python-comprehensionsidiom-go-error-handlingidiom-prefer-language-builtins| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |