Skip to main content

Learn product design for AI coding agents.

Guides for developers who build with AI: design product behavior, keep decisions in a transactional graph, and verify the live build with independent persona missions.

Curated by Aryan Iyappan · Updated 2026-07-27

Why behavior design matters

AI coding agents optimize for the happy path. Without a behavior contract, screens look correct while illegal states, skipped gates, and dead-end flows ship to production.

Agents ship happy paths

Screens appear fast, but gates, illegal states, and dead ends slip through after merge when no behavior contract defined which transitions are legal.

Design means behavior

Which states exist, who can act, and what happens when something fails, not pixels, typography, or component libraries.

Contract, then verify

Keep rules in a validated GraphVersion, implement a resolved projection, then run independent Persona Missions until the product evidence holds.

Start here

The category-defining guide: definition, stack fit, comparisons to UI skills and plan mode, HavenStay worked example, and when behavior contracts are worth it.

12 min read

Read the full guide

What this guide covers

  • Clarifies headless product design vs UI skills, headless CMS, and app builders.
  • Shows what a behavior contract contains and where it lives in your repo.
  • Walks through HavenStay: the same app with and without a spec-first build.
  • Helps you decide when states, roles, and gates justify a formal contract.

Lamina vs your AI workflow

Pick the situation that matches your stack, or browse comparisons by tool type. Each guide includes scenarios and honest when-you-do-not-need-Lamina guidance.

Open compare

Browse by tool type

Jump straight to a comparison when you already know the category.

Full index with matrices

Frequently asked questions

Quick answers about headless product design and this Learn section.

What is headless product design?

Speccing states, flows, permissions, and edge cases as contracts before your agent writes app source. Pairs with UI skills.

Who is the Learn section for?

Developers building with AI coding agents who want to spec product behavior before writing application source.

Where should I start?

Read the headless product design guide, then the graph lifecycle, comparisons, and current quickstart.

How is this different from UI skills?

UI skills polish look. Headless product design specs behavior: states, permissions, flows. Compose both.

Do I need Lamina to practice headless product design?

No. Plan mode, ADRs, or custom skills work too. Lamina combines portable skills with a CLI and transactional runtime.

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