Skip to main content
skill CX Codex

code-simplifier · aktsmm — Claude Code skill: clean up code after a session

A skill for refactoring code after a coding session: drops nested ternaries, dense one-liners and restating comments without changing behaviour.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aktsmm/Agent-Skills --skill code-simplifier -a claude-code
Open on GitHub

What code-simplifier does

The skill kicks in when you want to tidy code after a task, review a PR for readability, or apply the same refactoring moves across files. Functionality stays put: run the existing tests first, then change how the code reads.

Inside you get a set of principles plus a pattern table in references/refactoring-patterns.md, which also covers equivalence traps where a rewrite changes behaviour and a format for review feedback. The skill tells the agent to follow project standards (CLAUDE.md, AGENTS.md, .editorconfig, linters) over personal taste. Scope is limited on purpose: only recently modified code gets touched unless you ask for more. That matters on a large legacy file, where the skill will not start rewriting everything.

There is a catch. Simplification slides into clever code that is hard to debug, so the rules ban new unnecessary abstractions and cramming several concerns into one function. Completion is a checklist: tests pass, behaviour unchanged, standards met.

What it helps with

  • tidy code after finishing a task
  • review a PR for readability before handing it off
  • strip nested ternaries and dense one-liners
  • align edits with project standards instead of author taste
  • confirm a refactor did not change behaviour

Example prompts for the agent

  • simplify the code in this file, tests must still pass
  • go over my recent changes and remove unnecessary complexity
  • review this PR for readability and suggest refactoring patterns

How to install code-simplifier

1Skills CLI (Vercel)

npx skills add aktsmm/Agent-Skills --skill code-simplifier -a claude-code

2Manually: put the files in place

~/.claude/skills/code-simplifier/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/code-simplifier/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about code-simplifier

How do I install code-simplifier in Claude?

Run npx skills add aktsmm/Agent-Skills --skill code-simplifier -a claude-code. The skill lands in ~/.claude/skills/code-simplifier/SKILL.md.

What does code-simplifier do?

It gives the agent rules for simplifying code: preserve behaviour, follow project standards, remove nested ternaries and comments that restate the obvious. It works on recently modified code unless you widen the scope.

Does it need any setup?

It leans on your project config — CLAUDE.md, AGENTS.md, .editorconfig and linters. If those describe a style, the refactor follows them rather than the agent's own preferences.

Similar skills

Everything for Code review and refactoring →

code-simplifier by other authors comes first.

code-simplifier rtk-ai Reviews Rust code in RTK to remove over-engineering and needless allocations. It applies idiomatic simplifications without altering runtime behavior. CX Codex +1 2,100installs code-simplifier pproenca A skill that gives AI agents 47 rules for cleaning up recently changed code without altering what it does. CX Codex +1 1,600installs code-simplifier anthropics Rewrites code you just touched so it reads cleaner, without changing what it does. Handy right after a messy edit. CX Codex +1 1,800installs gem-code-simplifier official github A refactoring subagent that removes dead code and drops complexity. Handy when cleaning up messy logic without altering existing behavior. ★ 40,418repo stars thermo-nuclear-code-quality-review cursor Runs a strict maintainability audit of code changes, abstractions, large files, and branching complexity. Use it when a routine review needs deeper structural scrutiny. CX Codex +1 22,200installs simplify brianlovin Rewrites code you just wrote so it reads better: less nesting, fewer duplicates, clearer names. Behaviour stays exactly as it was. CX Codex +1 20,100installs clanker-discipline gbasin This skill prevents AI coding agents from bloating application state. It guides reviews of state models, optional fields, and mutation patterns. CX Codex +1 7,500installs clean-code davila7 Gives the agent a set of clean-code rules: small functions, intent-revealing names, no obvious comments, no needless abstraction. Useful when you want working code, not a tutorial. 7,176installs deslop brianlovin A skill that diffs your branch against main and removes the comments, defensive checks and any-casts an AI left behind. CX Codex +1 5,500installs

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor