yq-simplify-code

yq-simplify-code is a skill for Codex from EthanYoQ/Skill-hub. It costs 26 tokens per session (2,696 once invoked), scanned A, original, MIT.

A codebase review guide for finding code, tests, or approval checks that are redundant, overcomplicated, or no longer useful.

In plain words
What is it for?
Use it to audit a repository, propose focused removals or consolidations, create targeted TODOs, or implement approved simplifications.
Why use it?
It helps separate worthwhile simplifications from changes that merely remove lines or accidentally remove supported behavior.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; $skill-name invocation.

Good fit Use it to audit a repository, propose focused removals or consolidations, create targeted TODOs, or implement approved simplifications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanyoq/skill-hub/yq-simplify-code
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 EthanYoQ/Skill-hub --skill yq-simplify-code
Clone the repo
git clone --depth 1 https://github.com/EthanYoQ/Skill-hub

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 yq-simplify-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-simplify-code/github.svg)](https://agentmods.dev/skills/ethanyoq/skill-hub/yq-simplify-code)
Your own site
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-simplify-code"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-simplify-code/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 yq-simplify-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-simplify-code"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-simplify-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,696 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.00026 $0.02696
Opus 5 $0.00013 $0.01348
Sonnet 5 $0.00005 $0.00539
Haiku 4.5 $0.00003 $0.00270

Measured 6d ago against content hash 5b282558c7d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

yq-simplify-code 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 6d 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/01-agent-engineering/yq-simplify-code/SKILL.md · 145 lines

How it starts

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

Find Code Simplifications

Turn a broad request to simplify a codebase into a small set of well-proven removals, consolidations, or demotions. Follow the code and repository decisions; prefer a few candidates with complete evidence over a long list of plausible guesses. This skill can produce an audit, durable proposals, targeted TODOs, or implementation when the user authorizes changes.

Simplification is reduced owned surface and cognitive load, not fewer lines at any cost. A wrapper that relocates the same complexity, a dependency that adds more glue than it removes, or a deletion that silently drops supported behavior is not a win.

Establish repository context

  1. Confirm the requested scope, output, and write authority. A review request reports findings; a fix or implementation request may change code within scope.
  2. Read applicable agent instructions, CONTEXT.md, architecture docs, ADRs/RFCs/decision notes, package manifests, public API docs, compatibility policy, and testing guidance.
  3. Identify protected seams and product commitments. Treat a recorded decision as rationale to test against current evidence, not eternal truth; treat tests as evidence of expected behavior, not proof that every pinned behavior remains valuable.
  4. Inspect the actual checkout, branch/base, dirty state, generated sources, and runtime-loading paths before judging reachability.

Do not import another repository's architectural exceptions. A seam is protected only when this project's code, contract, or current decision evidence protects it.

What makes a strong candidate

A strong candidate removes, folds, narrows, or demotes real surface area and shows that its ongoing cost exceeds its present value. Common forms include:

  • a public method, event, config knob, extension hook, registry notification, helper, package, command, or durable field with no production consumer;
  • tests or docs as the only consumers of behavior that is not a supported contract;
  • two representations mirroring the same fact across state, events, caches, persistence, projections, or UI models;
  • an interface method every implementation carries but no caller uses;
  • a package or service split that exists only for fixtures, demos, or support code and adds publish, versioning, or dependency overhead;
  • speculative generality such as unused multi-tenancy, background orchestration, invalidation, plugin hooks, fallback layers, or compatibility shims with no supported owner;
  • defensive copies, validators, rollback paths, or expected-output inventories that protect an impossible or unsupported boundary;
  • hand-rolled parsers, framing, retries, globbing, diffing, scheduling, or data structures already covered by a suitable runtime builtin or maintained dependency;
  • an added-then-removed feature whose old implementation, tests, docs, migrations, or decisions still remain as sediment.

Read the full file on GitHub · 145 lines

Files

What ships with it

1 file 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. 6d ago First seen · 145 lines · 26 tokens per session scan A 5b282558c7d6

Subscribe to this mod's changes

yq-simplify-code is a skill published in the GitHub repository EthanYoQ/Skill-hub (9 stars, last pushed 4d ago), licensed MIT. It adds 26 tokens to every session and 2,696 once invoked, about $0.0001 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-09-04.

Related

Other skills, from other repositories

trace

Use when encountering bugs, test failures, runtime errors, broken builds, or "this doesn't work" reports. Systematic root-cause analysis before any patch — never blind-patches symptoms. Standalone, ends with a final-integration review of the fix. Trigger with /hyperflow:trace, "debug this", "find the root cause", "why…

jeremylongshore/tons-of-skills-marketplace · 84 tokens

issue

Use when starting a chain from a GitHub issue — turning an issue URL or number into a triaged, planned, dispatched, and reviewed pull request. Classifies the thread (bug → root-cause discipline, feature → plan chain, question → drafted reply), synthesizes a spec from the issue's own acceptance criteria, then runs the…

jeremylongshore/tons-of-skills-marketplace · 115 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

ai-slop-cleaner

Post-implementation cleanup that removes AI-generated bloat while preserving functionality. Runs pass-by-pass with test verification after each pass. Activate after kraken/spark complete a feature, or when a codebase needs hygiene work.

vibeeval/vibecosystem · 50 tokens

create-issue

Transitional alias — prefer /prflow:specs, which runs the same issue-drafting pipeline. Use when a rough user story, bug report, feature idea, piece of feedback, or an implementation plan should be recorded as a GitHub issue rather than built right now. This command name is retained so existing /prflow:create-issue…

The01Geek/prflow · 89 tokens