coupling-map

coupling-map is a skill for Claude Code, Codex from dayvisonassis/sdd-skills. It costs 120 tokens per session (2,324 once invoked), scanned A, original, MIT.

A codebase analysis tool that identifies files which are both large or complex and relied on by many other parts of the system.

In plain words
What is it for?
Use it to produce an HTML report showing where to refactor first, after the project has been inspected and configured.
Why use it?
It helps reveal which refactors are most likely to reduce system-wide risk, without blocking builds or changing project files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to produce an HTML report showing where to refactor first…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dayvisonassis/sdd-skills/coupling-map
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 dayvisonassis/sdd-skills --skill coupling-map
Clone the repo
git clone --depth 1 https://github.com/dayvisonassis/sdd-skills

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 coupling-map

README.md
[![agentmods](https://agentmods.dev/badge/skills/dayvisonassis/sdd-skills/coupling-map.svg)](https://agentmods.dev/skills/dayvisonassis/sdd-skills/coupling-map)
Your own site
<a href="https://agentmods.dev/skills/dayvisonassis/sdd-skills/coupling-map"><img src="https://agentmods.dev/badge/skills/dayvisonassis/sdd-skills/coupling-map.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,324 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.00120 $0.02324
Opus 5 $0.00060 $0.01162
Sonnet 5 $0.00024 $0.00465
Haiku 4.5 $0.00012 $0.00232

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

Security

Grade A, and why

coupling-map 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.

The scan reads SKILL.md. This mod also ships 16 executable files (scripts/arch-report.mjs, scripts/coupling-map/collect.mjs, scripts/coupling-map/declared.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/coupling-map/SKILL.md · 210 lines

How it starts

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

Coupling Map

Answers one operational question: which files should be refactored first to reduce systemic risk. A file qualifies when both conditions hold — it does too much, and enough of the system depends on it that breaking it breaks several other parts.

The output is a standalone HTML report. It is diagnostic, not a gate: it fails no build and blocks no commit.

References, loaded on demand, all of which travel with this skill: references/config-schema.md (every field of arch.config.json), references/report-contract.md (the shape of architecture.json), references/calibrating-cuts.md (deriving thresholds for a new codebase), references/rejected-metrics.md (read before proposing any metric or axis).

The full design argument lives in docs/Skill_Coupling_Map.md of the sdd-skills repository, which is not part of an installed copy. Everything needed to run is in the folder you are reading.

The point of the split is cost. The model inspects the tree exactly once, to write a config of about thirty lines. From then on it reads a single JSON file. On the codebase this was built against that is one file instead of 959, and the numbers are identical either way because the script computed them, not the model.

INPUT

Nothing required. Optionally a path to scope the run, --config / --out to override locations, and --open to launch the finished report in the default browser.

OUTPUT

  • architecture-report/index.html — the report, opened straight from disk. The script prints it as an absolute file:// URL, which most terminals turn into a link and which pastes into a browser as-is. Hand that link to the reader; a relative path leaves them working out where the file went.
  • architecture-report/architecture.json — the data, and the only file this skill reads on later runs
  • A short spoken summary: the queue, what moved since the previous run, and what needs a human

PHASE 1 — Preflight

Three checks, in this order. All three passing means skip straight to Phase 3.

Read the full file on GitHub · 210 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. 6d ago First seen · 210 lines · 120 tokens per session scan A 52c346979e2b

Subscribe to this mod's changes

coupling-map is a skill published in the GitHub repository dayvisonassis/sdd-skills (1 stars, last pushed 10d ago), licensed MIT. It adds 120 tokens to every session and 2,324 once invoked, about $0.0006 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-08-31.

Related

Other skills, from other repositories

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

polish-code

Stage, format, lint, test, review, smoke test, and re-run itself until stable. Use when the user asks to "polish code", "refine code", "iterate on code quality", "review loop", "clean up, test, and review loop", or "run the polish loop".

tobihagemann/turbo · 67 tokens

simplify-code

Run a multi-agent review of changed files for scope, reuse, quality, efficiency, clarity, and altitude issues followed by fixes. Use when the user asks to "simplify code", "review changed code", "check for code reuse", "review code quality", "review efficiency", "simplify changes", "clean up code", "refactor changes"…

tobihagemann/turbo · 81 tokens

java-code-review

Review Java code for bugs, duplicate code, correctness risks, maintainability improvements, and missing tests. By default review files modified in git; when the user explicitly names files, classes, packages, or a diff, review that scope instead. Generate a detailed review.md report with actionable comments and fixes.

sivaprasadreddy/sivalabs-agent-skills · 64 tokens

reasoning-semiformally

Apply semi-formal certificate reasoning to code analysis — patch verification, fault localization, patch equivalence. Use when reviewing patches, hunting bugs across scopes, comparing fixes, or when code reasoning requires tracing execution across files/modules. Triggers on code review, bug localization, patch…

oaustegard/claude-skills · 72 tokens

code-remediate

Apply selected review fixes; bare PR targets use current online items, while PR +review adds the latest matching artifact.

Borda/AI-Rig · 28 tokens