simplify

simplify is a skill for Claude Code, Codex from znlgis/my-opencode-deepseek-config. It costs 70 tokens per session (1,053 once invoked), scanned A, original, MIT.

A method for making code easier to read while preserving exactly what it does.

In plain words
What is it for?
Use it after a feature or when code is hard to follow, especially to flatten nested logic, remove needless abstractions, and clarify intent.
Why use it?
It reduces unnecessary nesting, indirection, and cleverness without changing behavior or the programming interface.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/znlgis/my-opencode-deepseek-config/simplify
Any agent
npx skills add znlgis/my-opencode-deepseek-config --skill simplify
Clone the repo
git clone --depth 1 https://github.com/znlgis/my-opencode-deepseek-config

Made for: Claude Code, Codex.

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 simplify

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/simplify.svg)](https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/simplify)
Your own site
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/simplify"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/simplify.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,053 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00070 $0.01053
Opus 5 $0.00035 $0.00526
Sonnet 5 $0.00014 $0.00211
Haiku 4.5 $0.00007 $0.00105

Measured today against content hash 8e75682f61a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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.

opencode/skills/simplify/SKILL.md · 109 lines

How it starts

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

Simplify

Improve code readability and reduce cognitive load without altering behavior.

Core rule

The code must do exactly the same thing after simplification. No behavior changes, no "while I'm here" improvements, no API surface modifications. If a test breaks after simplification, the simplification was wrong — revert it.

When to use me

  • Code is "too clever" — over-abstracted, deeply nested, hard to follow
  • After a feature lands and code has accumulated cruft
  • Review feedback says "this is hard to understand"
  • You spot unnecessary indirection: wrappers that don't add value, interfaces with only one implementation, functions called exactly once

Simplification checklist

Apply each pattern only if it reduces complexity without changing behavior:

Reduce nesting

  • Early returns — replace if (x) { ... entire function ... } with if (!x) return. Flattens 3+ levels of nesting into a straight line.
  • Guard clauses — check preconditions at the top and bail early.
  • Extract deeply nested blocks into well-named functions only when the extraction clarifies intent (not reflexively).

Remove unnecessary abstraction

  • Single-caller functions — inline them. A function called from exactly one place is just an indirection tax.
  • Single-implementation interfaces — remove the interface and use the concrete type directly.
  • Thin wrappers — if a function just calls another function with the same arguments plus one default, ask: is this wrapper pulling its weight?
  • Overly generic utilities — a createMapWithDefaultValue(key, defaultVal, strategy, cachePolicy) called only as createMapWithDefaultValue(x, {}, 'lru', 'none') should just be the concrete code.

Reduce variable count

  • Inline single-use variables — if a variable is used exactly once, inline its value at the use site. This is the single highest-leverage simplification.
  • Eliminate temporary "explanation" variables — if the variable name just restates what the RHS already says, delete it.
    • Bad: const isActive = user.status === 'active'; if (isActive) ...
    • Better: if (user.status === 'active') ... (the condition is self-documenting)

Read the full file on GitHub · 109 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 · +3 tokens per session 8e75682f61a3
  2. 5d ago First seen · 109 lines · 67 tokens per session scan A faed67d2603e

Subscribe to this mod's changes

simplify is a skill published in the GitHub repository znlgis/my-opencode-deepseek-config (57 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 1,053 once invoked, about $0.0003 per session on Opus 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