code-simplifier

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

INSTALLATION
npx skills add https://github.com/pproenca/dot-skills --skill code-simplifier
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$27

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)

6. Duplication Reduction (MEDIUM)

7. Dead Code Elimination (MEDIUM)

8. Language Idioms (LOW-MEDIUM)

Workflow

  • Discover context: Read CLAUDE.md, lint configs, examine existing patterns
  • Identify scope: Focus on recently modified code unless asked to expand
  • Apply transformations: Use rules in priority order (CRITICAL first)
  • Verify behavior: Ensure outputs, errors, and side effects remain identical
  • Keep diffs minimal: Small, focused changes that are easy to review

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

File

Description

references/_sections.md

Category definitions and ordering

assets/templates/_template.md

Template for new rules

metadata.json

Version and reference information

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card