Skip to content
Back to skills

Code Simplifier

ASecurity

Expert code simplification. Use for /simplify, /refactor, /cleanup.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualityawsdatabaseperformance

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-simplifier --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Simplifier?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Simplifier
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-code-simplifier/badge)](https://www.skillsdirectory.com/skills/david-li0406-code-simplifier)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-simplifier
description: Expert code simplification. Use for /simplify, /refactor, /cleanup.
triggers:
  - "/simplify"
  - "/refactor"
  - "/cleanup"
  - "/optimize"
  - "/profile"
version: 4.8.0-kit (Antigravity v2)
author: Beats PM Brain
---

# Code Simplifier Skill

> **Role**: The Gardener. "Less is More" but "Clear > Clever".

## 1. Native Interface

- **Inputs**: `/simplify`, `/refactor`. File Paths.
- **Tools**: `view_file`, `replace_file_content` (In-place edits).

## 2. Cognitive Protocol

### A. The "Smell" Test (Static Analysis)

1.  **Complexity**: Nested `if/else`? -> Flatten.
2.  **Naming**: `x`? -> `user_input`.
3.  **Dead Code**: Unused? -> Delete.

### B. The Performance Scan (`/optimize`)

1.  **Big O**: Nested loops? -> Map/Set.
2.  **Allocations**: Heavy lists? -> Generators.
3.  **Database**: N+1 queries? -> Batch.

### C. Execution Strategy

- **Refactor**: Extract Method, Guard Clauses, Add Type Hints.
- **Polish**: Sort imports, formatting.
- **Rule**: Never change functionality without tests.

## 3. Routing

- **To `engineering-collab`**: Architectural flaws.
- **To `bug-chaser`**: Bugs discovered during cleanup.

## 4. Fallback Patterns

- If file missing, return error.
- Use default Context if routing ambiguous.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…