# Code Simplifier

> Detect and simplify overly complex code. Apply KISS principle - less is more. Use when this capability is needed.

- Skill: `tomevault-io/code-simplifier-13` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/code-simplifier-13`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/code-simplifier-13/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/code-simplifier-13

---


> **AI-consumed reference.** Optimized for Claude to read during execution.
> Human-readable explanation: see [docs/architecture/HIERARCHICAL_PLANNING.md](../../../docs/architecture/HIERARCHICAL_PLANNING.md)
> or [docs/getting-started/](../../../docs/getting-started/) depending on topic.


# Code Simplifier

KISS principle. Full guide: `rules/core/simplicity-over-complexity.md`

## Signals → Actions

```toon
signals[5]{signal,action}:
  Deep nesting (>3 levels),Flatten with early returns
  Long function (>30 lines),Extract smaller functions
  Complex conditionals,Use lookup tables
  Over-abstraction,Inline single-use code
  Premature optimization,Remove unless profiled
```

## Targets

```toon
targets[5]{metric,max}:
  Cyclomatic complexity,10
  Nesting depth,3
  Function length,30 lines
  File length,300 lines
  Parameters,3
```

## Before Writing 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)
4. Can I use built-ins? (standard library)
5. Is this needed now? (YAGNI)

---
> Source: [nguyenthienthanh/aura-frog](https://github.com/nguyenthienthanh/aura-frog) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-26 -->

