untangle-codebase

untangle-codebase is a skill for Claude Code from me-cedric/agent-compass. It costs 42 tokens per session (920 once invoked), scanned A, original, MIT.

A planned refactoring workflow for reorganising an entire codebase across many files.

In plain words
What is it for?
It is for making a large codebase easier to change and debug, after checking the branch and existing project checks.
Why use it?
It helps expose duplicated logic, hidden dependencies, and pieces that change together but are scattered or tightly coupled.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit It is for making a large codebase easier to change and debug, after checking the branch and existing project checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/me-cedric/agent-compass/untangle-codebase
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 me-cedric/agent-compass --skill untangle-codebase
Clone the repo
git clone --depth 1 https://github.com/me-cedric/agent-compass

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/me-cedric/agent-compass/untangle-codebase/github.svg)](https://agentmods.dev/skills/me-cedric/agent-compass/untangle-codebase)
Your own site
<a href="https://agentmods.dev/skills/me-cedric/agent-compass/untangle-codebase"><img src="https://agentmods.dev/badge/skills/me-cedric/agent-compass/untangle-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 untangle-codebase

Your own site · 80×15
<a href="https://agentmods.dev/skills/me-cedric/agent-compass/untangle-codebase"><img src="https://agentmods.dev/badge/skills/me-cedric/agent-compass/untangle-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 920 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.00042 $0.00920
Opus 5.5 $0.00017 $0.00368
Sonnet 5.5 $0.00008 $0.00184
Haiku 4.5 $0.00004 $0.00092

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

Security

Grade A, and why

untangle-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 14d 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/untangle-codebase/SKILL.md · 77 lines

How it starts

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

Untangle codebase

Adapted from caldoai/skills (MIT, Maze). This is a planned refactor of many files. Do not start it for a small task.

Goal: pieces that change together sit together. Pieces that change for different reasons are not tied. Everything depends on what changes less.

Before you start

  1. Check the branch and its base. Work on a branch, not on the default branch. Do not commit unless the user asks.
  2. Run the project checks. Record the result. A red check before the start is a blocker: report it and stop.
  3. Ask one question: do you also want Comments (remove comments that only restate the code) or Tests (see step 4)? Do only what the user picks.

1. List every problem

Change nothing yet. Ask one question about each piece: should these pieces change together? Write each wrong answer in a decision log (see references/decision-log.md). There are three kinds.

Hidden links: pieces that must change together, with nothing in the code that shows it.

  • Copies of logic or values.
  • A module that reads a global or file that another module sets.
  • A feature split across folders by layer.
  • A call order or convention that callers must know.

Needless links: pieces that are tied but change for different reasons.

  • Callers that depend on internals.
  • Stable code that imports volatile code.
  • A general function with a parameter that only one workflow understands.
  • A shallow module: its interface changes when its internals change.

Surplus: pieces with no reason of their own to change.

  • Wrappers that only pass calls through.
  • Extension points and config for things that never vary.
  • Dead code.

Also write each special case: code that exists for one situation and does not follow from how the system works. Examples: an if for one value, a parameter for one caller, a swallowed exception, a retry or sleep, a disabled test. Each one is a requirement that the design did not plan for.

2. Redesign from first principles

Work out the fixes as if the system had known today's requirements from the start. Look for the one fix behind several problems. Do not fix special cases one by one. Write each fix above the problems that it solves.

Read the full file on GitHub · 77 lines

Files

What ships with it

2 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. 14d ago First seen · 77 lines · 42 tokens per session scan A 38854c7aa1a7

Subscribe to this mod's changes

untangle-codebase is a skill published in the GitHub repository me-cedric/agent-compass (3 stars, last pushed 10d ago), licensed MIT. It adds 42 tokens to every session and 920 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-11-17.

Related

untangle-codebase compared with skills from other repositories

untangle-codebase next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
untangle-codebaseme-cedric/agent-compassSkill310d agoMITA42Claude Code
git-advanced-workflowswshobson/agentsSkill43kyesterdayMITA54Claude Code
compute-sanitizer-diagnose-cuda-bugsNVIDIA/skillsSkill4.2ktodayApache-2.0A213Claude Code, Codex
tao-analyze-changenet-rcaNVIDIA/skillsSkill4.2ktodayApache-2.0A121Claude Code
rubber-duckkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A161Claude Code, Codex
ios-simulatorcallstack/agent-deviceSkill5.6ktodayMITA69Claude Code, Codex
cvm-ai-doctorTencentCloud/OctopSkill13kyesterdayMITA70Claude Code, Codex