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/:

SkillJob
lunnoa-solution-designInterview the human, map intent to Lunnoa primitives, write a build brief
lunnoa-clientImplement: auth, CLI discovery, codegen, define* / runs / JSON sync / CLI deploy, React hooks

After npm install @lunnoa/client, copy them into your app:

terminal
npx @lunnoa/client skills install

This 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:

partner-prompt.txt
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)

  1. Clarify with lunnoa-solution-design (trigger, actor, data, HITL). Actors are Lunnoa users.
  2. Auth: Lunnoa user JWT via createBrowserClient and lunnoa.auth.login. Do not sign the app in with lna_. The API key in .env is for CLI discovery, deploy, pull, and push only.
  3. Discover: npx @lunnoa/client tools list --json --for-agent, then tools get <actionId> --json. For a workflow trigger, apps get <appId> --json and use triggers[].triggerId in defineTrigger. Also apps, 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, and skills install refreshes the skills. SDK equivalent: workflowApps.list(). Do not invent catalogue action ids or trigger ids. See Discovery and CLI.
  4. Codegen for typed UIs: npx @lunnoa/client codegen …. See Codegen.
  5. Run vs save: Ad-hoc: actions.run, runs.start, workflows.execute. Durable agents and workflows default to JSON in lunnoa/ (npx lunnoa-client status, then pull, then push). That sets codeSource to synced. Use npx @lunnoa/client workflows|agents deploy on a .ts / .js / .mjs file only when the definition needs code. That sets codeSource to generated and locks the UI. .json deploy is a push. Entity types stay on entity-types deploy. Run status before editing, pull before push, and ask the human before --force. Commit lunnoa/lunnoa.lock.json. See Sync with the UI, Run actions, Start runs, and CLI.
  6. 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 a key. Do not leave data wiring for the builder. See Passing data between steps. Branch approve / reject or if / else with paths on the last step; see Branches.
  7. Entity attributes: Unknown keys are rejected unless the type allows them; use extensions for flexible bags. See Entities.
  8. Boundary: Client defineAction is not toolkit createAction. Use @lunnoa/toolkit only for in-platform integration apps.

Related guides

GuideWhen
AuthenticationUser login, CORS, CLI keys
AgentsEnd-to-end define, deploy, and chat
The agent fileJSON identity, image, canvas, and what stays out of the file
CapabilitiesTools, links, skills, drive, and shares
Runtime settingsEvery settings key
Define locallydefineWorkflow / defineTrigger / defineAgent / defineEntityType / defineAction
EntitiesStrict attributes, extensions, type deploy
TablesReference and lookup data, upsert by slug
React hooksHeadless progress, chat, inbox, entities
Agent chatSSE UIMessage streaming
CLItools list / tools get, then deploy
Sync with the UIpull, push, status, conflicts, CI
TypeScript client SDKFull human index