Build your product exactly as designed in using .

Ask for the screen. Get a decision.

“Price breakdown with fees and taxes”
Checkout / Price breakdown
$182 ×5 nights
$910
Cleaning fee
$85
Service fee
$129
Taxes
$78
Total
$1,202

Coverage

0/8

VerdictConfidence High
custom_build
1 reuse6 build

Requirements

Decision

#a41f
Design systemacme-ds

Reuse

PriceRow

Build

TotalRowformatMoneyDiscountLineFeeTooltipFeeDisclosureMobileSheet

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

ConfirmDialog.tsx4 verified
  1. 1import { Modal } from '@acme/ui'
  2. 2import { Button } from '@acme/ui'
  3. 3
  4. 4export function ConfirmDialog({ open, onClose }) {
  5. 5 return (
  6. 8 <Modal.Title>Delete project?</Modal.Title>
  7. 10 <Button variant="ghost">Cancel</Button>
  8. 12 </Modal.Actions>
  9. 13 </Modal>
  10. 14 )
  11. 15}

Modal closes on Escape

line 6 ← Modal.tsx:42 · closeOnEscape = true

matched

Agents can't build
until Pattern answers.

On your machine

  1. Agentwrite PriceBreakdown.tsx
  2. HookBlocked — no decision yet
  3. Patternreuse PriceRow · build FeeTooltip
  4. 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.

Every shipped screen comes with proof that it was built to spec.

  1. 1Pattern checks first

    src/checkout/PriceBreakdown.tsxreuse PriceRowbuild FeeTooltip
  2. 2A receipt ships with the code

    feat-checkout.json
    {
      "file": "PriceBreakdown.tsx",
      "components": ["FeeTooltip"],
      "decision": "custom_build"
    }
  3. 3No decision, no new file

    .claude/settings.json

    PreToolUse → pattern-mcp gate

  4. 4pattern-gate runs on every PR

    Add price breakdown

    .github/workflows/pattern-gate.yml

    Required
    • pattern-gate / receipts
    • pattern-gate / base diff
    • pattern-gate / secrets
  5. 5Skips are out in the open

    LegacyBanner.tsx
    1. 12// pattern-mcp:skip reason=""
    2. 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.