code-simplify

code-simplify is a skill for Claude Code from kangig94/coral. It costs 23 tokens per session (2,524 once invoked), scanned A, original, MIT.

A code-refinement guide for making recently changed or selected code clearer and easier to maintain while keeping its behavior unchanged.

In plain words
What is it for?
Use it to simplify code, improve names and consistency, preserve existing functionality, and check that tests and the build still pass.
Why use it?
It helps remove unnecessary nesting and repetition without accidentally changing what the program does.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions Codex.

Part of the coral plugin — 12 skills, 10 agents shipped together

Good fit Use it to simplify code, improve names and consistency, preserve existing functionality, and check that tests and the build still pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kangig94/coral/code-simplify
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kangig94/coral --skill code-simplify
Clone the repo
git clone --depth 1 https://github.com/kangig94/coral

Made for: Claude Code.

Or install coral, the plugin that ships this one along with the rest of its 12 skills, 10 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-simplify

README.md
[![agentmods](https://agentmods.dev/badge/skills/kangig94/coral/code-simplify/github.svg)](https://agentmods.dev/skills/kangig94/coral/code-simplify)
Your own site
<a href="https://agentmods.dev/skills/kangig94/coral/code-simplify"><img src="https://agentmods.dev/badge/skills/kangig94/coral/code-simplify/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-simplify

Your own site · 80×15
<a href="https://agentmods.dev/skills/kangig94/coral/code-simplify"><img src="https://agentmods.dev/badge/skills/kangig94/coral/code-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.02524
Opus 5.5 $0.00009 $0.01010
Sonnet 5.5 $0.00005 $0.00505
Haiku 4.5 $0.00002 $0.00252

Measured today against content hash 0a42c282919f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-simplify scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

clients/skills/code-simplify/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Simplification

Simplify and refine code for clarity and maintainability while preserving functionality.

Argument Routing

Argument Mode
<prompt> Self-execute on current host (default)
--delegate Delegate to the other host (Claude → Codex, Codex → Claude, Copilot → Codex; current host comes from SessionStart Current host:)
--delegate <prompt> Same with prompt

Strip the --delegate flag before passing the prompt to the execution path.

<Code_Simplifier> You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. You prioritize readable, explicit code over overly compact solutions. <Success_Criteria> - All functionality preserved — no behavioral changes - Code passes existing tests before and after simplification - Build succeeds after changes - Every change traces to a clear simplification principle (reduced nesting, eliminated redundancy, improved naming, etc.) - Project coding standards (from CLAUDE.md) are respected </Success_Criteria> NEVER change what the code does — only how it does it.

Clarity is the primary metric — not brevity, not line count, not "modern" style. If the original code is already clear and intentional, leave it alone.

"No change" is a valid result. If a file is already clear and intentional, skip it.
Do not force changes to justify being invoked.

Read the full file on GitHub · 150 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 lines 0a42c282919f
  2. 5d ago Changed 422949668174
  3. 29d ago Changed 0cba56f721ef
  4. 1mo ago First seen · 149 lines · 23 tokens per session scan A 7c68add74f31

Subscribe to this mod's changes

code-simplify is a skill published in the GitHub repository kangig94/coral (11 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 2,524 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gh-pr-review

Automated Cherry Studio review for local branches, PRs, commits, files, architecture docs, and repository skills. Use for code or documentation reviews that need project-specific naming, main/renderer/shared placement and dependency rules, IpcApi and DataApi boundaries, lifecycle/service ownership, renderer hooks…

CherryHQ/cherry-studio · 147 tokens

github-review-pr

Review GitHub pull requests with detailed, multi-perspective code analysis using parallel subagents. Use this skill whenever the user wants to review a PR, asks for code review on a pull request, mentions "review PR", "check this PR", "look at pull request", or references a PR number or GitHub PR URL. Do NOT use for…

feiskyer/claude-code-settings · 90 tokens

find-simplifications

Use when asked to find or plan Cherry Studio cleanup, simplification, refactoring, dead-code removal, duplicated state removal, unnecessary APIs, speculative generality, or library replacements, especially when the result should become evidence-backed proposed Agent Notes.

CherryHQ/cherry-studio · 53 tokens

flow-next-impl-review

Carmack-level implementation review of changes via the configured backend. Use when asked to review code or a diff in a flow-next repo.

gmickel/flow-next · 34 tokens

flow-next-plan-review

Carmack-level review of a flow-next spec or plan via the configured backend. Use when asked to review a plan or spec.

gmickel/flow-next · 32 tokens

flow-next-spec-completion-review

Verify that a spec's completed tasks fully implement the spec requirements. Use at spec completion before close.

gmickel/flow-next · 27 tokens