Skills DirectoryCurated open-source Skills from GitHub

codebase-designcommit 7739eaeSKILL.md · Architecture

Codebase Design

Provides a shared vocabulary and principles for deep modules: lots of behaviour behind a small interface, at a clean seam, tested through it.

npx skills add mattpocock/skills --skill codebase-design
Permissions
  • read-repo
  • write-files
  • shell
  • network
Compatible with
Claude Code, Codex, Copilot, Gemini CLI
GitHub
308.7k
Source
Community · Matt Pocock
Status
Scan passed
License
MIT
Category
Architecture

Core rule

One adapter means a hypothetical seam, two adapters a real one: don't add a seam unless something actually varies across it.

Execution Phases

  1. Phase 01Use the shared glossary

    Use module, interface, implementation, depth, seam, adapter, leverage and locality exactly, never component, service or boundary.

  2. Phase 02Judge depth

    Apply the deletion test to spot pass-throughs, and ask whether methods can be fewer, parameters simpler and more complexity hidden.

  3. Phase 03Classify dependencies

    Sort dependencies into in-process, local-substitutable, remote but owned (ports and adapters) and true external (mock) to decide how to test across the seam.

  4. Phase 04Design it twice

    Spawn three or more sub-agents with different constraints to produce radically different interfaces, then compare on depth, locality and seam placement and recommend one.

Permissions (summarised from SKILL.md)

CapabilityNeededDetails
File writesNot requiredSupplies design vocabulary and compares options; the skill itself does not ask for files to be written.
Command executionNot requiredRuns no commands.
Network outboundNot requiredNo network access.

SKILL.md frontmatter (YAML)

SKILL.md frontmatter (YAML)commit 7739eae
---
name: codebase-design
description: Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
---

Related skills

A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.