lemma-work/lemma-platform/lemma-builder
Claude Code and agent skill by lemma-work/lemma-platform
- community
Checking that the SKILL.md file is still in the repository.
Design and build complete Lemma pods: model tables/files/functions/agents/workflows/schedules/connectors/surfaces/apps from a problem statement, author a local pod bundle, import progressively with the Lemma CLI, and verify every layer. Use for pod design, creation, restructuring, import/export, and app development. Do not use for day-to-day operation of an existing pod; use lemma-user instead.
Install
npx vskill@latest install lemma-work/lemma-platform/lemma-builderSKILL.md
Lemma Builder
What Is A Pod
A pod is one team's operating system: a shared workspace inside an organization that holds everything one use case needs — tables and files (data, with documents auto-indexed for built-in RAG), functions, agents, workflows, schedules, and connectors (automation), and apps and surfaces (interfaces) — under one permission boundary. Two rules run through all of it: every workload starts with zero access and is granted resources explicitly by name, and a workload acts under the delegated identity of the user who invoked it — so RLS and the personal /me area resolve to that user, and the run can do only what that user could do and the workload was granted. Good pod scope = one team, one operating loop, one coherent data model.
Read `references/pod-model.md` first. It is the canonical model every otherdoc grounds in — identity & permissions, the data/automation/interface layers,how the resources interact, and how a pod is authored. This file is the buildentry point on top of it.
The Resources
| Resource | What it is | What it solves | |
|---|---|---|---|
| Tables | Typed-column data store; per-table row-level security (RLS-on by default = each member's own rows; enable_rls: false = shared team data), foreign keys, enums | The pod's database: tickets, leads, approvals — durable structured state | |
| Files | Document store under shared /… folders (e.g. /knowledge) and personal /me; uploaded documents are auto-indexed and semantically searchable — built-in RAG — with converted-markdown reading | The pod's knowledge and artifacts: contracts, manuals, reports, generated deliverables | |
| Functions | Typed Python entrypoints run server-side as workload principals | Deterministic logic: validation, multi-table writes, external API calls, transforms | |
| Agents | LLM workers with instructions, toolsets, and granted resources | Judgment: classification, drafting, extraction, research, conversation | |
| Workflows | Node graphs of FORM / AGENT / FUNCTION / DECISION / LOOP / WAIT_UNTIL steps with durable runs | The process layer — orchestrates functions, agents, and humans (form nodes are assigned to pod members) | |
| Schedules | Time-based (TIME cron) or event-based — DATASTORE (table row events) and WEBHOOK (connector events) | Starting agents or workflows automatically | |
| Connectors | Third-party apps (Gmail, Slack, …) declared in the pod by slug; each call runs as the member's own account or one shared account, never a credential the workload holds | Acting on external systems | |
| Surfaces | One pod agent exposed on Slack/Teams/Telegram/WhatsApp/email | Meeting users where they already chat | |
| People outside | Contacts (known by their channel), web chat visitors, and tables opened to outside rows — none of them sign in | Customer support, sign-ups, intake, "where is my order" — see references/people-outside.md and the lemma-form skill | |
| Apps | Custom browser apps deployed into the pod — single-file HTML (no build) for one page, or Vite + lemma-sdk for multi-page apps | The product UI: dashboards, queues, detail views, workflow inboxes |
Choosing among them — six heuristics (full text in references/pod-model.md → "Choosing a primitive"; pod-design.md turns them into decision tables):
- One step, one agent. One agent returning rich
output_schemabeats an agent→agent chain; split only for orthogonal judgments. - Workflow = checkpoints + humans. Reach for a workflow when people approve, are assigned steps, or watch progress — not for a lone call.
- Surface = a human is talking. A chat-platform conversation is a surface; a system event driving unattended work is a schedule → workflow/agent.
- Events choreograph workloads. A table write or connector trigger starts the next workload (server-side); an app stays live via
watchChanges(client-side). - Occam's razor. Build the fewest agents and nodes that satisfy the use case.
- Reach for the most direct primitive. A single record write is a direct records-API call, not a function; a bare agent is called directly or granted as a tool — never wrapped. A function earns its place only for deterministic multi-step work (coordinated writes, write + compute, or a connector call).
The Build Loop
Pods are built as local directory bundles and imported with upsert. This is the primary path — inline lemma <resource> create --data ... is only for quick experiments.
Scaffold, don't hand-write. lemma <resource> init writes a near-runnable, commented bundle file (JSONC — // and /* */ comments and trailing commas are allowed) with the right shape, folder==name wiring, and the backend defaults (visibility, RLS, function headers). Edit it, then import.
By hand, or after scaffolding — the bundle is always the source of truth:
Bundle layout (folder name must equal the resource's name):
Build order follows dependencies: connectors → tables → files → functions → agents → workflows → schedules → surfaces → app → seed (grants, schedules and surfaces name a pod connector by slug, so it is declared first). Verify each layer with realistic data before adding the next.
Build for the hero moment, not just for correctness. A pod that imports cleanly and passes its tests can still be plumbing nobody wants to open. Before building, name the one screenshottable "oh" — the agent doing real work on its own, behind an interface someone adopts (see references/pod-design.md). The app (or surface) is usually the product — design it like the thing people live in, not an afterthought tacked on last. And seed the pod so it demos itself: a seed/seed.sh of sample rows, files, and one completed run, so opening the app shows the hero moment immediately instead of an empty state. (Rows and file bytes can travel — pods export --data-table <t> --folder <path> names them one at a time on the way out, and pods import --with-data --with-files applies them on the way in — but a seed/seed.sh is still the better demo path: it is re-runnable and readable. Record it in the README.)
Three rules that bite everyone:
- Zero access by default, capped by whoever invoked it, and no destructive power without a grant or approval. Agents and functions are created with NO access to anything — not tables, not files/folders, not connectors. Every resource they touch must be granted explicitly, either via
permissions.grantsin their bundle JSON (exported automatically, replaced on import) or, against a live pod,lemma functions|agents permissions add <name> <resource>:<perms>. Import andlemma pods doctorboth flag a workload that ends up with no grants at all — the usual reason a fresh pod 403s. A grant is a ceiling on the workload, not a promotion for the person: a run does the intersection of the workload's grants and the invoking member's own access, so aVIEWERrunning a write-granted agent still cannot write.MISSING_WORKLOAD_RESOURCE_GRANTmeans the workload half is missing (grant it);DELEGATION_EXCEEDS_INVOKERmeans the person half is (fix their role — more grants change nothing);DESTRUCTIVE_ACTION_REQUIRES_APPROVALmeans a delete/manage action needs an explicit destructive grant or a user's session approval, which opens the gate without conferring authority. Full 403 decoder + the complete model inreferences/authorization-model.md. - Not everything bundles. Pod connectors (
connectors/<slug>/<slug>.json) round-trip, but the org's installations and each member's connected accounts never do — record in the pod's README who has to connect what. Surfaces and workload permissions do round-trip. File bytes and table rows round-trip only when you ask, and the two ends spell it differently: export names each one (--data-table <table>,--folder <path>, repeatable — there is deliberately no "everything" flag), while import takes--with-data/--with-files. - Leave a runbook. Every production-quality bundle should include a README with: purpose, required CLI context, non-bundled setup steps, required uploaded files, which connectors each member must connect (or which account is shared), verification payloads, and the final end-to-end smoke test.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassedPattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglemma-skills/lemma-builder/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lemma-work/lemma-platform/lemma-builder)