opsrv/skills-agents/code-simplifier

Claude Code and agent skill by opsrv/skills-agents

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up code", "refactor for clarity", "improve readability", or review recently modified code for elegance. Focuses on project-specific best practices.

Install

npx vskill@latest install opsrv/skills-agents/code-simplifier

SKILL.md

The same SKILL.md was published earlier as opsrv/skills-agents/code-simplifier.

Code Simplifier

This skill triggers the code-simplifier agent. All simplification logic, principles, and process live in the agent definition (agents/code-simplifier.agent.md).

When to Use

  • User asks to "simplify", "clean up", "refactor for clarity", or "improve readability"
  • After implementation — review recently modified code for elegance
  • Code review flagged unnecessary complexity

When NOT to Use

  • Functionality needs to change (use feature-implementer instead)
  • Broad codebase rewrite (needs explicit approval + plan)
  • Style-only changes covered by linter/formatter

Key Reminders

  • Preserve functionality — never change what the code does
  • Focus scope — only recently modified code unless told otherwise
  • Clarity over brevity — explicit code beats compact code
  • No nested ternaries — prefer if/else or switch
  • Follow CLAUDE.md — project standards override personal preferences

Examples

Before: Nested Ternaries
typescript
const status = isLoading ? 'loading' : hasError ? 'error' : isComplete ? 'complete' : 'idle';
After: Clear Conditions
typescript
function getStatus(isLoading: boolean, hasError: boolean, isComplete: boolean): string {
if (isLoading) return 'loading';
if (hasError) return 'error';
if (isComplete) return 'complete';
return 'idle';
}
Before: Redundant Abstraction
typescript
function isNotEmpty(arr: unknown[]): boolean {
return arr.length > 0;
}
if (isNotEmpty(items)) { /* ... */ }
After: Direct Check
typescript
if (items.length > 0) { /* ... */ }

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/opsrv/skills-agents/code-simplifier/badge)](https://verified-skill.com/skills/opsrv/skills-agents/code-simplifier)

Something wrong with this skill or its page? Tell us.