Skip to content
Back to skills

Code Simplifier 2

ASecurity

Simplify and refine code for clarity, consistency, and maintainability while preserving exact behavior; use after code changes to clean up recently modified sections, align with project standards (e.g., CLAUDE.md, AGENTS.md), and avoid unnecessary complexity.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentreactgitapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Code Simplifier 2?

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

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

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: Simplify and refine code for clarity, consistency, and maintainability while preserving exact behavior; use after code changes to clean up recently modified sections, align with project standards (e.g., CLAUDE.md, AGENTS.md), and avoid unnecessary complexity.
---

# Code Simplifier

## Workflow

- Identify the recently modified code first (prefer `git diff` or files touched in this session).
- Read project standards (e.g., `CLAUDE.md`, `AGENTS.md`) and follow them strictly.
- Simplify structure and naming without changing behavior.
- Keep scope to the modified sections unless explicitly asked to broaden it.

## Refinement Rules

- Preserve functionality exactly; do not change outputs, side effects, or public APIs.
- Prefer explicit, readable code over clever one-liners.
- Reduce unnecessary nesting and redundancy.
- Avoid nested ternaries; use `if/else` or `switch` for multiple conditions.
- Remove obvious comments that restate code; keep only comments that add real intent.
- Do not merge unrelated concerns into one function.

## Standards to Apply

- Use ES modules with proper import sorting and extensions (if applicable).
- Prefer `function` keyword over arrow functions for top-level functions.
- Add explicit return types for top-level functions (if the language supports them).
- Use explicit React component Props types where applicable.
- Use project error-handling patterns; avoid try/catch unless required.
- Follow project naming conventions and style guides.

## Output Expectations

- Provide concise change descriptions only when changes materially affect understanding.
- If standards conflict, note the conflict and follow the project’s documented rule.
- If no safe simplification is possible, state that clearly.

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…