Skip to content
Back to skills

Analyzing Connascence

ASecurity

Use when code feels too tightly coupled and the user wants to know how strong the coupling is, how to loosen it, or whether a module is cohesive. Triggers on connascence, coupling vs cohesion, decouple, 'too tightly coupled', Law of Demeter, train wrecks like a.b().c(), positional vs named parameters, or a module boundary that leaks, even when the user doesn't say 'connascence' and only says 'tightly coupled'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill analyzing-connascence --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyzing Connascence?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyzing Connascence
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-analyzing-connascence/badge)](https://www.skillsdirectory.com/skills/xonovex-analyzing-connascence)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyzing-connascence
description: "Use when code feels too tightly coupled and the user wants to know how strong the coupling is, how to loosen it, or whether a module is cohesive. Triggers on connascence, coupling vs cohesion, decouple, 'too tightly coupled', Law of Demeter, train wrecks like a.b().c(), positional vs named parameters, or a module boundary that leaks, even when the user doesn't say 'connascence' and only says 'tightly coupled'."
---

# Connascence: a Precise Coupling Vocabulary

Grade a seam by naming its worst coupling and its strongest connascence, then weaken or localize it: "tight/loose" is unactionable.

## Essentials

- **Name the connascence, don't say "tight"** - classify the form and rate strength/locality/degree, see [references/connascence.md](references/connascence.md)
- **Two moves: weaken and localize** - rule of degree (strong→weak forms) and rule of locality (distance→weakness), see [references/connascence.md](references/connascence.md)
- **Push every seam down the coupling ladder** - content→common→control→stamp→data, worst to best, see [references/coupling-ladder.md](references/coupling-ladder.md)
- **Aim for functional cohesion** - one job per module; temporal cohesion is the package-by-layer trap, see [references/cohesion-ladder.md](references/cohesion-ladder.md)
- **Don't reach through strangers** - Law of Demeter as the call-site detector for content coupling, see [references/law-of-demeter.md](references/law-of-demeter.md)

## Gotchas

- "Tightly coupled" is not actionable: name the connascence form and the coupling rung, then you know the fix.
- Strong connascence is fine _inside_ one module; it's only a problem _across_ a boundary (rule of locality).
- Law of Demeter is a heuristic, not a law: pure data pipelines are a deliberate exception; it targets reaching through a stranger to depend on or mutate its internals.
- Coupling and cohesion trade off: splitting a module to "loosen coupling" can shred its cohesion; grade both before cutting.

## Example

```text
SEAM   a billing function reaches into an Order's private `total` field
GRADE  content coupling (reaches internals) + connascence of meaning across a boundary
FIX    Order exposes a neutral `amountDue()` value (rule of degree → data coupling);
       billing reads the value: agreement is now named, local, and weak
```

## Progressive Disclosure

- Read [references/connascence.md](references/connascence.md) - Load when classifying a coupling (static/dynamic forms, strength/locality/degree, the two rules)
- Read [references/coupling-ladder.md](references/coupling-ladder.md) - Load when grading or improving a seam by the content→data ladder
- Read [references/cohesion-ladder.md](references/cohesion-ladder.md) - Load when judging whether a module's parts belong together, or spotting temporal cohesion
- Read [references/law-of-demeter.md](references/law-of-demeter.md) - Load when a call site reaches through returned objects (train wrecks)

Files in this skill

  • SKILL.md2.9 KB
  • eval-output.json3.6 KB
  • eval-trigger.json5.1 KB
  • moon.yml86 B
  • references/cohesion-ladder.md1.8 KB
  • references/connascence.md2.6 KB
  • references/coupling-ladder.md1.8 KB
  • references/law-of-demeter.md1.3 KB
  • sources.json3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.