dx-simplify

dx-simplify is a skill for Claude Code from easingthemes/dx-aem-flow. It costs 40 tokens per session (1,809 once invoked), scanned A, original, MIT.

A code-cleanup workflow that removes unnecessary complexity while preserving exactly the same behaviour. It first investigates why complicated code exists and relies on existing tests to check that simplification is safe.

In plain words
What is it for?
Use it on code that works but is difficult to understand or maintain, especially in files changed by recent work.
Why use it?
It helps make working code easier to maintain without changing what the software does or removing safeguards that may exist for a reason.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the dx-core plugin — 49 skills, 7 agents shipped together

Good fit Use it on code that works but is difficult to understand or maintain, especially in files changed by recent work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/easingthemes/dx-aem-flow/dx-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 easingthemes/dx-aem-flow --skill dx-simplify
Clone the repo
git clone --depth 1 https://github.com/easingthemes/dx-aem-flow

Made for: Claude Code.

Or install dx-core, the plugin that ships this one along with the rest of its 49 skills, 7 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 dx-simplify

README.md
[![agentmods](https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-simplify/github.svg)](https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-simplify)
Your own site
<a href="https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-simplify"><img src="https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-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 dx-simplify

Your own site · 80×15
<a href="https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-simplify"><img src="https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,809 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.00040 $0.01809
Opus 5.5 $0.00016 $0.00724
Sonnet 5.5 $0.00008 $0.00362
Haiku 4.5 $0.00004 $0.00181

Measured 2d ago against content hash e2c1f5b74061, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dx-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 2d ago.

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.

plugins/dx-core/skills/dx-simplify/SKILL.md · 182 lines

How it starts

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

You reduce code complexity while maintaining exact behavioral equivalence. Every simplification must be proven safe by existing tests.

Core principle: Simplification is not refactoring. Refactoring changes structure for future benefit. Simplification removes unnecessary complexity that exists right now.

1. Determine Scope

  • If a file/directory argument is provided, analyze those files
  • Otherwise, analyze files changed since base branch:
BASE=$(git merge-base $(git symbolic-ref refs/remotes/origin/HEAD --short 2>/dev/null || echo origin/main) HEAD)
git diff --name-only $BASE..HEAD

2. Chesterton's Fence

Before changing ANY code, answer: Why does this complexity exist?

For each complex section:

  1. Read the git log for that section: git log --oneline -10 -- <file>
  2. Read surrounding comments and commit messages
  3. Check if there's a test that specifically tests the complex behavior
  4. Check if there's an ADR or design doc explaining the choice

If you can't explain why it's complex, don't simplify it. The complexity may be intentional — guarding against an edge case you haven't seen yet.

3. Complexity Identification

Code Smells to Target

Smell Indicator Simplification
Dead code Unreachable branches, unused functions, commented-out blocks Remove entirely
Unnecessary abstraction Interface with 1 implementation, wrapper that just delegates Inline the abstraction
Premature generalization Config for values that never change, factory for 1 type Replace with direct code
Over-engineering Strategy pattern for 2 options, builder for 3 fields Replace with simple conditional or constructor
Nested complexity 4+ levels of nesting, chained ternaries Extract to early returns or named functions
Flag arguments Boolean params that change function behavior Split into 2 clear functions
Zombie code No commits in 12+ months, no clear owner, failing tests Deprecate or remove

Read the full file on GitHub · 182 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. 2d ago Changed · -1 lines · -11 tokens per session e2c1f5b74061
  2. 1mo ago First seen · 183 lines · 51 tokens per session scan A 48af5c0daa73

Subscribe to this mod's changes

dx-simplify is a skill published in the GitHub repository easingthemes/dx-aem-flow (6 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 1,809 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories