Back to list
nguyenthienthanh

code-simplifier

by nguyenthienthanh

Aura Frog — AI-powered structured development plugin for Claude Code Turn Claude Code into a full-fledged dev platform: Aura Frog brings 24 specialized agents, a 9-phase TDD workflow, built-in quality gates and 70+ commands so your team doesn’t need to manually draft prompts — just call the right command and follow guided instructions.

3🍴 2📅 Jan 22, 2026

SKILL.md


name: code-simplifier description: "Detect and simplify overly complex code. Apply KISS principle - less is more." autoInvoke: true priority: high triggers:

  • "simplify"
  • "too complex"
  • "make simpler"
  • "reduce complexity"
  • "KISS"
  • "over-engineered"

Skill: Code Simplifier

Category: Code Quality Version: 1.0.0 Rule Reference: rules/kiss-avoid-over-engineering.md


Overview

Detect and simplify overly complex code. Apply KISS principle (Keep It Simple, Stupid).

Philosophy: The best code is code you don't have to write. Less is more.

Full Guide: Read rules/kiss-avoid-over-engineering.md for comprehensive patterns and examples.


Quick Reference

SignalAction
Deep nesting (>3 levels)Flatten with early returns
Long function (>30 lines)Extract smaller functions
Complex conditionalsUse lookup tables
Over-abstractionInline single-use code
Premature optimizationRemove unless profiled

Complexity Targets

MetricTarget
Cyclomatic complexity≤10
Nesting depth≤3
Function length≤30 lines
File length≤300 lines
Parameters≤3

Simplification Checklist

Before writing or reviewing code, ask:

  1. Can I delete this? - Unused code, dead branches
  2. Can I inline this? - Single-use abstractions
  3. Can I flatten this? - Nested conditions, callbacks
  4. Can I use built-ins? - Array methods, standard library
  5. Is this needed now? - YAGNI (You Ain't Gonna Need It)
  6. Would a junior understand? - If not, simplify

Commands

CommandPurpose
simplify <file>Analyze and simplify a file
simplify:checkCheck complexity metrics
quality:complexityFull complexity report

Example Session

User: This function is too complex, simplify it

Claude: Let me analyze the complexity...

Complexity Analysis:
- Cyclomatic complexity: 15 (target: ≤10)
- Nesting depth: 5 (target: ≤3)
- Lines: 87 (target: ≤30)

Simplification Plan:
1. Convert nested ifs to early returns (-3 nesting)
2. Extract validation logic to separate function (-20 lines)
3. Replace switch with lookup table (-15 lines, -5 complexity)
4. Remove unused error handling branch

Applying changes...

Result:
- Cyclomatic complexity: 6 ✓
- Nesting depth: 2 ✓
- Lines: 28 ✓

  • Full KISS Guide: rules/kiss-avoid-over-engineering.md
  • Complexity Command: commands/quality/complexity.md
  • Refactor Workflow: commands/refactor.md
  • Code Reviewer: skills/code-reviewer/SKILL.md

Remember: Simple code is not dumb code. It takes skill to write simple code.


Version: 1.0.0

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon