simplify-codebase

simplify-codebase is a skill for Codex from tt-a1i/archify. It costs 93 tokens per session (1,274 once invoked), scanned A, original, MIT.

A guide for finding and, when authorised, removing accidental complexity in a codebase. It covers dead code, duplicate state, redundant interfaces, unnecessary layers, obsolete compatibility paths, and unsupported abstractions.

In plain words
What is it for?
Use it for read-only simplification surveys or scoped changes that delete or consolidate unnecessary code and documentation.
Why use it?
It helps simplify a system based on evidence while avoiding the accidental removal of supported behaviour or interfaces.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for read-only simplification surveys or scoped changes that delete or consolidate unnecessary code and documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tt-a1i/archify/simplify-codebase
About the project

Archify is a system that turns codebases or system descriptions into interactive architecture, workflow, sequence, data-flow, and lifecycle diagrams. Developers use it to inspect, review, compare, and share system designs, while its catalogue skill provides the agent workflow for creating and validating those diagrams.

tt-a1i/archify · 84,044 stars · on GitHub · archify.si

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 tt-a1i/archify --skill simplify-codebase
Clone the repo
git clone --depth 1 https://github.com/tt-a1i/archify

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-codebase

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tt-a1i/archify/simplify-codebase"><img src="https://agentmods.dev/badge/skills/tt-a1i/archify/simplify-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,274 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.00093 $0.01274
Opus 5.5 $0.00037 $0.00510
Sonnet 5.5 $0.00019 $0.00255
Haiku 4.5 $0.00009 $0.00127

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

Security

Grade A, and why

simplify-codebase 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/simplify-codebase/SKILL.md · 84 lines

How it starts

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

Simplify Codebase

Reduce the number of concepts and obligations a codebase must keep coherent. Line-count reduction is supporting evidence, not the objective. A successful run may conclude that the inspected surface is already justified.

Select mode and scope

First choose the authority mode:

  • Survey for simplification audit, investigation, or candidate-finding requests. Remain read-only and return ranked evidence.
  • Change for explicit simplify, remove, consolidate, refactor, or repository-documentation edit requests. Prove each cut, implement it within the authorized scope, and validate the surviving contract.

Then choose the coverage scope:

  • Focused when the user names a subsystem, symbol, state machine, dependency, or suspected duplication. Cover that boundary thoroughly before expanding outward.
  • Broad when the request spans the repository or asks for multiple candidates. Partition the system and account for every in-scope domain.

Deleting a reachable capability, supported interface, stored representation, or compatibility path is a product decision. Describe the consequence and obtain direction unless the user has already chosen it.

Establish the contract

  1. Read the repository's instructions, architecture and decision records, manifests, test guidance, and generated-file conventions.
  2. Inspect version-control state and preserve unrelated work. Identify vendored, generated, migration, fixture, and public-package surfaces before classifying them.
  3. Trace the runtime path from entrypoints through configuration, registration, dispatch, persistence, processes, and wire boundaries. Record public, dynamic, persisted, generated, and compatibility-sensitive contracts.
  4. In Change mode, discover the repository's real verification commands and capture a proportional baseline when feasible. A failing baseline narrows what the final checks can prove.

Preserve authorization, trust-boundary validation, security isolation, accessibility essentials, data-loss prevention, stored-format compatibility, and cleanup that establishes quiescence. Treat changes to these protections as their own explicitly authorized objective, not an incidental simplification.

Read the full file on GitHub · 84 lines

Files

What ships with it

7 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. 2d ago First seen · 84 lines · 93 tokens per session scan A 22bde2ab929b

Subscribe to this mod's changes

simplify-codebase is a skill published in the GitHub repository tt-a1i/archify (84,044 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 1,274 once invoked, about $0.0004 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-10-14.

Related

Other skills, from other repositories

omc-review

Evaluate finished work for defects, risk, and simplification before it ships.

Yeachan-Heo/oh-my-claudecode · 18 tokens

oracle-debug

Disciplined debugging methodology. Triggers on bug reports, test failures, "debug this", "diagnose this", unexpected behavior, build failures, integration issues, or performance regressions. Find root cause before a permanent corrective fix; contain urgent harm safely first.

martinffx/atelier · 56 tokens

tech-debt-collector

Evidence-gated tech debt and bloat detection. Scouts signals, ranks by materiality, validates by refutation, reports up to 5 findings with actions.

rp1-run/rp1 · 38 tokens

blast-radius-preview

Show the likely downstream consequences of a proposed change — hidden dependencies, fragile integration points, and predicted breakage categories.

DVNghiem/FlowDeck · 27 tokens

dev-experts

Apply opinionated developer personas for architecture decisions, production debugging, language-specific code review, comprehensive reviewer passes, and test strategy. Use when you need an architect plan, devops investigation, Rust/Python/C++ review, grumpy reviewer audit, or tester-driven test plan. Triggers…

DeevsDeevs/agent-system · 91 tokens

code-simplification

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

jcarlosrodicio/opencode-agent-orchestration-kit · 51 tokens