Simplifies and refines modified code to improve readability without altering function.

Install

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

Installs to .claude/skills/simplify-bebraw

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.

Simplify and refine recently modified code for clarity and consistency. Use after writing code to improve readability without changing functionality.
149 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Shorten verbose names
  • Merge redundant types or constants
  • Remove derivable state
  • Refine recently modified code
  • Improve readability without changing functionality

How it works

This skill analyzes modified code to shorten names, merge related concepts, and remove derivable state, aiming to improve readability without altering functionality.

Inputs & outputs

You give it
Recently modified code in the current branch or a specified state
You get back
Simplified and refined code with improved clarity and consistency

When to use simplify

  • Clean up code after a feature implementation
  • Simplify complex type definitions
  • Refactor variable names for clarity

About this skill

Review changes in the current branch, or in the state the user specifies. Apply these criteria without changing behavior:

  1. Names: Shorten verbose names while keeping them clear. Prefer human-readable concepts (baseline) over compound phrases that are more mechanical / academic (lastObservedDiskContent).

  2. Combine related concepts: If two types, functions, or constants overlap significantly, merge them. The fewer distinct concepts a reader must hold in their head, the better. Example: two union types sharing 3 of 4 values → one type with shorter value names.

  3. Derivability: If a value can be computed from other values already in scope, don't pass or store it separately. Removing derivable state often simplifies signatures, types, and control flow in one move. Example: an isDirty parameter that's always derived from computing editorContent !== baseline can be dropped.

  4. Scope: Only touch code in the specified scope. Validate your work does not break existing functionality.

When not to use it

  • When the task involves changing functionality
  • When the task is outside the specified scope

Limitations

  • It must not change functionality
  • It only touches code within the specified scope
  • It focuses on readability and consistency

How it compares

This skill provides a specific set of criteria for code simplification, focusing on clarity and consistency post-implementation, rather than general refactoring or feature development.

Compared to similar skills

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

SkillInstallsUpdatedSafetyDifficulty
simplify (this skill)04moNo flagsIntermediate
when-stuck-problem-solving-dispatch89moNo flagsBeginner
agent-refinement16moReviewAdvanced
ponytail01moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry