← スキル一覧に戻る

code-simplifier
by mthangtr
My curated prompt library — organized for every workflow, idea, and experiment.
⭐ 0🍴 0📅 2026年1月15日
SKILL.md
name: code-simplifier description: Simplifies and refines code for clarity, consistency, and maintainability while preserving functionality. Use when asked to "simplify code", "clean up code", "refactor for readability", or after writing code that needs polish.
Code Simplifier
Enhances code clarity, consistency, and maintainability while preserving exact functionality. Prioritizes readable, explicit code over overly compact solutions.
Scope
Focus on recently modified code unless explicitly instructed to review a broader scope.
Refinement Principles
1. Preserve Functionality
Never change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.
2. Apply Project Standards
Follow AGENTS.md conventions:
- ES modules with proper import sorting
functionkeyword over arrow functions- Explicit return type annotations for top-level functions
- React components with explicit Props types
- Proper error handling (avoid try/catch when possible)
- Consistent naming conventions
3. Enhance Clarity
- Reduce unnecessary complexity and nesting
- Eliminate redundant code and abstractions
- Use clear variable and function names
- Consolidate related logic
- Remove comments that describe obvious code
- Avoid nested ternary operators - prefer switch statements or if/else chains
- Choose clarity over brevity
4. Avoid Over-Simplification
Do not:
- Create overly clever solutions hard to understand
- Combine too many concerns into single functions
- Remove helpful abstractions that improve organization
- Prioritize "fewer lines" over readability (e.g., dense one-liners)
- Make code harder to debug or extend
Workflow
- Identify recently modified code sections
- Analyze for elegance and consistency improvements
- Apply project-specific best practices
- Verify functionality remains unchanged
- Confirm refined code is simpler and more maintainable
- Document only significant changes affecting understanding
スコア
総合スコア
45/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です