Pattern tells your agent to check before it builds UI, especially from a Figma link, mockup, or screenshot. Buttons and small edits are left alone. Then it compares what the component must do with what your design system has.
After the build, Pattern checks the finished file against the list. Every pass comes with a quote from your file, and the server confirms the quote is there. No quote, no pass. Things that must be absent, like “no Tailwind classes,” are searched for by the server.
Turn on the required check and your agent can't create a new component until Pattern has answered (in Claude Code, on your machine). The same check runs on every pull request, whichever agent wrote it.
Every decision is saved, and reviewers get the reasoning with the code. A record goes stale if the file changes.
Pattern is MIT licensed, and checks use your Anthropic key. A full check with a build list usually runs a few cents. With a TypeSafe key, a match is scored in under a second with no Anthropic call. Common basics like buttons and inputs are answered on your machine for free.
The setup lists all five steps up front, then shows how many are done and which come next, so you always know where you are.
Add your Anthropic key. Pattern checks it on the spot, so a bad paste shows up now and not in the middle of a build.
Add a Figma token, if your design system lives in Figma. It gets the same check.
Connect your tools. Pattern is added to Claude Code, Claude Desktop or Cursor, along with a skill that tells your agent to check before it builds UI.
Register your design system. Paste a Figma link or point it at your components folder. If a Figma file is huge, the setup offers to leave out the icon pages.
Turn on the required check, or leave it for later. It is optional and off by default.
Anyone whose agent builds UI against a design system: designers, engineers, and teams reviewing agent-written pull requests.
Claude Code, Cursor, and Codex. The required check on your machine is Claude Code only. The pull request check works with any agent.
No. Connect a Figma file, a components folder, a Storybook export, or a JSON manifest.
Run one command. Pattern walks you through five steps: add your Anthropic key, add a Figma token if you use Figma, connect your tools, register your design system, and turn on the required check (optional, off by default). Each key is checked on the spot.
How a page renders. "Unverified" means look at this.
Close calls get a second look. If the runs disagree, you see low confidence and the requirements they split on.
“I kept watching agents hand-build a price table when a good one already existed, or reach for a generic card when the flow needed more thought. Pattern is the check I wanted between the product need and the code: specific about what to build, honest about what it doesn't know, and cheap enough to run every time.”
Install once. Then ask for UI.