Automates code simplification and cleanup for recently modified files using a dedicated agent.

Install

mkdir -p .claude/skills/simplify && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3475" && unzip -o skill.zip -d .claude/skills/simplify && rm skill.zip

Installs to .claude/skills/simplify

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Manually trigger the cdd-code-simplifier agent to review and simplify code
74 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Review code quality
  • Identify areas for simplification
  • Target specific git diffs
  • Apply consistency standards

How it works

Triggers a specialized code-simplifier agent to perform static analysis and suggest structural improvements.

Inputs & outputs

You give it
Target file path or git scope
You get back
Code refactor proposals

When to use simplify

  • Simplify recently modified code
  • Improve readability of specific functions
  • Ensure consistent coding standards

About this skill

Run the cdd-code-simplifier agent to review and simplify code for clarity, consistency, and maintainability.

Your Task

Use the Task tool with subagent_type: "cdd-code-simplifier" to run the code simplifier.

Scope determination:

  1. If guidance was provided after /simplify, pass it to the agent as part of the prompt
  2. If no guidance provided, have the agent focus on recently modified files (use git diff --name-only main...HEAD or git status to identify them)

User guidance: $ARGUMENTS

After the agent completes:

  1. Review the changes made
  2. If changes were made, ask if the user wants to commit them
  3. Provide a brief summary of what was simplified

Examples

  • /simplify - Simplify recently modified files
  • /simplify focus on build.sh error handling - Simplify with specific guidance
  • /simplify only look at the new functions I added - Narrow the scope

When not to use it

  • On legacy code requiring preservation
  • When specific refactoring constraints are tight

Prerequisites

git

Limitations

  • Requires user verification of changes
  • Limited by the agent's simplification model

How it compares

It provides targeted, agentic refactoring suggestions rather than generic code review prompts.

Compared to similar skills

simplify side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
simplify (this skill)26moNo flagsIntermediate
tdd-workflows-tdd-refactor14moNo flagsIntermediate
effective-go3239moNo flagsBeginner
resolve-conflicts818moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

tdd-workflows-tdd-refactor

sickn33

Use when working with tdd workflows tdd refactor

11

effective-go

openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

323536

resolve-conflicts

antinomyhq

Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.

81334

solid-principles

SmidigStorm

Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.

57236

typescript-review

metabase

Review TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing TypeScript/JavaScript code.

39178

claude-automation-recommender

anthropics

Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.

47140

Search skills

Search the agent skills registry