本文へスキップ
Kitbay
掲載依頼
スキル

codebase-design

MIT2026年11月9日 更新321,493GitHubスター

A skill from Matt Pocock's collection that gives an agent a shared vocabulary for designing deep modules: a lot of behaviour behind a small interface, placed at a clean seam and tested through that interface.

スキルの内容

A skill from Matt Pocock's collection that gives an agent a shared vocabulary for designing deep modules: a lot of behaviour behind a small interface, placed at a clean seam and tested through that interface. It defines module, interface, implementation, adapter, depth, seam, leverage and locality, and asks the agent to avoid looser words such as component or service. It offers a deletion test for pass-through modules, says tests should cross the same seam callers use, and suggests fewer methods, simpler parameters and injected dependencies. Two linked files cover deepening a cluster of code and designing an interface twice with parallel sub-agents. It has no scripts.

できること

  • Find opportunities to deepen shallow modules
  • Decide where a seam and interface belong
  • Make code easier to test through its interface
  • Compare alternative interfaces with parallel sub-agents