ring:planning-codebase-simplification

ring:planning-codebase-simplification is a skill for Claude Code, Codex from LerianStudio/ring. It costs 105 tokens per session (1,799 once invoked), scanned A, original, Apache-2.0.

A planning tool that examines an entire Go or TypeScript codebase for unnecessary layers, wrappers, interfaces, and unused code. It produces a KILL, REVIEW, or KEEP recommendation for each abstraction and turns accepted work into implementation tasks.

In plain words
What is it for?
Use it when simplifying an architecture, removing compatibility shims, or cleaning up speculative code across a whole codebase.
Why use it?
It helps teams reduce indirection that adds maintenance cost without providing a real benefit, while preserving public APIs unless a change is explicitly approved.

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/lerianstudio/ring/planning-codebase-simplification
Any agent
npx skills add LerianStudio/ring --skill planning-codebase-simplification
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

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 ring:planning-codebase-simplification

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/planning-codebase-simplification.svg)](https://agentmods.dev/skills/lerianstudio/ring/planning-codebase-simplification)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/planning-codebase-simplification"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/planning-codebase-simplification.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,799 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.00105 $0.01799
Opus 5 $0.00053 $0.00899
Sonnet 5 $0.00021 $0.00360
Haiku 4.5 $0.00011 $0.00180

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

Security

Grade A, and why

ring:planning-codebase-simplification 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 yesterday.

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.

dev-team/skills/planning-codebase-simplification/SKILL.md · 168 lines

How it starts

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

Dev Simplify — Whole-Codebase Structural Sweep

When to use

  • User asks to simplify, flatten, or audit architecture of a whole codebase
  • User mentions "too much indirection", "kill shims", "unnecessary abstractions"
  • Pre-public application where break-compatibility refactor is cheap
  • Post-pivot cleanup: speculative scaffolding accumulated during exploration

Skip when

  • Diff review on a feature branch → use ring:reviewing-code
  • Standards-conformance refactor → use ring:planning-backend-refactor
  • Dead code from a specific change → use ring:dead-code-reviewer in ring:reviewing-code
  • Application already has external clients depending on internals

Complementary: ring:reviewing-code, ring:codebase-explorer Similar: ring:planning-backend-refactor, ring:auditing-production-readiness

Core principle: DELETE is the default verdict. An abstraction survives only with concrete evidence of the swap it enables.

Hard Constraint

Default: public APIs MUST NOT break (HTTP routes, SDK surface, webhooks, event contracts).

Supply hard_constraint input to override. Must be declared — never auto-inferred.

Dispatch Protocol

⛔ STOP-CHECK BEFORE DISPATCH

Before emitting any Task call, count the explorers you intend to launch in this turn.

  • Count MUST equal 6 (or 5 if branch has no commits ahead of main — Task 5 skipped).
  • If your dispatch count diverges → STOP and reconcile against the task table below.
  • No substitutions, no omissions.

⛔ MUST NOT trickle-dispatch

All explorers leave in the SAME TURN, before reading any explorer output.

Forbidden sequences:

  • Dispatch explorer 1 → read result → dispatch explorer 2
  • Dispatch a subset → wait → dispatch the rest
  • Dispatch follow-up explorers conditioned on partial output
  • Loop sequentially over the task list

If you find yourself about to dispatch an explorer in a turn AFTER any explorer has already returned a result → STOP. You violated parallel dispatch. Report the violation and mark the phase INCOMPLETE rather than completing the trickle.

Read the full file on GitHub · 168 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. yesterday First seen · 168 lines · 105 tokens per session scan A 6f4e79ed00fa

Subscribe to this mod's changes

ring:planning-codebase-simplification is a skill published in the GitHub repository LerianStudio/ring (210 stars, last pushed 16d ago), licensed Apache-2.0. It adds 105 tokens to every session and 1,799 once invoked, about $0.0005 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-03.