lamina

作者 aryaniyaps

Headless product design for AI coding agents, backed by a transactional product graph | Design how it works, verify what you ship.

108
Stars
3
Forks
TypeScript
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/aryaniyaps/lamina

快速入门

使用 lamina 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

lamina

Design is how it works — not just how it looks.

Headless product design for AI coding agents, backed by a transactional product graph. Initialize once; then ordinary feature requests automatically give your coding agent the relevant actors, flows, states, permissions, failures, code targets, and proof obligations.


Documentation: lamina.dev/docs

Quickstart

Let your AI agent install it

Open your project root, paste this into your AI coding agent, and let it handle setup:

Install Lamina for this project.

1. Install the standalone Lamina CLI (no Node.js or npm required):
   macOS/Linux: curl -fsSL https://github.com/aryaniyaps/lamina/releases/latest/download/install.sh | sh
   Windows PowerShell: iwr https://github.com/aryaniyaps/lamina/releases/latest/download/install.ps1 -UseBasicParsing | iex
2. Run: lamina doctor --json
3. Install all Lamina skills for this active agent only: use `-a codex` in
   Codex, `-a claude-code` in Claude Code, or `-a cursor` in Cursor. Do not use
   `-a '*'`.
   npx skills add aryaniyaps/lamina --skill '*' -a <active-agent> -y
4. Install passive rules for that provider:
   lamina setup --agent <codex|claude-code|opencode|cursor>
5. Node.js/npm are required only for the preceding `npx skills` command. Do not use sudo and do not edit application source during setup. If this is not yet a
   Git project, `/lamina-init` may create Git metadata but must not stage or
   commit files.
6. If a command fails, stop and show me
   the exact error.
7. When complete, report the installed CLI version and agent targets, then tell me to start a fresh agent session and run:
   /lamina-init <your product domain and primary users>

Prefer installing it yourself?

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|opencode|cursor>
lamina doctor --json

The installer downloads the matching CLI and private native CocoIndex worker from GitHub Releases and verifies both against SHA256SUMS. Graph observation needs no host Node, npm, Python, uv, or virtual environment; graphd remains the only process that owns Ladybug.

The install adds 10 public skills: four workflow entrypoints and six capability skills. Focused guidance lives in on-demand topic references inside those capabilities, keeping discovery small without flattening the underlying craft. Then start a fresh agent session so the complete skill set is available.

Initialize once, then ask normally

AGENT CHAT

/lamina-init <your product domain and primary users>

Run init once per project or domain. Use /lamina-init update only when the business use case, market, scope, or actors materially change.

On a new folder, init creates .git with an unborn main branch when needed. It never stages or creates an initial commit.

ORDINARY CODING MODE

Add medication schedule editing with conflict-safe saves and a responsive UI.

That is the whole ongoing interface. For a new or changed flow, the installed rules first run one independent design-time walk per Persona—even when no implementation exists. Those walks expand missing nodes, permissions, states, Scenarios, Invariants, recovery paths, and edge cases into the graph until the current round returns an empty discovery matrix. Lamina then compiles a bounded ImplementationPacket, runs lamina work map to scaffold every requirement and Persona-bound case, resolves them to immutable modify|create implementation/test file entries, implements, runs case-bound live proof, fixes failures, and reverifies. It does not dump the entire graph into the prompt.

/lamina-design and /lamina-verify remain advanced overrides when you want a graph-only design pass or a source-read-only audit. They are not required steps and Lamina should not recommend them during normal work.


How it works

Your coding agent writes app source. Optional UI skills handle look and feel. Lamina owns the product-behavior contract — what to build, how states and flows work, and which failures and edges must be covered.

Lamina workflow: initialize product knowledge, publish a validated design, implement it, verify the live product, apply findings, and re-verify; contract gaps return to design.

StepWhoResult
0. InitLaminaBusiness context plus Product, Actor, and Persona knowledge
1. WalkIndependent Persona simulationsNode-by-node permissions, states, branches, edge cases, and graph discoveries
2. PrepareLamina + your agentConverged graph closure, Persona-bound Cases, ranked code context, and a mechanically scaffolded, checked WorkMap
3. BuildYour coding agentApp source in any stack, mapped to product obligations and Experience Cases
4. VerifyLamina + your agentRuntime Mission evidence plus state-scoped functional, visual, responsive, and accessibility evidence
5. Fix and reverifyYour coding agent + LaminaCurrent evidence for every obligation and Experience Case

Human-readable implementation, report, and fix documents are optional projections from a resolved GraphVersion. They are useful handoffs, but they are not canonical state. Legacy run files are left untouched and have no runtime meaning.


Under the hood

Lamina keeps a local transactional product graph for each Git repository:

  • Product intent, observed source behavior, agent inference, persona simulation, and runtime evidence stay separate.
  • Multi-part design changes publish atomically: the whole change lands, or none of it does.
  • Conflicting facts remain visible as contradictions instead of silently overwriting each other.
  • Every active Persona independently walks every proposed flow node before implementation.
  • Experience Cases compile directly from current Persona walks; no second authored contract copies them.
  • Every active Persona gets an independent verification Mission.
  • Lamina's managed observer derives source observations; graphd owns the canonical Ladybug graph.

Use lamina graph status to inspect the active graph. See the transactional graph reference for Resources, Statements, sessions, GraphVersions, missions, evidence, and the complete CLI.


Fits your stack

Lamina slots into whatever you already use. It is unopinionated about your tech stack and AI tooling.

Any AI coding toolCursor, Claude Code, Codex, Gemini, Pi, etc.
Any frameworkNext.js, Angular, Astro, Svelte, React Native, Flutter, FastAPI, Gin, Express, etc.
Any databasePostgres, MySQL, MongoDB, Cassandra, Redis, Neo4j, etc.
Any languageJavaScript, Python, Go, Rust, Elixir, PHP, C#, etc.
Any UI libraryTailwind CSS, Chakra UI, shadcn/ui, MUI, etc.
Any UI design skillImpeccable, UI UX Pro Max, frontend-design, etc.
Any workflow skillobra/superpowers, mattpocock/skills, everything-claude-code, etc.
Any interfaceWebsites, mobile apps, desktop apps, PWAs, chatbots, CLIs, etc.

Demo: a hotel booking platform

We built a demo hotel booking platform called HavenStay. The same prompt produced two apps — one with Lamina and one without. Both were built from scratch by Cursor Composer 2.5, with no human-written app code.

Legacy demo: HavenStay predates the transactional graph runtime. It remains a comparison of Lamina's product-design and verification value, not a guide to the current installation or storage model.

The prompt
Design and build a complete hotel booking platform called HavenStay from scratch.

Create a production-ready product that enables travelers to discover, compare, book,
and manage hotel stays, while enabling hotels to manage their properties, rooms,
pricing, availability, reservations, and guest interactions.

The product should feel polished, cohesive, and ready for real-world use. Design every
aspect of the experience, including the end-to-end user journeys, information
architecture, navigation, search and discovery, booking lifecycle, account management,
payments, cancellations, reviews, notifications, hotel management, trust and safety,
customer support, accessibility, edge cases, and system behavior.
With LaminaWithout Lamina
Folderdemo/hotel-booking-with-laminademo/hotel-booking-without-lamina
Workflow/lamina-init once → ordinary implementation prompts with passive Lamina contextCursor Plan mode → implement

HavenStay built with Lamina   HavenStay built without Lamina

Left: With Lamina · Right: Without Lamina

Both apps cover traveler search and booking, a hotel-partner surface, and an admin role. The gap is product behavior — marketplace integrity, operational depth, and edge cases — not whether a screen exists.

What Lamina covered — and the other build missed
  • A 15-minute checkout inventory hold with countdown, hold-aware availability, and expiry.
  • Per-property cancellation policies with an immutable policy snapshot at booking.
  • Admin approval, rejection, or requested changes before a property goes live.
  • Multi-step property onboarding with a readiness checklist.
  • Hotel cancellation with a required reason and automatic full guest refund.
  • A full platform admin surface for approvals, users, bookings, payments, trust, reviews, tickets, and audit.
  • Traveler edges such as email verification, refund preview, review-window gating, and receipts.
  • Search that excludes unavailable or non-live properties for the selected dates.
  • A complete booking lifecycle plus suspension behavior that blocks booking.

Pair with

Lamina keeps product decisions and verification evidence in one transactional graph. Pair it with tools that implement or polish the resulting contract:

Tool or skill categoryExamplesWhy
Implementation workflowsobra/superpowers, mattpocock/skills, everything-claude-codeTurn Lamina's implementation and fix projections into structured coding, testing, and review work.
UI/UX tools and skillsImpeccable, UI UX Pro Max, frontend-design, design-focused agentsPolish the interface while Lamina focuses on behavior, states, permissions, edges, and verification.
Specification-driven engineeringSpec Kit, Kiro, specification-first workflowsConvert a resolved GraphVersion projection into engineering plans and tasks without making prose canonical product truth.

Why not …?

Most of these tools are complementary. Lamina is the product contract plus the post-build verification loop.

Impeccable, UI UX Pro Max, frontend-design

They polish how it looks. Lamina designs how it works — actors, flows, empty/error/loading states, permissions, invariants, and recovery. Pair any UI skill; Lamina stays out of pixels.

BMAD, ai-ux-skills, design-skills

They teach design judgment — heuristics, critique, accessibility, and PRDs. Lamina runs a workflow: ordinary request → transactional product contract → mapped implementation → live-product verification. Use craft skills for judgment and Lamina when you need a durable contract and evidence-backed check.

Just asking your coding agent

Fine for happy paths. Weak on permission matrices, stale states, cross-actor handoffs, and mid-flow failures. Lamina structures behavior before the build and exercises the live product afterward.

Spec Kit, Kiro, spec-driven development

Product first, then engineering spec. Lamina structures product behavior and compiles its obligations into the coding context; spec tools can further structure implementation work.

v0, Lovable, Bolt

They generate apps — often within a preferred stack. Lamina does not generate app source or choose your framework. It focuses on the role hierarchies, multi-step flows, state transitions, and domain edges that app generators commonly miss.

Figma and design handoffs

Mocks show screens. They do not capture every legal state or verify the build. Lamina produces an agent-ready behavior contract and checks the implemented product; visual design tools remain useful alongside it.

Choose Lamina if you build with AI and care about product correctness, not just UI polish.

Skip it for landing-page skins, no-code generation, or work that does not need an explicit product-behavior contract.


Commands

CommandWhat it does
/lamina-initEstablish the product domain, actors, and personas once per project or domain
lamina setup --agent …Install idempotent passive rules for Codex, Claude Code, OpenCode, or Cursor
lamina context statusShow retrieval freshness, generation, digests, counts, and failures
lamina context rebuildDiscard and reconstruct the disposable local retrieval index
lamina design prepare-walkCompile one coverage-bound design task for one Persona
lamina design record-walkRecord that isolated walk as engine-owned simulated graph evidence
lamina work prepareSynchronize hybrid retrieval, select Workflow roots, and compile exact graph obligations
lamina work mapMechanically scaffold every obligation and Experience Case row for file resolution
lamina work checkRequire complete obligation/case-to-code-and-test mapping before edits
lamina work verifyRequire current case-bound evidence and all state-scoped UI audit classes
/lamina-designAdvanced graph-only design override
/lamina-verifyAdvanced source-read-only verification override

The Lamina CLI does not edit application source or prescribe visual styling; the coding agent implements only after the WorkMap gate passes.


Development

corepack pnpm install --frozen-lockfile
corepack pnpm test

Before any resource-intensive benchmark, experiment, fixture, or Lamina subprocess, inspect and qualify the crash-safe runner, then execute one tier at a time through its canonical command:

npm run safe:envelope
npm run safe:self-test
npm run safe:run -- --tier small --workload <stable-id> --report /absolute/path/to/result.json --promote -- <audited-entrypoint> [args]

Medium and large runs fail closed without aggregate Linux cgroup-v2 enforcement, a current self-test attestation, sequential promotion evidence, and complete cleanup. Unknown commands and direct fixture-vendoring launches are refused. Retry and promotion bind complete argv, the physical content-hashed executable, cwd-relative input files, frozen Git source, and runner build; that identity is rechecked again at the inner quota gate. The report slot is invalidated with a current-run non-success record before preparation, an active-attempt fence exists before release, and graphd uses a durable reserve-before-spawn, bind-after-spawn, seal-after-readiness protocol. See the crash-safe runner guide.

The standalone CLI, matching private native CocoIndex worker, and shared offline retrieval model are published as checksum-verified assets on the GitHub Releases page.

License

Licensed under the Apache License 2.0. Copyright 2026 Aryan Iyappan.

常见问题

What is lamina?

lamina is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by aryaniyaps. Headless product design for AI coding agents, backed by a transactional product graph | Design how it works, verify what you ship. It has 108 GitHub stars.

Is lamina safe to use?

lamina returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install lamina?

Clone the repository with "git clone https://github.com/aryaniyaps/lamina" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is lamina written in?

lamina is primarily written in TypeScript. It is open-source under aryaniyaps on GitHub, so you can review or fork the full source.

Are there alternatives to lamina?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh lamina against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情