Agent Skill
2/7/2026code-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
| 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. |
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
anyand add missing types.
Conventions
- Use Vue 3
<script setup>and Composition API. - Keep naming:
kebab-casefor files,camelCasefor vars,UPPER_SNAKE_CASEfor constants. - Follow existing import order and formatting rules.
Workflow
- Identify changed files (
git status/git diff) or user-specified files. - Read the target files and spot refactor candidates.
- Propose a concise set of improvements.
- Apply changes when the user requests edits.
- Verify behavior and formatting.
Output
Provide a brief list of issues and suggested changes per file.
Skills Info
Original Name:code-simplifierAuthor:y2138
Download