coupling-analysis

Analyzes module coupling using strength, distance, and volatility dimensions from Khononov's model.

Updated Sep 15, 2026
One-click install
npx skills add https://github.com/Peterson-Benhame/agent-skills --skill coupling-analysis-peterson-benhame
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coupling-analysis
Source: https://github.com/Peterson-Benhame/agent-skills/tree/main/packages/skills-catalog/skills/%28architecture%29/coupling-analysis
Command: npx skills add https://github.com/Peterson-Benhame/agent-skills --skill coupling-analysis-peterson-benhame

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It diagnoses problematic dependencies between modules, services, and packages by classifying coupling along three dimensions, revealing why changes cascade unexpectedly and which integrations block architectural evolution. ## Core Features & Use Cases - Three-Dimensional Coupling Model: Classifies each dependency by integration strength (intrusive, functional, model, contract), physical distance, and volatility to compute a maintenance effort score. - Dependency Graph Mapping: Builds an annotated directed graph of modules and their coupling types, including detection of symmetric functional coupling from duplicated business logic. - Prioritized Remediation Report: Produces an executive summary, severity-ranked issues with code evidence, positive patterns, and prioritized refactoring recommendations. - Use Case: Ask it to analyze why changing a pricing rule requires deploying three microservices; it identifies symmetric functional coupling across distant, volatile modules and recommends extracting shared logic behind a contract. ## Quick Start Analyze the coupling between the modules in this repository and produce a report of critical dependencies with recommendations.

Frequently Asked Questions about coupling-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze coupling between modules in a codebase?

Map modules and their dependencies into a directed graph, then classify each dependency by integration strength, distance, and volatility. The balance formula STRENGTH × DISTANCE × VOLATILITY estimates maintenance effort for each coupled pair.

What is the difference between model coupling and contract coupling?

Model coupling occurs when an upstream module exposes its internal domain model directly, forcing consumers to know internal fields and types. Contract coupling uses dedicated integration DTOs designed for consumers, which is the weakest and preferred form.

How does git history help measure module volatility?

Running git log over the last six months reveals which files change most frequently and which files change together. High co-change frequency indicates hidden functional coupling, while core subdomain files typically show the highest volatility.

When should I not use coupling analysis?

Do not use it for domain boundary analysis or component sizing, which require different techniques. It also cannot detect dynamic connascence such as timing or identity without runtime observation, and organizational distance requires team context input.

What is symmetric functional coupling and why is it hard to detect?

Symmetric functional coupling is the same business logic duplicated across modules that must stay synchronized, even when the modules never reference each other in code. Static analysis tools generally miss it because detection requires semantic reading of the duplicated rules.