claude-vibe-squad: Skill for Claude Code

.agents/skills/dependency-cycle-audit/SKILL.md

dependency-cycle-audit is a skill for Claude Code, Codex from mtarcure/claude-vibe-squad. It costs 61 tokens per session (1,260 once invoked), scanned A, original, MIT.

An audit of dependencies between modules, packages, or build components to find circular chains. A dependency cycle occurs when components eventually depend on one another.

In plain words
What is it for?
Use it to map the dependency graph, group related cycles, choose dependencies to remove, and add a check that prevents new cycles.
Why use it?
Cycles can cause load-order errors, unnecessary rebuilding, and complications when extracting code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is mtarcure/claude-vibe-squad's own configuration. It tells Claude Code and Codex how to work on claude-vibe-squad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-vibe-squad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mtarcure/claude-vibe-squad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mtarcure/claude-vibe-squad/main/.agents/skills/dependency-cycle-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad

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 dependency-cycle-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/dependency-cycle-audit/github.svg)](https://agentmods.dev/skills/mtarcure/claude-vibe-squad/dependency-cycle-audit)
Your own site
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/dependency-cycle-audit"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/dependency-cycle-audit/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 dependency-cycle-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/dependency-cycle-audit"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/dependency-cycle-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,260 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.01260
Opus 5 $0.00030 $0.00630
Sonnet 5 $0.00012 $0.00252
Haiku 4.5 $0.00006 $0.00126

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

Security

Grade A, and why

dependency-cycle-audit 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 10d 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.

.agents/skills/dependency-cycle-audit/SKILL.md · 55 lines

How it starts

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

Dependency Cycle Audit

Find every dependency cycle at the granularity the build or loader actually enforces, rank the cycle clusters by blast radius, and break each with the cheapest cut that removes the coupling instead of hiding it.

When to use

  • Before approving an architecture change, module split, or extraction of a shared library.
  • When builds rebuild "everything" on small changes, tests cannot run in isolation, or imports fail depending on load order.
  • After a refactor that moved code between modules — cycles regrow silently.

Inputs

  • The codebase at a fixed revision, and its dependency ground truth: import statements, build-file dependency declarations, package manifests, linker inputs — never a diagram or a doc.
  • The enforcement level to audit at: package, module, file, or build target.

Steps

  1. Fix the granularity first. A cycle visible at file level may be legal inside one package, while a package-level cycle breaks the build; audit at the level the toolchain enforces, and say which level you chose.
  2. Extract the edge list from ground truth. Use an import-graph or build-graph extractor for the ecosystem (a dependency-graph tool category exists for every major toolchain: import-graph analyzers, build-graph query commands, module-dependency linters); where none is at hand, grep the import forms directly. Record the extraction command so the audit is repeatable.
  3. Compute strongly-connected components (Tarjan or Kosaraju; any graph library, or a short script over the edge list). Every SCC with more than one node is a cycle cluster. Enumerate all of them — do not stop at the first cycle found; cycles cluster, and the count is the honest baseline.
  4. Characterize each cluster: which edges close the cycle, each edge's weight (distinct symbols imported across it), and whether the edge is load-bearing (core call path) or incidental (one type reference, a convenience re-export, a leftover import).
  5. Rank clusters by blast radius: fan-in of the cluster's members times the churn of its files (git log frequency). High fan-in, high-churn cycles invalidate the most builds and tests — break those first; a stable low-fan-in cycle may be acceptable, documented, for now.
  6. Choose the break per edge, preferring the cut that removes the fewest, lightest edges (an approximation of the minimum feedback edge set):
    • Delete incidental edges — unused imports and convenience re-exports just go.
    • Re-home a misplaced piece — often one function or type sits in the wrong module and carries the whole back-edge.
    • Extract a shared kernel — move the types both sides need into a new leaf module both depend on.
    • Invert a genuine mutual dependency — the lower module defines an interface/protocol/callback; the higher module implements and injects it.
  7. Re-extract the graph and recompute SCCs after each break. The cluster must dissolve, and no new cycle may appear — inversion done carelessly can relocate a cycle rather than remove it.
  8. Guard the result: add a CI assertion at the audited granularity (an import-contract linter rule, a build-graph acyclicity check) so the cycle cannot regrow unnoticed.

Read the full file on GitHub · 55 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. 10d ago First seen · 55 lines · 61 tokens per session scan A dbd3c714f469

Subscribe to this mod's changes

dependency-cycle-audit is a skill published in the GitHub repository mtarcure/claude-vibe-squad (122 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 1,260 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories