Rob

All projects · GitHub · 한국어

seam-sense

Find shallow modules, put seams only where something varies, and test through the interface, with evidence for every verdict.

npx skills add robfold/seam-sense

English · 한국어

Formerly deep-modules.

Two skills for code design. seam-check gives the agent one exact vocabulary and four checks for judging a module, with evidence for every verdict. hotspot-survey finds the few places where deepening a module would make the next changes cheaper, shows them in an offline report, and walks the decisions for the one you pick.

  • Verdicts carry evidence. "Shallow" comes with file paths, callers, and tests, and every line is labelled confirmed, inferred, or unknown.
  • Seams only where something varies. Two adapters make a seam. One adapter is a hypothetical seam, and no port gets built for it.
  • Tests cross the seam callers cross. New interface tests must fail on broken behaviour before an old test they replace is deleted.
  • History picks the area. The survey ranks hotspots and change coupling from git log, not how ugly the code looks.
  • Nothing lands in your repository without consent. The report goes to the temp folder and loads nothing from outside; glossary and decision-record edits are proposals.
  • An empty report is a valid result. Three strong candidates beat twelve weak ones.

Shape

hotspot-survey   (you call it)
  scope by hotspots and change coupling
  → explore → deletion test → offline HTML report
  → you pick one → decision walk → summary read back
        │
        └─ uses seam-check: vocabulary, checks, dependency categories, design it twice
Reference Settles
vocabulary.md The exact words, the enabling point, and the kinds of seam
checks.md The four checks, the smells that point at shallow modules, shapes that test well
deepening.md Dependency categories, seam rules, merging, and replacing tests
design-it-twice.md Comparing radically different interfaces before choosing one
hotspots.md Change frequency, hotspots, change coupling, and surprise from git log
html-report.md The offline report: where it goes, the candidate card, the checks before opening
decision-walk.md One question per round, the closing summary, glossary and decision records

Each skill folder also holds SKILL.ko.md, the same skill in Korean for people to read. The agent loads SKILL.md.

Install

Claude Code:

/plugin marketplace add robfold/seam-sense
/plugin install seam-sense@seam-sense

Other agents, with the skills CLI:

npx skills add robfold/seam-sense

Or copy skills/seam-check/ and skills/hotspot-survey/ into your agent's skills folder (for Claude Code, ~/.claude/skills/). Install both: the survey uses the vocabulary and references in seam-check.

Use

Survey a codebase. It runs only when you call it: /hotspot-survey in Claude Code, $hotspot-survey in Codex.

/hotspot-survey Focus on the billing code. Show me the candidates before you change anything.

The survey:

  1. Scopes the scan to the area you named, or to hotspots and change coupling in the history.
  2. Reads the code, runs the deletion test on every suspect, and labels each candidate by its evidence.
  3. Writes an offline HTML report to the temp folder and asks which candidate to explore.
  4. Walks the design decisions one question at a time and reads the summary back before any code changes.

Judge one module. The agent may also load this on its own ($seam-check in Codex):

Is OrderService shallow? Show the callers and tests that support your answer.

Sources

The rules were checked against four books:

  • Michael Feathers, Working Effectively with Legacy Code
  • Martin Fowler, Refactoring, 2nd ed.
  • Eric Evans, Domain-Driven Design
  • Adam Tornhill, Software Design X-Rays

Redesigned from Matt Pocock's MIT project mattpocock/skills (codebase-design, improve-codebase-architecture). The wording is new. seam-check sources and hotspot-survey sources list the sections read, which rules came from something that happened, and which were set in advance.

License

MIT. Copyright (c) 2026 Matt Pocock. Copyright (c) 2026 Rob.

Get the next fix when it ships.

I email you when a new skill is ready. Unsubscribe any time.