simplify

simplify is a skill for Codex from jscraik/Agent-Skills. It costs 40 tokens per session (2,575 once invoked), scanned A, original, Apache-2.0.

A focused review of changed code that looks for simpler ways to keep the same behavior. It checks for unused code, repetition, unclear names, and tests that could be tightened.

In plain words
What is it for?
Use it before merging a pull request to clean up a specific change, remove duplication, extract shared helpers, improve names, or review test quality.
Why use it?
It reduces maintenance work and makes a change easier to understand without turning it into a broad redesign. It can also confirm that leaving the code unchanged is the safer choice.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it before merging a pull request to clean up a specific change, remove duplication, extract shared helpers, improve names, or review test quality.

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

Made for: 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/jscraik/agent-skills/simplify/github.svg)](https://agentmods.dev/skills/jscraik/agent-skills/simplify)
Your own site
<a href="https://agentmods.dev/skills/jscraik/agent-skills/simplify"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/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 simplify

Your own site · 80×15
<a href="https://agentmods.dev/skills/jscraik/agent-skills/simplify"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/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 2,575 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.02575
Opus 5.5 $0.00016 $0.01030
Sonnet 5.5 $0.00008 $0.00515
Haiku 4.5 $0.00004 $0.00258

Measured 1mo ago against content hash 934379e7cc94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

Skills/agent-ops/simplify/SKILL.md · 241 lines

How it starts

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

Simplify

Audit an existing implementation against its intended outcome. Prefer deleting over simplifying, simplifying over optimizing, and optimizing over automating. Preserve required behavior and prove the exact surface that changed. A valid result may be no_justified_edit when every candidate would add risk, ceremony, or scope.

When To Use

  • The user explicitly asks to simplify an existing implementation or change.
  • The user wants a first-principles simplification pass after implementation.
  • The target has an existing diff, named file, or clearly edited scope.

Do not use for generic code review, net-new feature design, or broad architecture rewrites without an explicit simplification request.

Inputs

  • The intended user outcome, required behavior, and assumptions behind the implementation.
  • The intended comparison or merge base and the user-named scope.
  • Staged, unstaged, and relevant untracked files, including dependencies that the patch references.
  • Generated artifacts and the commands that own them, when applicable.
  • Any focus area such as performance, helper reuse, JSX nesting, or error handling.
  • Repository validation commands from local instructions.
  • Dirty files that are unrelated or have uncertain ownership and must remain outside the edit boundary.
  • The evidence source being treated as truth: local checkout, local branch, remote branch, or hosted PR diff.

When the request is underspecified, read references/discovery-interview.md and ask one plain-language question at a time. Explain why the answer changes the cleanup decision.

Outputs

For a small interactive cleanup, use four concise fields:

  • Outcome: changed, no_justified_edit, or blocked.
  • Evidence: the exact supplied diff or file fact supporting that outcome.
  • Validation: the focused command or artifact required before claiming preserved behavior.
  • Skipped / boundary: risky candidates left untouched and the remaining behavior boundary.

For validation removal, the Validation field must name both an accepted-input case and a rejected-input case, their expected results, and whether each ran.

Read the full file on GitHub · 241 lines

Files

What ships with it

32 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +3 lines 934379e7cc94
  2. 1mo ago Changed · +29 lines · -24 tokens per session 3937eca4af44
  3. 1mo ago First seen · 209 lines · 64 tokens per session scan A 8c67c7dd9e68

Subscribe to this mod's changes

simplify is a skill published in the GitHub repository jscraik/Agent-Skills (9 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 2,575 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

agent-code-review-swarm

Agent skill for code-review-swarm - invoke with $agent-code-review-swarm.

ruvnet/ruflo · 22 tokens

agent-code-analyzer

Agent skill for code-analyzer - invoke with $agent-code-analyzer.

ruvnet/ruflo · 19 tokens

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

revdiff

Review diffs, files, and documents with inline annotations in a TUI overlay, or answer questions about revdiff usage, configuration, themes, and keybindings. Opens revdiff in agterm/tmux/zellij/herdr/kitty/wezterm/cmux/ghostty/iterm2/emacs-vterm, captures annotations, and addresses them. Works in git, hg, and jj repos…

umputun/revdiff · 248 tokens

revdiff-plan

Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…

umputun/revdiff · 84 tokens

code-review-patterns

Multi-dimensional code assessment across security, quality, performance, and maintainability with confidence-gated reporting (>=80%) and Router Contract generation.

a5c-ai/babysitter · 33 tokens