design-deep-modules SKILL.md skillA

This file is byte-identical to the first copy the registry indexed, one of 3 indexed copies. Same content hash, so the same checks give both the same grade.

design-deep-modules from theonly1me/shadowclone is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add theonly1me/shadowclone/design-deep-modules@git:20261004.6f9e0d4

Pins git:20261004.6f9e0d4 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
theonly1me/shadowclone
Path
skills/design-deep-modules/SKILL.md
Versions recorded
4
Latest version
git:20261004.6f9e0d4, committed Oct 4, 2026
First version recorded
Sep 9, 2026
Size
3,025 bytes
Repository stars
21
License
MIT

Use when designing or reshaping a module, or when callers coordinate too many steps. Also use it when the user says "this is hard to test", "callers know too much", or "simplify this interface". Puts related state and decisions behind a small interface that states what the caller wants. Tests then use that interface instead of the internal steps. Not for typing values at a boundary (use `typescript-type-safety`).

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

# Design Deep Modules

## Use when

Callers repeat the same sequence of calls, a layer only forwards arguments, or tests must reach through layers to see behavior. A deep module gives callers a lot of behavior through a small interface.

## Gates

1. Can each caller state its intent in one call, without knowing the internal order of steps?
2. Does one owner hold each piece of related state and each decision about it?
3. Does each new layer serve a real variation or isolation need, not only forwarding?
4. Do the tests use the public interface, and replace dependencies only at outside boundaries?
5. Are the invariants and the error behavior part of the interface contract?

## Process

1. Read the callers. List the state, the order of steps, and the rules that they coordinate.
2. Put that state and those decisions under one owner. Name an operation for what the caller wants.
3. If the boundary is not clear, compare two placements by caller effort, error handling, and test effort.
4. Move the internal order of steps behind the interface.
5. Remove each layer that only forwards calls.
6. Write tests against the new interface, then remove the knowledge that callers no longer need.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add theonly1me/shadowclone/design-deep-modules@sha256:62c3e80be5092580

The line at the top of this page pins the label git:20261004.6f9e0d4, 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_x5okth7i5rqbdisb.svg)](https://markdownregistry.com/a/art_x5okth7i5rqbdisb)

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

Versions

The registry has recorded 4 versions of this file, between Sep 9, 2026 and Oct 4, 2026, about one every 8 days.

versioncommittedcommitsizeaudit
git:20261004.6f9e0d4 latest2026-10-04 6f9e0d4 3,025 BA view · diff
git:20261003.b2236f62026-10-03 b2236f6 2,058 BA view · diff
git:20260927.d9cf2112026-09-27 d9cf211 1,779 BA view · diff
git:20260909.ac8ab3f2026-09-09 ac8ab3f 2,840 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 (3025 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

theonly1me/shadowclone · 21 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_x5okth7i5rqbdisb
GET https://markdownregistry.com/api/v1/resolve?ref=theonly1me/shadowclone/design-deep-modules
GET https://markdownregistry.com/api/v1/blob/62c3e80be509258024d7e93928305dec7ae7dbe4366e5c1ed88d17e56f20bdbe

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 theonly1me/shadowclone

choose-by-consequence SKILL.md skill
theonly1me/shadowclone · .agents/skills/choose-by-consequence/SKILL.md · Use when code must decide what happens on an unusual or failing path. Also use it when the user says "just handle that…
git:20261009.95ca1ef · audit A · 21 stars
design-deep-modules SKILL.md skill
theonly1me/shadowclone · .agents/skills/design-deep-modules/SKILL.md · Use when designing or reshaping a module, or when callers coordinate too many steps. Also use it when the user says…
git:20261009.95ca1ef · audit A · 21 stars
diagnose-before-editing SKILL.md skill
theonly1me/shadowclone · .agents/skills/diagnose-before-editing/SKILL.md · Use when behavior fails, flakes, or slows down, and nobody knows the cause yet. Also use it when the user says "why…
git:20261009.95ca1ef · audit A · 21 stars
plan-with-review-page SKILL.md skill
theonly1me/shadowclone · .agents/skills/plan-with-review-page/SKILL.md · Use before a change that touches many files, needs many steps, or has open design choices. Also use it when the user…
git:20261009.95ca1ef · audit A · 21 stars
research-primary-sources SKILL.md skill
theonly1me/shadowclone · .agents/skills/research-primary-sources/SKILL.md · Use when a decision depends on how a library, platform, protocol, or tool behaves, and that behavior can change by…
git:20261009.95ca1ef · audit A · 21 stars
resolve-conflicts-by-intent SKILL.md skill
theonly1me/shadowclone · .agents/skills/resolve-conflicts-by-intent/SKILL.md · Use when Git reports conflicts during a merge, a rebase, or a cherry-pick. Also use it when the user says "fix the…
git:20261009.95ca1ef · audit A · 21 stars
scope-confirmed-changes SKILL.md skill
theonly1me/shadowclone · .agents/skills/scope-confirmed-changes/SKILL.md · Use when fixing a bug, a regression, or a confirmed review finding. Also use it when the user says "fix this bug", "it…
git:20261019.61ac16e · audit A · 21 stars
shadowclone-build-preferences SKILL.md skill
theonly1me/shadowclone · .agents/skills/shadowclone-build-preferences/SKILL.md · Read before acting for the selected working preferences.
git:20261009.95ca1ef · audit A · 21 stars
shadowclone-review SKILL.md skill
theonly1me/shadowclone · .agents/skills/shadowclone-review/SKILL.md · Use when the user asks for a review of a pull request, or when a review packet from `shadowclone review` arrives. Also…
git:20261012.64bdf7d · audit A · 21 stars
shadowclone-work SKILL.md skill
theonly1me/shadowclone · .agents/skills/shadowclone-work/SKILL.md · Use when the user asks to implement a change and open a pull request, or to get a pull request ready to merge. Also use…
git:20261018.7be4fab · audit A · 21 stars
tests-that-catch-bugs SKILL.md skill
theonly1me/shadowclone · .agents/skills/tests-that-catch-bugs/SKILL.md · Use when adding, changing, or reviewing tests. Also use it when the user says "add a regression test", "write the test…
git:20261009.95ca1ef · audit A · 21 stars
typescript-type-safety SKILL.md skill
theonly1me/shadowclone · .agents/skills/typescript-type-safety/SKILL.md · Use when changing TypeScript types, parsing input that enters typed code, or removing unsafe casts. Also use it when…
git:20261009.95ca1ef · audit A · 21 stars

Every file in theonly1me/shadowclone

Other files named design-deep-modules

design-deep-modules SKILL.md skill
theonly1me/shadowclone · .agents/skills/design-deep-modules/SKILL.md · Use when designing or reshaping a module, or when callers coordinate too many steps. Also use it when the user says…
git:20261009.95ca1ef · audit A · 21 stars
design-deep-modules SKILL.md skill
theonly1me/shadowclone · .claude/skills/design-deep-modules/SKILL.md · Use when designing or reshaping a module, or when callers coordinate too many steps. Also use it when the user says…
git:20261009.95ca1ef · audit A · 21 stars

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