Agent Skill
2/7/2026

code-simplifier

Refactor and simplify code safely while preserving behavior; improve readability, consistency, and maintainability with this repo's conventions. Use when user asks to refactor/simplify code, mentions code smells or technical debt, or wants to improve code quality.

Y
y2138
0GitHub Stars
1Views
npx skills add Y2138/vue3-mono

SKILL.md

Namecode-simplifier
DescriptionRefactor and simplify code safely while preserving behavior; improve readability, consistency, and maintainability with this repo's conventions. Use when user asks to refactor/simplify code, mentions code smells or technical debt, or wants to improve code quality.

name: code-simplifier description: Refactor and simplify code safely while preserving behavior; improve readability, consistency, and maintainability with this repo's conventions. Use when user asks to refactor/simplify code, mentions code smells or technical debt, or wants to improve code quality.

Code Simplifier

Goal

Make code clearer and more maintainable without changing behavior.

Principles

  • Preserve all logic, edge cases, and error handling.
  • Focus on recently modified files unless the user specifies otherwise.
  • Simplify structure without changing semantics.

Tactics

  • Extract repeated logic into small functions.
  • Reduce deep nesting with early returns.
  • Remove dead code and unused imports.
  • Drop unnecessary reactive state or try/catch blocks.
  • Improve naming while keeping domain meaning.
  • Remove any and add missing types.

Conventions

  • Use Vue 3 <script setup> and Composition API.
  • Keep naming: kebab-case for files, camelCase for vars, UPPER_SNAKE_CASE for constants.
  • Follow existing import order and formatting rules.

Workflow

  1. Identify changed files (git status/git diff) or user-specified files.
  2. Read the target files and spot refactor candidates.
  3. Propose a concise set of improvements.
  4. Apply changes when the user requests edits.
  5. Verify behavior and formatting.

Output

Provide a brief list of issues and suggested changes per file.

Skills Info
Original Name:code-simplifierAuthor:y2138