Skip to main content

Lamina vs Magic Patterns

Magic Patterns generates brand-aligned components. Lamina is a transactional product graph and agent workflow that specs behavior and verifies the running app.

Curated by Aryan Iyappan · Updated 2026-07-27

Magic Patterns generates on-brand UI. Lamina specs product behavior design: validated graph knowledge and live verification.

Who this comparison is for

You are in the right place if

  • Components match your design system but flows skip prerequisites.
  • Magic Patterns output merges cleanly yet partner gates are missing.
  • You generate screens fast but QA finds illegal product states.

Context

Magic Patterns targets teams with an established design system who want generated UI that does not fight their tokens. That is a different problem than behavior design. Generated components can be on-brand and still allow illegal transitions if domain rules were never specced.

Common situations

Concrete cases from AI-shipping workflows. Each shows what the alternative handles and where validated graph knowledge and verification evidence help.

On-brand wizard UI, wrong step order

Situation
Magic Patterns produced a stepped onboarding wizard matching brand components. Users can jump to the final step.
What Magic Patterns does
Generates branded stepper UI and form layouts.
What Lamina adds
Permission matrix for step advance and submit unlock.
Takeaway
Brand-accurate UI still needs behavior rules.

Isolated settings card refresh

Situation
Regenerate a profile card component with updated tokens. No flow changes.
What Magic Patterns does
Magic Patterns alone.
What Lamina adds
Skip Lamina.
Takeaway
Component isolation: visual tool only.

Checkout components from design system

Situation
Generated checkout matches design system. Hold banner renders but pay ignores hold expiry.
What Magic Patterns does
Provides checkout UI patterns from your system.
What Lamina adds
Hold lifecycle and pay preconditions in GraphVersion.
Takeaway
Pair generation with behavior spec for money paths.

Comparison

Lamina vs Magic Patterns
DimensionMagic PatternsLamina
Primary jobDesign-system-aware UI generationvalidated graph knowledge and verify
Layer in stackUI generationTransactional product graph + agent workflow
Primary outputReact components aligned to brandValidated GraphVersion plus query projections
Writes app source?YesNo
Behavior spec (states, flows, permissions)Component-level patternsActor flows and permissions
Durable in-repo artifactGenerated exportsValidated GraphVersion plus query projections
Post-build verificationPlatform previewIndependent Persona Missions with runtime evidence
Repo and stack fitTeams with design systemsCLI plus portable skills in any repo and stack
Best whenBrand-accurate UI at speedRoles, gates, recovery paths
When you don't need LaminaIsolated components, no flow rulesNo domain behavior change
Compose with Lamina?Generate UISpec → integrate → verify

Workflow

Lamina vs Magic Patterns: recommended workflow
StepMagic PatternsLamina
1Generate components in Magic Patterns/lamina-design on feature
2Export to repoGraphVersion projection guides integration
3Wire UI in appEnforce contract server-side
4Visual review/lamina-verify

Worked example

Confirm cancel with refund preview. Magic Patterns can generate a cancel dialog matching your system. Lamina specs deliberate cancel flow: policy reminder, refund amount, confirm step. HavenStay verify found one-click cancel without preview when behavior was not contracted.

HavenStay demo walkthrough

Frequently asked questions

Can they work together?

Yes. Magic Patterns for UI; Lamina for behavior and verification.

Magic Patterns vs v0: where does Lamina fit?

Both are UI generators. Lamina sits after export for any generator when behavior matters.

We export Magic Patterns components without flow rules. When do we add Lamina?

Run /lamina-design on the first feature with roles, gates, or multi-step flows after export.

Comparisons map stack layers, durable outputs, and provenance-marked legacy examples. Updated when major tools change positioning.

Install Lamina with your agent.

Copy the repository-matched prompt. Your agent installs the standalone CLI, adds every Lamina skill for your active agent, configures supported passive rules, checks the setup, and tells you when to start a fresh session with /lamina-init.

Skills work across coding agents. Passive setup currently supports Codex, Claude Code, and Cursor.

  • Cursor
  • Claude Code
  • Codex
  • Gemini
  • Pi
  • and more
Install manually on macOS/Linux4 shell commands

Run these in your project, then start a fresh agent session. On Windows, use the PowerShell installer in the copied agent prompt.

curl -fsSL https://github.com/aryaniyaps/lamina/releases/latest/download/install.sh | sh
npx skills add aryaniyaps/lamina --skill '*' -a <active-agent> -y
lamina setup --agent <codex|claude-code|cursor>
lamina doctor --json