# codebase-design

> Modular TypeScript architecture, deep modules, and clean boundaries

- **Publisher**: Matt Pocock (Verified Publisher)
- **Upstream GitHub Repository**: https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design
- **skills.sh Listing**: https://skills.sh/mattpocock/skills/codebase-design
- **License**: MIT
- **GitHub Stars**: 329,578
- **Canonical Web Page**: https://builderthread.dev/skill/mattpocock/skills/codebase-design
- **Parent Topic**: [typescript](https://builderthread.dev/skill/for/typescript.md)
- **Last Audited**: 2026-11-21
- **Supported Coding Agents**: Claude Code, Cursor, Codex, Windsurf

## Overview
Engineering skill from Matt Pocock guiding coding agents to design cohesive TypeScript modules, narrow interfaces, and testable seams before writing implementation code.

Inspect the full upstream `SKILL.md` source and license on GitHub before installing: https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design

## Install Command
```bash
npx skills add mattpocock/skills --skill codebase-design
```

## When to Use This Skill
- Planning module boundaries for a new TypeScript application or monorepo package
- Refactoring tangled files into cohesive, testable domain modules
- Preventing coding agents from creating shallow pass-through abstractions

## Focus Areas
- Module boundaries
- Deep vs shallow interfaces
- Dependency direction
- Testable architecture

## Upstream Package Files
- `skills/engineering/codebase-design/SKILL.md`

---

## Ship With a Private Starter Repo, Living PRD & MCP Tasks

Builderthread pairs verified stack skills with a cited market brief, living PRD, private GitHub starter repo, and ordered MCP tasks for Claude Code, Cursor, and Codex.

- Supported languages: Rust, TypeScript, React Native (Expo), Python
- Starter stacks: Next.js SaaS, Hono API, FastAPI AI, Expo mobile, Tauri Rust desktop, WXT Chrome extension
- Start now: https://builderthread.dev/auth/signup
