code-simplifier

Code Simplifier Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-simplifier" with this command: npx skills add congdon1207/agents.md/congdon1207-agents-md-code-simplifier

Code Simplifier Skill

Simplify and refine code for clarity, consistency, and maintainability.

Usage

/code-simplifier # Simplify recently modified files /code-simplifier path/to/file.ts # Simplify specific file /code-simplifier --scope=function # Focus on function-level simplification

What It Does

  • Analyzes code for unnecessary complexity

  • Identifies opportunities to simplify without changing behavior

  • Applies KISS, DRY, and YAGNI principles

  • Preserves all existing functionality

Simplification Targets

  • Redundant code paths

  • Over-engineered abstractions

  • Unnecessary comments (self-documenting code preferred)

  • Complex conditionals that can be flattened

  • Verbose patterns that have simpler alternatives

Execution

Use the code-simplifier:code-simplifier subagent:

Task(subagent_type="code-simplifier:code-simplifier", prompt="Review and simplify [target files]")

Examples

Before:

function getData() { const result = fetchData(); if (result !== null && result !== undefined) { return result; } else { return null; } }

After:

function getData() { return fetchData() ?? null; }

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

frontend-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

clean-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review

No summary provided by upstream source.

Repository SourceNeeds Review