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.
git clone --depth 1 https://github.com/luongnv89/skillsWrote 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.
[](https://agentmods.dev/agents/luongnv89/skills/circular-dep-untangler)<a href="https://agentmods.dev/agents/luongnv89/skills/circular-dep-untangler"><img src="https://agentmods.dev/badge/agents/luongnv89/skills/circular-dep-untangler/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.
<a href="https://agentmods.dev/agents/luongnv89/skills/circular-dep-untangler"><img src="https://agentmods.dev/badge/agents/luongnv89/skills/circular-dep-untangler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00997 |
| Opus 5.5 | $0.00008 | $0.00399 |
| Sonnet 5.5 | $0.00004 | $0.00199 |
| Haiku 4.5 | $0.00002 | $0.00100 |
Grade A, and why
circular-dep-untangler 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Circular Dependency Untangler Subagent
Find cycles in the import/dependency graph and break them with minimal intrusive changes. Cycles cause subtle bugs (partial initialization, ordering issues, test isolation failures) and block clean module boundaries.
Input
{
"repo_path": "/abs/path",
"stack": {"language": "ts|py|go|rust|java|...", "typecheck_cmd": "..."},
"output_report": ".slop-cleanup/wave-1/circular-dep-untangler.md"
}
Tools (pick per stack)
- TS/JS:
madge --circular src/(primary);dependency-cruiserfor richer rules - Python:
pylintcyclic-import check;pydepsfor visualization;importlab - Go: cycles are compile errors — this category is mostly moot; still check
internal/boundary violations - Rust: cycles blocked at module level; check crate-level with
cargo-modules - Java: JDeps, ArchUnit rules
If no tool is available, fall back to building the import graph with grep + a simple tarjan's SCC walker. It's slower but reliable.
The Five Break Strategies
When you find a cycle, apply the first viable strategy:
-
Extract shared types. If
A.tsandB.tsimport each other for type definitions, move those types toshared/types.ts. Both import from shared; the cycle dies. This is the most common and cleanest fix. -
Invert the dependency. If high-level
orchestratorimports low-levelstore, andstoreimportsorchestratorfor a callback type, define the callback interface instoreand haveorchestratorimplement it. Low-level modules should not know about high-level ones. -
Extract the shared computation. If two modules call into each other to complete one logical flow, extract that flow into a third module that both depend on.
-
Delete the weaker edge. If the cycle exists only because someone added a convenience import for a single utility, copy the three-line utility or inline it. Small duplication beats a cycle.
-
Merge the modules. If two files are so tightly coupled they always change together, they should be one file. Merge them and the cycle disappears.
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.
- 12d ago Changed · +1 lines 344fa97ef001
- 13d ago Changed 3cc325cf441e
- 3mo ago First seen · 89 lines · 20 tokens per session scan A 5fa49e0a4c63
circular-dep-untangler is an agent published in the GitHub repository luongnv89/skills (149 stars, last pushed 4d ago), licensed MIT. It adds 20 tokens to every session and 997 once invoked, about $0.0001 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-08-30.
circular-dep-untangler compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| circular-dep-untanglerluongnv89/skills | Agent | 149 | 4d ago | MIT | A | 20 | Claude Code |
| contrarianmicrosoft/win-dev-skills | Agent | 521 | 13d ago | MIT | A | 29 | Claude Code |
| diagnosticianmicrosoft/win-dev-skills | Agent | 521 | 13d ago | MIT | A | 31 | Claude Code |
| cf-explorerdinhanhthi/coding-friend | Agent | 4 | 12d ago | MIT | A | 213 | Claude Code |
| crash-analyzerhyperb1iss/hyperdroid-skill | Agent | 62 | 10mo ago | MIT | A | 64 | Claude Code |
| generator-fix-worker-agentredker56/auto-harness | Agent | 15 | 7mo ago | MIT | A | 24 | Claude Code |
| security-performance-auditoreunomia-bpf/agentsight | Agent | 809 | yesterday | MIT | A | 0 | Claude Code |