Build your product exactly as designed in using .
Ask for the screen. Get a decision.
- $182 ×5 nights
- $910
- Cleaning fee
- $85
- Service fee
- $129
- Taxes
- $78
- Total
- $1,202
Coverage
0/8
Requirements
Decision
#a41fReuse
Build
Evidence
src/ui/PriceRow.tsx:14
label: string; amount: Money
- 20s
- time
- $0.03
- cost
- 4.2.0
- version
Download and set up in 5 easy steps.
my-app — zsh
my-app %
Every Pattern check comes with
a quote from your file.
Build confirm dialog
Add a confirm step before deleting a project. Use our modal.
- Read design summary
- pattern.check → reuse Modal
- Verified 4 of 4 quotes
Quotes
- 1import { Modal } from '@acme/ui'
- 2import { Button } from '@acme/ui'
- 3
- 4export function ConfirmDialog({ open, onClose }) {
- 5 return (
- 8 <Modal.Title>Delete project?</Modal.Title>
- 10 <Button variant="ghost">Cancel</Button>
- 12 </Modal.Actions>
- 13 </Modal>
- 14 )
- 15}
Modal closes on Escape
line 6 ← Modal.tsx:42 · closeOnEscape = true
Agents can't build
until Pattern answers.
On your machine
- Agent
write PriceBreakdown.tsx
- HookBlocked — no decision yet
- Patternreuse PriceRow · build FeeTooltip
- AgentWrite allowed
On the pull request
Add price breakdown
#128 · feat/checkout
All checks have passed
- Pattern / decision recorded
- Pattern / required check
- Pattern / quotes verified
Everything between your design system and shipped code.
Your design system
Figma, a components folder, Storybook, or JSON. Registered once.
Design summaries
Each design in words, so your agent keeps it while it builds.
Reuse or build
A plain answer: use this component, or build these pieces.
Requirements
Tagged as yours, inferred, or general practice.
Verified code
Every pass quotes your file, confirmed by the server.
Required check
Agents can’t create a component until Pattern answers.
Decision record
What was checked, decided, and what it cost — per version.
Cost and confidence
Time, tokens, and dollars beside every decision.
Every shipped screen comes with proof that it was built to spec.
1Pattern checks first
src/checkout/PriceBreakdown.tsxreuse PriceRowbuild FeeTooltip2A receipt ships with the code
feat-checkout.json{ "file": "PriceBreakdown.tsx", "components": ["FeeTooltip"], "decision": "custom_build" }3No decision, no new file
.claude/settings.jsonPreToolUse → pattern-mcp gate
4pattern-gate runs on every PR
RequiredAdd price breakdown
.github/workflows/pattern-gate.yml
- pattern-gate / receipts
- pattern-gate / base diff
- pattern-gate / secrets
5Skips are out in the open
LegacyBanner.tsx- 12// pattern-mcp:skip reason=""
- 13export function LegacyBanner() {
Skipped: one-off promo
Free and open source.
MIT licensed. Checks run on your own Anthropic key, and repeats are cached.
- <1s
- lookups
- ¢
- per check
- $0
- repeats
FAQ
Who is Pattern for?
Teams with a design system who build UI with a coding agent. Pattern makes the agent check what already exists before it writes a new component.
Which agents does it work with?
Claude Code, Cursor, and Codex — any client that speaks MCP. Setup connects them for you.
What counts as a design system?
A Figma file, a components folder, a Storybook export, or a JSON manifest. You register it once, and it becomes the only source Pattern judges against.
What does a check cost?
Cents, on your own Anthropic key. Lookups take under a second, and repeated checks are cached at no cost. Every decision shows its time, tokens, and dollars.
Can I make it required?
Yes. A hook blocks the agent from writing a component until Pattern answers, and a pull request check confirms every component had a decision.