SkillsReviewed · Matt Pocock

Codebase Design

Codebase Design is an AI coding skill for developers simplifying module interfaces, but its strict vocabulary and advice to replace older tests require project-specific judgment. It explains how to hide substantial behavior behind a small interface, choose dependency strategies and compare alternative designs using parallel agents.

Researched 12 Nov 2026

In short.

Codebase Design is an instruction skill for developers using AI assistants to improve code structure, but its opinionated design rules have no demonstrated project results in the supplied files. It defines a module's interface as everything callers must understand, including ordering, errors, configuration and performance. Supporting guides connect dependency types to testing strategies and describe an optional comparison using at least three parallel agents. Host compatibility, generated design quality and actual refactoring outcomes remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected codebase-design folder at commit 5863806dd4e15c63174bee4e7515a4256792ecfa: SKILL.md, DEEPENING.md, DESIGN-IT-TWICE.md and agents/openai.yaml. The repository LICENSE is included as the related notice. Other folders and linked material outside these captured files are excluded, including the referenced GLOSSARY.md and original works cited as inspiration. Nothing was executed; installation, agent orchestration, generated designs, test migration, remote integrations and project outcomes remain unassessed.

The overview

Identity

Codebase Design is the codebase-design skill in Matt Pocock's skills repository. The selected folder contains SKILL.md, DEEPENING.md, DESIGN-IT-TWICE.md and agents/openai.yaml. The YAML supplies the display name Codebase Design and a short description about deep module vocabulary.

The original source address is [https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design]. The repository licence names Matt Pocock as the copyright holder.

Assessment

The strongest practical feature is its treatment of an interface as the complete set of caller obligations. A function with few parameters can still be difficult to use if callers must understand hidden ordering rules, configuration or failure behavior. This gives developers a concrete way to examine whether a proposed simplification actually removes work from callers.

The skill is useful as a structured design review aid. Its recommendations are architectural arguments supported by examples; the supplied files provide no measured reduction in defects, development time or maintenance effort.

Users

The skill targets developers designing interfaces, consolidating shallow modules, improving testability or helping coding assistants navigate code. Experienced developers can use its dependency categories and comparison criteria during refactoring discussions.

Beginners receive definitions and short TypeScript examples, but may need help understanding dependency injection, test doubles and networked systems. The material assumes a codebase and a design problem rather than teaching programming from the beginning.

Capabilities

The main skill supplies interface simplification questions, a thought experiment about deleting a module to reveal where complexity would move, and guidance on testing observable behavior through the interface. DEEPENING.md adds four dependency categories and corresponding strategies for direct tests, local substitutes, injected adapters or mocks.

DESIGN-IT-TWICE.md describes an optional comparison using at least three parallel agents. Each receives a different constraint: minimize the interface, maximize flexibility or optimize the common caller. An optional fourth design focuses on ports and adapters. Outputs include interface details, usage, hidden implementation responsibilities, dependency strategy and trade-offs.

Using it

Requirements

Automatic use requires an assistant environment capable of loading these instructions. Supported hosts, model versions, installation commands and minimum hardware requirements are not specified. The TypeScript snippets illustrate design principles; they do not establish a TypeScript requirement.

The alternative-design exercise requires at least three parallel agents with fresh contexts and technical briefs containing project paths, coupling details and dependency categories. It also references project vocabulary from GLOSSARY.md. That file is outside the supplied selected files, so its availability and contents are unknown.

Mechanism

A module can be a function, class, package or larger slice of a system. A deep module provides substantial useful behavior through an interface that is comparatively easy to understand. Depth means capability relative to what callers must learn, rather than a ratio of implementation lines to interface lines. A seam is a place where behavior can be altered without editing in that place, the location where a module's interface lives. An adapter is a concrete thing that satisfies an interface at a seam; the term describes the role it fills, not what is inside it, which the skill calls the implementation.

For pure in-process dependencies, the guide recommends consolidation and direct interface tests. Locally substitutable dependencies use a stand-in inside the test suite. Owned remote dependencies use an injected port with production transport and in-memory adapters. Uncontrolled third-party services use an injected port with a mock adapter.

The skill distinguishes internal seams from the interface exposed to callers. It discourages exposing internal test dependencies publicly and requires at least two justified adapters before introducing a port.

Setup

A reproducible source starting point is the selected folder at commit 5863806dd4e15c63174bee4e7515a4256792ecfa: [https://github.com/mattpocock/skills/tree/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/codebase-design]. Preserve the relative locations of SKILL.md, both supporting guides and agents/openai.yaml so their references retain their meaning.

Follow the chosen assistant's documented skill-loading procedure. The supplied files do not establish a verified installation procedure. Before using the optional parallel exercise, prepare a specific design candidate, its caller constraints, dependencies and relevant project vocabulary.

Example

The included TypeScript sketches show an order-processing function accepting paymentGateway as an argument instead of constructing StripeGateway internally. Another sketch returns a calculated discount instead of modifying the cart's total. These examples illustrate how explicit dependencies and returned results can make behavior easier to exercise.

Applied to an uncontrolled payment provider, the dependency guide would place payment access behind an injected port and use a mock adapter in module tests. Such tests would exercise the module's visible behavior; they would not establish compatibility with the actual provider. No completed implementation or passing test result is supplied.

Assessment & evidence

Limitations

The recommendation to delete older unit tests once interface-level tests exist needs careful application. The guide provides no method for establishing equivalent behavioral coverage. A practical risk is removing useful cases merely because a new test surface has been introduced.

The two-adapter rule and preference for fewer entry points are strong design heuristics. They do not establish the best structure for every project. Locally substituted dependencies and mocks also leave actual remote behavior unproven.

The supplied files contain no executed examples, host compatibility results or evaluations of the proposed parallel-agent process.

Reasoning

The proposed benefit is that one well-shaped module can absorb knowledge otherwise repeated across callers and tests. Its deletion thought experiment helps distinguish a useful abstraction from a wrapper that simply passes work elsewhere: removing a useful module would force its responsibilities back into callers.

The dependency classification makes the advice more concrete by connecting design choices to available ways of testing them. Comparing designs on interface burden, concentration of change and seam placement can expose trade-offs that method counts alone miss. These are reasoned design benefits, not measured outcomes.

Alternatives

For a small design problem, a practical alternative is to use the main file's interface questions in a human-led review without the optional parallel-agent exercise. The supplied material does not compare the quality or cost of these approaches.

Within the skill, dependency strategies are alternatives chosen by context: direct tests for pure logic, local substitutes where available, and injected adapters for remote dependencies. No competing skill or architecture tool is evaluated, so a comparative product recommendation is not established.

Evidence

SKILL.md establishes the vocabulary, design principles and illustrative code. DEEPENING.md establishes the dependency categories and test-replacement advice. DESIGN-IT-TWICE.md establishes the parallel design procedure. agents/openai.yaml establishes display metadata, and LICENSE establishes reuse terms.

The snapshot provides written instructions and examples. It contains no execution logs, benchmark datasets, completed refactors or integration results. The captured main file is available at [https://raw.githubusercontent.com/mattpocock/skills/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/codebase-design/SKILL.md].

Access & freshness

Costs

The MIT licence grants permission to reuse the material free of charge. Assistant subscriptions, model-provider charges and total operating cost are unknown.

The optional design exercise requests at least three parallel agents, creating additional model work. No token budget, billing estimate, execution duration or measured savings is provided.

Rights

The supplied repository LICENSE applies the MIT licence and states Copyright (c) 2026 Matt Pocock. It permits use, copying, modification, merging, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The material is supplied without warranty, and the licence includes a liability disclaimer. The captured licence is available at [https://raw.githubusercontent.com/mattpocock/skills/5863806dd4e15c63174bee4e7515a4256792ecfa/LICENSE].

Freshness

The supplied snapshot identifies commit 5863806dd4e15c63174bee4e7515a4256792ecfa and capture time 2026-11-12T14:52:18.967Z. The findings refer to that revision.

The capture time does not establish when the skill was last changed or whether the repository's main branch now differs. No later revision or release information is included.

Actions

Start with one module whose callers repeatedly coordinate the same behavior. Record what callers must know, including ordering, errors, configuration and dependencies. Use the skill's questions to propose an interface that absorbs that repeated knowledge.

Check the proposal against real callers and existing behavioral coverage before replacing tests. If alternative interfaces remain plausible, use the optional design exercise with distinct constraints and compare the results on depth, locality and seam placement.

Where remote dependencies matter, verify their actual integration separately from module tests using substitutes. Retain the copyright and permission notices when copying or redistributing the material.

Evidence for this report

LICENSEnotice · checked 2026-11-12
skills/engineering/codebase-design/SKILL.mdselected · checked 2026-11-12