For agents
Install Lunnoa Cursor and Claude skills, then discover and deploy with @lunnoa/client.
Coding agents (Cursor, Claude Code) should start from the packaged skills, not the whole docs tree. Human guides below remain the canonical detail.
To fetch the docs directly, use llms.txt (index of every page with links to raw markdown) or llms-full.txt (all pages in one file). Any page is also available as markdown by adding .md to its URL, for example /guides/develop/client/entities.md. Starting a new app from scratch? See the Quick start.
Install the skills
@lunnoa/client publishes two skills under skills/:
| Skill | Job |
|---|---|
lunnoa-solution-design | Interview the human, map intent to Lunnoa primitives, write a build brief |
lunnoa-client | Implement: auth, CLI discovery, codegen, define* / runs / JSON sync / CLI deploy, React hooks |
After npm install @lunnoa/client, copy them into your app:
npx @lunnoa/client skills installThis writes the skills of your installed SDK version into .claude/skills/ (Claude Code) and .cursor/skills/ (Cursor). To keep them in step with SDK updates, add it as a postinstall script in your package.json and add both folders to .gitignore.
Prefer solution-design first when requirements are unclear, then lunnoa-client.
Partner paste block
Drop this into a new chat so the agent has credentials and the right skill order:
Use @lunnoa/client skills: lunnoa-solution-design then lunnoa-client.
App login is Lunnoa users (createBrowserClient). LUNNOA_URL=… LUNNOA_API_KEY=lna_… is CLI only.
Start by interviewing me, then: npx @lunnoa/client tools list --json --for-agent
and tools get <actionId> --json. For a workflow trigger, apps get <appId> --json.
Do not invent catalogue action ids or trigger ids.Never put an lna_ key in browser code or client-bundled env vars, and do not use it as the app's login. See Authentication.
Agent playbook (short)
- Clarify with
lunnoa-solution-design(trigger, actor, data, HITL). Actors are Lunnoa users. - Auth: Lunnoa user JWT via
createBrowserClientandlunnoa.auth.login. Do not sign the app in withlna_. The API key in.envis for CLI discovery, deploy, pull, and push only. - Discover:
npx @lunnoa/client tools list --json --for-agent, thentools get <actionId> --json. For a workflow trigger,apps get <appId> --jsonand usetriggers[].triggerIdindefineTrigger. Alsoapps,connections,agents,workflows,entity-types,tables list/tables get <slugOrId>,features. The CLI reads./.env(real environment variables take precedence).init <dir>scaffolds the starter, andskills installrefreshes the skills. SDK equivalent:workflowApps.list(). Do not invent catalogue action ids or trigger ids. See Discovery and CLI. - Codegen for typed UIs:
npx @lunnoa/client codegen …. See Codegen. - Run vs save: Ad-hoc:
actions.run,runs.start,workflows.execute. Durable agents and workflows default to JSON inlunnoa/(npx lunnoa-client status, thenpull, thenpush). That setscodeSourcetosynced. Usenpx @lunnoa/client workflows|agents deployon a.ts/.js/.mjsfile only when the definition needs code. That setscodeSourcetogeneratedand locks the UI..jsondeploy is a push. Entity types stay onentity-types deploy. Runstatusbefore editing,pullbeforepush, and ask the human before--force. Commitlunnoa/lunnoa.lock.json. See Sync with the UI, Run actions, Start runs, and CLI. - Wire step inputs in code: pass trigger fields and earlier step outputs with
ref.trigger('caseId')/ref.step('load', 'rows', 0), and give the source step akey. Do not leave data wiring for the builder. See Passing data between steps. Branch approve / reject or if / else withpathson the last step; see Branches. - Entity attributes: Unknown keys are rejected unless the type allows them; use
extensionsfor flexible bags. See Entities. - Boundary: Client
defineActionis not toolkitcreateAction. Use@lunnoa/toolkitonly for in-platform integration apps.
Related guides
| Guide | When |
|---|---|
| Authentication | User login, CORS, CLI keys |
| Agents | End-to-end define, deploy, and chat |
| The agent file | JSON identity, image, canvas, and what stays out of the file |
| Capabilities | Tools, links, skills, drive, and shares |
| Runtime settings | Every settings key |
| Define locally | defineWorkflow / defineTrigger / defineAgent / defineEntityType / defineAction |
| Entities | Strict attributes, extensions, type deploy |
| Tables | Reference and lookup data, upsert by slug |
| React hooks | Headless progress, chat, inbox, entities |
| Agent chat | SSE UIMessage streaming |
| CLI | tools list / tools get, then deploy |
| Sync with the UI | pull, push, status, conflicts, CI |
| TypeScript client SDK | Full human index |