code-simplifiercommit 24361e7SKILL.md · Refactoring
Code Simplifier
Refines code for clarity, consistency and maintainability while preserving all functionality, applying project-specific standards.
npx skills add getsentry/skills --skill code-simplifierCommand selected. Copy it manually.
- Permissions
- read-repo
- write-files
- shell
- network
- Compatible with
- Claude Code
- GitHub
- 1.1k
- Source
- Official · Sentry
- Status
- Scan passed
- License
- Apache-2.0
- Category
- Refactoring
Core rule
Never change what the code does, only how it does it.
Execution Phases
Phase 01Identify recent changes
Focus on code modified in the current session unless explicitly told to review a broader scope.
Phase 02Analyze opportunities
Look for unnecessary nesting, redundant code and abstractions, unclear names, comments that restate obvious code, and nested ternaries.
Phase 03Apply project standards
Follow CLAUDE.md conventions such as ES modules, the function keyword, explicit return types and Props types, choosing clarity over brevity.
Phase 04Verify 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)
---
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.
---