# Code Simplifier (code-simplifier)

> Refines code for clarity, consistency and maintainability while preserving all functionality, applying project-specific standards.

- Category: [Refactoring](https://www.myskills.tools/en/categories/refactoring/)
- Source: Official · Sentry
- Repository: https://github.com/getsentry/skills/tree/main/skills/code-simplifier (commit 24361e7)
- SKILL.md: https://github.com/getsentry/skills/blob/main/skills/code-simplifier/SKILL.md
- Install command: `npx skills add getsentry/skills --skill code-simplifier`
- License: Apache-2.0
- Compatible with: Claude Code
- Permissions: read-repo ✓, write-files ✓, shell ✗, network ✗
- Status: Scan passed
- A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.

## Core rule

Never change what the code does, only how it does it.

## Execution Phases

1. **Identify recent changes** — Focus on code modified in the current session unless explicitly told to review a broader scope.
2. **Analyze opportunities** — Look for unnecessary nesting, redundant code and abstractions, unclear names, comments that restate obvious code, and nested ternaries.
3. **Apply project standards** — Follow CLAUDE.md conventions such as ES modules, the function keyword, explicit return types and Props types, choosing clarity over brevity.
4. **Verify and document** — Confirm functionality is unchanged and the code is simpler to maintain, documenting only significant changes that affect understanding.

## Permissions (summarised from SKILL.md)

| Capability | Needed | Details |
|---|---|---|
| File writes | Required | Edits recently modified code to improve clarity. |
| Command execution | Not required | The skill does not call for running any commands. |
| Network outbound | Not required | No network access is needed. |

## SKILL.md frontmatter (YAML)

```yaml
---
name: code-simplifier
description: 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.
---
```

Home: https://www.myskills.tools/en/ · URL: https://www.myskills.tools/en/skills/code-simplifier/
