home/coding/simplify-skill

Simplify Skill

GPTClaudeDeepSeek··1,389 copies·updated 2026-07-14
simplify-skill.prompt
# Simplify Skill

> **Type**: Bundled skill (compiled into Claude Code binary)
>
> **Invocation**: `/simplify` or `/simplify focus on [area]`
>
> The `/simplify` command is a built-in skill that performs an automated, multi-agent code review and cleanup pass on recently changed files. It is designed to be run after implementing a feature or fixing a bug, before opening a pull request.

## Availability

This is a **bundled skill**, meaning it ships inside the Claude Code binary and does not require installation. Unlike custom skills placed in `.claude/skills/`, this skill is maintained by Anthropic and updated with Claude Code releases. The exact `SKILL.md` source is compiled into the binary and not publicly accessible.

The following documentation is reconstructed from public documentation, community sources, and behavioral analysis.

## Workflow

### Phase 1: Change Detection

The skill identifies the scope of review by inspecting recent changes:

- If inside a Git repository, runs `git diff` (or `git diff HEAD` for staged changes) to determine what was modified
- If no Git repository is detected, reviews the most recently modified files
- The diff output defines the exact scope of the review

### Phase 2: Three-Agent Parallel Review

Three specialized sub-agents are spawned in parallel, each receiving the full diff for context:

#### Code Reuse Agent

Reviews changes to identify:

- Duplicated logic that could be extracted into shared functions
- Existing utility functions or helpers that should be used instead of new code
- Redundant code blocks and repeated patterns
- Opportunities to refactor into reusable components or modules

#### Code Quality Agent

Evaluates code structure and style:

- Naming consistency and readability
- Function decomposition and control flow clarity
- Compliance with coding standards defined in `CLAUDE.md`
- Code smells such as leaky abstractions, stringly-typed code, unnecessary nesting
- Over-engineering, unnecessary abstractions, or premature optimization ("gold-plating")

#### Efficiency Agent

Analyzes performance and resource usage:

- Unnecessary allocations and redundant computations
- Loops that could be batched or optimized
- N+1 query patterns and inefficient file or network access
- Missed concurrency opportunities
- Unnecessary re-renders (in frontend code)

### Phase 3: Aggregation and Fix Application

Once all three agents complete their reviews:

1. Findings are aggregated and deduplicated
2. False positives or findings not worth addressing are skipped
3. Fixes are applied directly to the codebase
4. A summary of what was changed is reported to the user

## Usage

when to use it

Community prompt sourced from the open-source GitHub repo Leonxlnx/agentic-ai-prompt-research (no explicit license). A "Simplify Skill" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

Leonxlnx/agentic-ai-prompt-research · no explicit license