coupling-cohesion SKILL.md skillA

coupling-cohesion from fabiandistler/agents is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add fabiandistler/agents/coupling-cohesion@git:20261022.e7a86a8

Pins git:20261022.e7a86a8 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
fabiandistler/agents
Path
skills/coupling-cohesion/SKILL.md
Versions recorded
5
Latest version
git:20261022.e7a86a8, committed Oct 22, 2026
First version recorded
Oct 12, 2026
Size
3,865 bytes
Repository stars
2
License
none declared

Assesses existing code for module cohesion and LCOM, codebase-wide coupling metrics and zones, or the balance of one dependency (Khononov). Use when measuring cohesion, coupling, or dependency balance.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Coupling & Cohesion

"High cohesion, low coupling" is the meta-principle most design rules reduce to.
This skill **measures existing code** along both axes and picks the right lens
for the question in front of you:

| Mode | The question | Open |
|---|---|---|
| **A. Cohesion** | Do this module/class/file's parts belong together — split, merge, or leave? | [references/mode-a-cohesion.md](references/mode-a-cohesion.md) |
| **B. Codebase coupling** | How coupled / brittle / over-abstracted is the codebase, by the numbers? | [references/mode-b-coupling-metrics.md](references/mode-b-coupling-metrics.md) |
| **C. Balanced coupling** | Is this *one specific* dependency the right kind of coupling for its boundary? | [references/mode-c-balanced-coupling.md](references/mode-c-balanced-coupling.md) |

Pick the mode from the question, then open only that mode's file: it holds
the workflow, the output template, and the common mistakes. Open a second
mode file only when the answer needs it — for example, a Mode B hotspot
whose one suspicious dependency you then weigh with Mode C. Script paths in
the mode files are relative to this skill's directory.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add fabiandistler/agents/coupling-cohesion@sha256:642cc91fc9bb808c

The line at the top of this page pins the label git:20261022.e7a86a8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_nv6t2yc343lat55s.svg)](https://markdownregistry.com/a/art_nv6t2yc343lat55s)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Oct 12, 2026 and Oct 22, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261022.e7a86a8 latest2026-10-22 e7a86a8 3,865 BA view · diff
git:20261022.89582092026-10-22 8958209 3,842 BA view · diff
git:20261021.423e4ea2026-10-21 423e4ea 23,008 BA view · diff
git:20261019.b3c7d902026-10-19 b3c7d90 22,995 BA view · diff
git:20261012.125220f2026-10-12 125220f 22,783 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3865 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

fabiandistler/agents · 2 stars · license none declared · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_nv6t2yc343lat55s
GET https://markdownregistry.com/api/v1/resolve?ref=fabiandistler/agents/coupling-cohesion
GET https://markdownregistry.com/api/v1/blob/642cc91fc9bb808c502c394f7b6d0ebac4d208f3bacf08f6e1eb8b4e8ac87c2a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from fabiandistler/agents

chief-of-staff SKILL.md skill
fabiandistler/agents · .claude/skills/chief-of-staff/SKILL.md · Pursue a long-running goal in a single session by co-ordinating subagents.
git:20261020.384aec7 · audit A · 2 stars
code-review SKILL.md skill
fabiandistler/agents · .claude/skills/code-review/SKILL.md · Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code…
git:20261013.8a329a6 · audit A · 2 stars
codebase-design SKILL.md skill
fabiandistler/agents · .claude/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260930.0a9e31d · audit A · 2 stars
diagnosing-bugs SKILL.md skill
fabiandistler/agents · .claude/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
git:20261013.8a329a6 · audit A · 2 stars
domain-modeling SKILL.md skill
fabiandistler/agents · .claude/skills/domain-modeling/SKILL.md · Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md…
git:20260930.0a9e31d · audit A · 2 stars
grill-me SKILL.md skill
fabiandistler/agents · .claude/skills/grill-me/SKILL.md · A relentless interview to sharpen a plan or design.
git:20260930.0a9e31d · audit B · 2 stars
grill-with-docs SKILL.md skill
fabiandistler/agents · .claude/skills/grill-with-docs/SKILL.md · A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
git:20260930.0a9e31d · audit A · 2 stars
grilling SKILL.md skill
fabiandistler/agents · .claude/skills/grilling/SKILL.md · Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or…
git:20261013.8a329a6 · audit A · 2 stars
handoff SKILL.md skill
fabiandistler/agents · .claude/skills/handoff/SKILL.md · Compact the current conversation into a handoff document for another agent to pick up.
git:20261013.8a329a6 · audit A · 2 stars
implement-spec SKILL.md skill
fabiandistler/agents · .claude/skills/implement-spec/SKILL.md · Implement the result of /to-spec and /to-tickets in code.
git:20260930.0a9e31d · audit A · 2 stars
implement SKILL.md skill
fabiandistler/agents · .claude/skills/implement/SKILL.md · Implement a piece of work based on a spec or set of tickets.
git:20261013.8a329a6 · audit A · 2 stars
pr SKILL.md skill
fabiandistler/agents · .claude/skills/pr/SKILL.md · Use when writing a PR body.
git:20260930.0a9e31d · audit A · 2 stars

Every file in fabiandistler/agents

Browse by kind, by grade A, or by owner.