Agent skill

Balanced Coupling

by nwiizo in nwiizo/cargo-coupling

Interpret cargo-coupling findings using Khononov's strength, distance, and volatility model.

MITAuto-check passedTesting & QA

Install Balanced Coupling

skills CLI
$ npx skills add nwiizo/cargo-coupling --skill balanced-coupling -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nwiizo/cargo-coupling balanced-coupling --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nwiizo/cargo-coupling.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/balanced-coupling .claude/skills/balanced-coupling && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
balanced-coupling
GitHub stars
111
Token cost
~516 tokens
SKILL.md length
212 words
Files
2
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Interpret cargo-coupling findings using Khononov's strength, distance, and volatility model.

  • Testing & QA work in your project
  • SKILL.md covers Qualitative Severity Table and Recognition Rules
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Balanced Coupling is an agent skill from nwiizo/cargo-coupling. Interpret cargo-coupling findings using Khononov's strength, distance, and volatility model.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `model-reference.md`).

It sits in Testing & QA. The repository describes itself as: A coupling analysis tool for Rust projects - measuring the 'right distance' in your code. The licence is MIT.

When your agent uses it

  • Testing & QA work in your project

Example prompts

  • “/balanced-coupling”

What it can do on your machine

Read from SKILL.md and the folder at commit aa0d18b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Balanced Coupling loads about 516 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 212 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~516

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nwiizo/cargo-coupling at commit aa0d18b, republished under its MIT licence (© nwiizo). 212 words, ~516 tokens.

Download SKILL.mdSave it as .claude/skills/balanced-coupling/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
balanced-coupling
description
Interpret cargo-coupling findings using Khononov's strength, distance, and volatility model.
user-invocable
false

Balanced Coupling Model

Use the model to judge the cost of coordinated change. It is a conceptual lens; exact detection conditions and reported severities come from the current source.

text
BALANCE = (STRENGTH XOR DISTANCE) OR NOT VOLATILITY

Qualitative Severity Table

PatternStrengthDistanceVolatilityInterpretation
High CohesionStrongCloseAnyUsually appropriate
Loose CouplingWeakFarAnyUsually appropriate
AcceptableStrongFarLowMinor concern
Global ComplexityStrongFarHighPrioritize investigation
Local ComplexityWeakCloseAnyCheck whether indirection helps

Recognition Rules

  • Where configured, subdomain volatility represents essential, business-driven change and governs scoring. Raw Git churn feeds accidental-volatility diagnostics; it must not manufacture cascading-change risk for a low-essential-volatility target.
  • Binary entrypoints normally have high fan-out and co-change with wired modules.
  • Crate-root re-export facades provide a stable interface; their consumers do not automatically depend on volatile implementation details.
  • High afferent coupling to a stable central abstraction can be good design.
  • Hidden Coupling is temporal co-change without an AST edge. Investigate shared rules or assumptions before diagnosing a defect.

Preserve these distinctions when reviewing or changing detectors. Keep history, thresholds, and subdomain settings comparable; never manipulate them to improve a grade. Include the analysis manifest when interpreting a clean report.

Read model-reference.md only for dimension definitions, subdomain reasoning, or connascence examples. For a particular detector, use explain-issue to locate the implementation.

© nwiizo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/balanced-coupling of nwiizo/cargo-coupling.

  • SKILL.md
  • model-reference.md

Open the folder on GitHubat commit aa0d18b

Compare with similar skills

Balanced Coupling next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Balanced Coupling compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Balanced Coupling this skillnwiizo/cargo-coupling111—~516Automated safety check: PassMIT
Web Application Testinganthropics/skills180k51 repos~966Automated safety check: PassApache-2.0
Diagnosing Bugsfossasia/eventyay-interpretation1.6k32 repos~2.1kAutomated safety check: PassApache-2.0
TDDpietheinstrengholt/rssmonster56430 repos~906Automated safety check: PassMIT
TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph11211 repos~2.4kAutomated safety check: PassNone
TDDsanity-io/sanity6.4k20 repos~1kAutomated safety check: PassMIT

Similar skills

  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed
  • Diagnosing Bugs

    fossasia/eventyay-interpretation

    Diagnosis loop for hard bugs and performance regressions. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 32 repos~2.1k tokens
    Testing & QAAuto-check passed
  • TDD

    pietheinstrengholt/rssmonster

    Test-driven development. An agent skill from pietheinstrengholt/rssmonster.

    564 GitHub starsUsed in 30 repos~906 tokens
    Testing & QAAuto-check passed
  • TDD Workflow

    hellangleZ/burn-in-cceverywhere-ralph

    A skill your agent uses when writing new features, fixing bugs, or refactoring code.

    112 GitHub starsUsed in 11 repos~2.4k tokens
    Testing & QAAuto-check passed
  • TDD

    sanity-io/sanity

    Official

    Test-driven development with red-green-refactor loop. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 20 repos~1k tokens
    Testing & QAAuto-check passed
  • Context Driven Development

    Ibrahim-3d/orchestrator-supaconductor

    A skill your agent uses when working with Conductor's context-driven development methodology, managing project context artifacts, or understanding the relationship between product.md, tech-stack.md…

    380 GitHub starsUsed in 9 repos~2.9k tokens
    Testing & QAAuto-check passed

More from nwiizo/cargo-coupling

All 12 skills in this repo
  • Cargo Coupling

    nwiizo/cargo-coupling

    Explain cargo-coupling CLI options and .coupling.toml configuration.

    111 GitHub stars~290 tokensUpdated today
    Auto-check passed
  • Release

    nwiizo/cargo-coupling

    Prepare or publish a cargo-coupling version when the user requests a release.

    111 GitHub stars~491 tokensUpdated today
    Auto-check passed
  • Analyze

    nwiizo/cargo-coupling

    Run cargo-coupling and interpret a Rust project's coupling report, history, or baseline diff.

    111 GitHub stars~354 tokensUpdated today
    Auto-check passed
  • Check Balance

    nwiizo/cargo-coupling

    Check a Rust project's coupling health summary or run a requested CI quality gate.

    111 GitHub stars~307 tokensUpdated today
    Auto-check passed
  • Hotspots

    nwiizo/cargo-coupling

    Rank a Rust project's refactoring candidates using cargo-coupling hotspot results.

    111 GitHub stars~260 tokensUpdated today
    Auto-check passed
  • Mutants

    nwiizo/cargo-coupling

    Run cargo-mutants on selected Rust code and investigate gaps in tests revealed by surviving mutations.

    111 GitHub stars~414 tokensUpdated today
    Auto-check: notes

Categories

Questions about Balanced Coupling

What does Balanced Coupling do?

Interpret cargo-coupling findings using Khononov's strength, distance, and volatility model. Balanced Coupling is an agent skill from nwiizo/cargo-coupling. Interpret cargo-coupling findings using Khononov's strength, distance, and volatility model.

When should I use Balanced Coupling?

Balanced Coupling fits situations like: testing & QA work in your project.

How do I install Balanced Coupling in Claude Code?

Run `npx skills add nwiizo/cargo-coupling --skill balanced-coupling -a claude-code`. Or copy the skill folder (.claude/skills/balanced-coupling in nwiizo/cargo-coupling) into .claude/skills/balanced-coupling in your project. Claude Code loads it when a task matches its description.

How do I install Balanced Coupling in Codex?

Run `npx skills add nwiizo/cargo-coupling --skill balanced-coupling -a codex`. Or copy the skill folder (.claude/skills/balanced-coupling in nwiizo/cargo-coupling) into .agents/skills/balanced-coupling in your project. Codex loads it when a task matches its description.

Can I use Balanced Coupling in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nwiizo/cargo-coupling --skill balanced-coupling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/balanced-coupling, .gemini/skills/balanced-coupling, .github/skills/balanced-coupling and .opencode/skills/balanced-coupling in your project.

What does Balanced Coupling need to run?

SKILL.md names no scripts, command-line tools or credentials: Balanced Coupling is instructions for the agent only.

Does Balanced Coupling access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Balanced Coupling safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Balanced Coupling use?

Balanced Coupling is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Balanced Coupling use?

About 516 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Balanced Coupling?

Skills that share tags, products or a category with Balanced Coupling: Web Application Testing (anthropics/skills, 180k stars), Diagnosing Bugs (fossasia/eventyay-interpretation, 1.6k stars), TDD (pietheinstrengholt/rssmonster, 564 stars) and TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Balanced Coupling?

nwiizo (a GitHub user) maintains it in nwiizo/cargo-coupling, which has 111 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 8, 2026.

Source: nwiizo/cargo-coupling on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.