Skip to main content

Lamina vs shadcn/ui skill

The shadcn/ui skill gives your agent project-aware component context. Lamina specs product behavior and verifies flows.

Curated by Aryan Iyappan · Updated 2026-07-13

Who this comparison is for

You are in the right place if

  • Buttons render correctly but booking logic is wrong.
  • You installed the shadcn skill expecting full product design.
  • Forms validate with Zod but illegal business transitions still ship.
  • Your agent knows Dialog API but not hold lifecycle rules.

Context

The official shadcn/ui skill reduces component errors: your agent stops guessing registry paths and form patterns. That saves time on every UI file. Product behavior is a separate concern. A correct Submit button can still fire at the wrong step in onboarding. Lamina does not teach Button; it teaches what Submit may do for each actor.

Common situations

Concrete cases from AI-shipping workflows. Each shows what the alternative handles and where a behavior contract helps.

Correct Form component, wrong checkout sequence

Situation
shadcn skill fixed FormField wiring on checkout. Guests can still pay when the inventory hold expired because nothing defined hold status in the domain model.
What shadcn/ui skill does
Ensures shadcn Form, Input, and Button usage match project conventions and accessibility patterns.
What Lamina adds
run.yaml defines hold lifecycle and pay preconditions. Verify catches pay enabled after expiry.
Takeaway
Component correctness is not flow correctness.

Adding a new settings page with standard patterns

Situation
Profile settings with shadcn Card, Switch, and toast patterns. No new roles or gates.
What shadcn/ui skill does
shadcn skill alone: fast, correct component implementation.
What Lamina adds
Skip until settings change product permissions or multi-step setup.
Takeaway
UI-only changes rarely need a behavior contract.

Multi-step wizard with shadcn Stepper pattern

Situation
Agent used shadcn patterns for a stepped UI. Step navigation is wired but business prerequisites are not enforced server-side.
What shadcn/ui skill does
Provides stepper UI components and layout patterns.
What Lamina adds
Permission matrix: which steps must complete before advance and submit. implement.md lists server checks.
Takeaway
Pair shadcn UI patterns with Lamina when steps encode business rules.

Comparison

Lamina vs shadcn/ui skill
Dimensionshadcn/ui skillLamina
Primary jobCorrect shadcn APIs and registry usageSpec domain behavior
Layer in stackUI component skillHeadless product design skill
Primary outputcomponents.json context + UI coderun.yaml + implement.md
Writes app source?Yes, UI codeNo
Behavior spec (states, flows, permissions)Component interaction patternsState machines and permissions
Durable in-repo artifactSkill + components in repo.lamina/ contracts
Post-build verificationCLI and docs lookup during build/lamina-verify on live build
Repo and stack fitProjects with components.jsonAny stack with or without shadcn
Best whenWrong Button, Form, or Dialog APIsMulti-step flows with gates
When you don't need LaminaComponent-only tweaksNo new product rules
Compose with Lamina?Active during UI implementation/lamina-design → implement → verify

Workflow

Lamina vs shadcn/ui skill: recommended workflow
Stepshadcn/ui skillLamina
1Ensure components.json is current/lamina-design on the feature
2Agent builds UI with shadcn skillAgent follows implement.md rules
3Fix component API errors/lamina-verify persona walks

When to use which

Lamina vs shadcn/ui skill: when to use each
Situationshadcn/ui skillLamina
Migrating Button to new shadcn APIshadcn skillSkip
Partner onboarding with gated submitshadcn for formsContract + verify
Not using shadcn in this repoN/ALamina still applies for behavior

Worked example

Readiness checklist before guests. shadcn skill helps render checklist UI components correctly. Lamina specs which blockers (Stripe, photos, policy) must clear before the property accepts bookings. HavenStay verify found a single Create your hotel CTA without readiness gates when behavior was not specced.

HavenStay demo walkthrough

Frequently asked questions

Should I install both the shadcn skill and Lamina?

Yes, if you use shadcn/ui and ship features with product rules. They operate on different layers.

Does Lamina know my shadcn registry?

Lamina does not pick components. implement.md describes behavior; your agent and shadcn skill handle UI choices.

Does the shadcn skill replace Lamina?

No. It is a UI helper, not a product behavior designer.

Comparisons map stack layers, repo artifacts, and HavenStay demo examples. Updated when major tools change positioning.

Install in one command.

A headless product-design skill for your AI coding agent. Then run the design → implement → verify loop on your next feature.

Apache-2.0 · open source. Star on GitHub if Lamina saves you a loop.

npx skills install aryaniyaps/lamina

Works with your coding agent

  • Cursor
  • Claude Code
  • Codex
  • Gemini
  • Pi
  • and more