/mattpocock-skills:brownfield-onboardfrom mattpocock-skills
Survey an existing brownfield codebase, detect conflicting domain terminology, and bootstrap GLOSSARY.md and foundational ADRs.
Ships in mattpocock-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Survey an existing, undocumented, or legacy codebase to bootstrap a shared domain language and foundational architecture records before starting feature work.
Running /grill-with-docs on an existing codebase without onboarding risks inventing novel terms that clash with existing code. brownfield-onboard excavates the existing implicit domain model, detects naming collisions, resolves canonical terms through grilling, and establishes GLOSSARY.md and initial ADRs.
Scan the existing repository to discover implicit domain models and architectural patterns.
Do not write or refactor code during this step. Focus purely on discovery:
prisma/schema.prisma, migrations/, drizzle/, raw SQL schema files, ORM entities).types/, models/, entities/, interfaces/, dto/).src/, lib/, packages/, api/).git log --merges -n 30 --oneline to identify actively evolving domains and architectural shifts.Cluster the discovered entities and check for semantic collisions:
User vs Account vs Member, or Buyer vs Bidder vs Customer, or Order vs Booking vs Reservation).Status meaning payment status in one module but shipping status in another).Compile a draft list of candidate domain terms and flagged naming collisions.
Call the Skill tool with "grilling" to interview the user about the discovered terminology.
In the interview:
Iterate until all major domain entities have agreed canonical names.
Create or update GLOSSARY.md in the repository root. Structure it as follows:
# Glossary
Domain vocabulary for this project. Keep definitions concise.
## Core Domain Terms
### <Canonical Term>
<One or two sentence definition of the business concept.>
- Code mappings: `<files or classes where this lives>`
- Invariants: `<key rules, constraints, or states>`
## Synonyms & Legacy Terms
| Deprecated / Legacy Term | Canonical Term | Where Encountered in Codebase |
| ------------------------ | -------------- | ----------------------------- |
| `Bidder` | `Buyer` | `src/legacy/auction_store.ts` |
| `Member` | `Account` | `src/auth/session.ts` |
Identify implicit, undocumented architectural decisions that already govern the repository:
For each recovered decision, write a foundational ADR under docs/adr/ (for example: docs/adr/0001-recovered-multi-tenant-isolation.md). Format the ADR with:
Present the newly created GLOSSARY.md and ADR list to the user.
Once approved, future feature work can safely begin at /grill-with-docs or /to-spec using the established vocabulary.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub op3616windows/superskills --plugin mattpocock-skills50 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./chief-of-staffPursue a long-running goal in a single session by co-ordinating subagents./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./codebase-designShared 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./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along three axes: Standards (does the code follow this repo's documented coding standards?), Spec (does the code match what the originating issue/spec asked for?), and Security (does the code protect authorization, concurrency, DTOs, and input validation?). Runs all reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X"./contract-concurrencyTest adapter contract parity across multiple implementations and stress-test concurrent state mutations. Use when building seams with InMemory and real database/cache adapters (Postgres, Redis), testing race conditions, writing concurrent Promise.all stress tests, verifying transaction isolation, or testing row locking.