Index of every page on this site: llms.txt
All skills
Run it yourself

This skill should be used when the user asks to "clean up code", "remove dead code", "simplify this function", "this code is too complex", "reduce complexity", "find unused imports", "code quality sweep", or "/simplifier". Focuses on dead code, complexity reduction, and duplication removal.

  • 6 files
  • 17.5 KB
  • Updated 2 days ago
  • GitHub
Use this Skill: https://skilld.dev/gh/utkudarilmaz/claude-code-setup/simplifier

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈76 tokens for metadata: the name and description. ≈950 when used: this file. ≈3.4k more on demand in 5 files.

Description uses 3.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈304 characters, or 3.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Simplifier

Overview

Dispatch the simplifier agent to cleanup dead code, reduce complexity, and improve code quality. Focuses on Go, JavaScript/TypeScript, Python, and Rust codebases.

When to Use

  • After implementing features (cleanup pass)
  • After refactoring (dead code check)
  • When code feels too complex
  • When duplication is suspected
  • With "all" for full project quality audit
  • With specific scope for targeted cleanup

Invocation Modes

Default: /simplifier

Scans recent changes for cleanup opportunities.

Task tool with subagent_type="core:simplifier"
prompt: "Review recent code changes for dead code, complexity, and quality issues.
Identify modified files, find cleanup opportunities, suggest simplifications."

Scoped: /simplifier <scope>

Analyzes only the specified scope (file, module, function).

Task tool with subagent_type="core:simplifier"
prompt: "Review and simplify code in: [scope]
Focus only on this area. Find dead code, reduce complexity, improve quality."

Scope examples:

  • /simplifier src/handlers - simplify handlers module
  • /simplifier utils/parser.ts - simplify specific file
  • /simplifier internal/service - simplify Go service package
  • /simplifier UserService - simplify specific class/service

Comprehensive: /simplifier all

Perform a planned, modular code quality audit covering the entire repository.

Task tool with subagent_type="core:simplifier"
prompt: "Perform comprehensive code quality audit of the entire repository.
Create a TodoWrite plan with one item per module or package, then process sequentially.
Consult ${CLAUDE_SKILL_DIR}/references/comprehensive-mode.md for the quality aspect checklist and execution flow.
Do not skip any area. Continue until ALL areas are reviewed."

For the quality aspect checklist and example plan, consult references/comprehensive-mode.md.

What the Agent Does

  • Detects unused imports, variables, functions
  • Finds unreachable code paths
  • Identifies complexity hotspots
  • Spots duplicated logic
  • Suggests simplifications with before/after code
  • Reports severity (HIGH/MEDIUM/LOW)

Examples

After adding a feature:

/simplifier
→ Reviews recent changes, suggests cleanup

Simplify specific module:

/simplifier src/services/payment
→ Focuses only on payment service

Simplify a complex function:

/simplifier processOrder
→ Analyzes and simplifies the function

Full project audit:

/simplifier all
→ Creates plan, systematically reviews every module

Language Focus

Language Key Checks
Go Unchecked errors, empty interface abuse, defer in loops, context propagation
JS/TS any abuse, unused hooks deps, mixed async patterns, optional chaining opportunities
Python Mutable defaults, broad exceptions, unused imports
Rust Unwrap in production paths, needless clones, owned parameters for read-only use, verbose matching

Additional Resources

Language-specific pattern references are available for deeper analysis. When dispatching the simplifier agent, detect the primary language(s) in scope and include the relevant reference content in your dispatch prompt:

Scope Language Reference File
Go references/go-patterns.md
JavaScript / TypeScript references/js-ts-patterns.md
Python references/python-patterns.md
Rust references/rust-patterns.md

Dispatch instruction: Read the relevant reference file(s) and append their content to the agent prompt under a "## Language-Specific Patterns" heading. If the scope contains multiple languages, include all applicable references. If the language is unknown or mixed, include all four.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 7ee2637. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 days ago

README badge

README badge for utkudarilmaz/claude-code-setup/simplifier