App authoring
App authoring from the built-in skills in Executor 2.0.0-beta.79.
This page covers Build an Executor app from the built-in skills shipped with Executor 2.0.0-beta.79. It contains app-authoring/SKILL.md, app-authoring/starter.md.
Build an Executor app
An app is TypeScript source with a default defineApp export from apps.
Its package.json declares the exact apps version it uses, which
framework.release returns. App authors use ordinary async functions; Effect stays inside
the framework. An app’s installed name is separate from its source definition.
Choose how to work
With a shell, prefer the local CLI path in deploy.md: keep the
source in a directory, edit it with your file tools, and deploy with
executor apps (npm executor@beta). The pinned apps package from npm
supplies types and framework-reference.json, so writing code needs no MCP.
Use MCP only to connect accounts and call the deployed app. Without a shell,
build through execute; source then travels as data inside tool calls.
Read only the topics needed
| Task | Reference |
|---|---|
| Start a new UI with storage from a checked example | starter.md |
| Declare queries, mutations, schemas, approvals, skills, icon | tools.md |
| Create, save, deploy, update or select dependencies | deploy.md |
| Build a React UI and subscribe to data | ui.md |
| Store, query or modify app data | storage.md |
| Connect provider accounts and check they work | accounts.md |
| Add a service: MCP, OpenAPI, GraphQL or another API | integrations.md |
| Handle webhooks | webhooks.md |
| Emit events that MCP clients such as ChatGPT subscribe to | events.md |
| Run workflows or scheduled mutations | workflows.md |
| Find the framework version to upgrade to | Check the framework version on your host before upgrading. |
Historical migration from before apps@0.0.1-beta.90 |
Account scope migration |
Historical migration from before apps@0.0.1-beta.38 |
upgrades/0.0.1-beta.38.md |
For an existing app, read its current source and the reference for the part being changed. Tools generated from an MCP server, OpenAPI definition or GraphQL schema are a starting point; when one is missing or wrong, write your own tool beside it with the same account (integrations.md).
Load files through the MCP skills tool using the returned app slug,
version and content revision, for example
{ app: "executor", name: "app-authoring", file: "ui.md", version, revision }.
The management app’s skills.list and skills.read read with the caller’s
linked accounts.
Discover exact contracts
Use tools.search inside execute to find callable app tools. It returns their
exact paths, one-line descriptions and input types. Read a tool’s output type
and whole description with tools.search.describe({ paths }). Discover
framework.search and framework.describe on this Executor app to inspect library functions and methods. These queries
return generated signatures, related types, examples and documentation links.
Framework functions are imports or methods used in app source, not MCP tools.
Call framework.search({ query: { text } }), then framework.describe({ query: { symbol, version, digest } })
with a symbol it returns. Start with apps.defineApp, apps.query, DatabaseTable.insert, or apps/react.useAppQuery.
Both take their input under query, unlike tools.search({ query: "send email" }),
whose query is a plain string.
The reference identifies its exact framework version and content digest. Keep
that identity on subsequent reads. Do not assume a host reference describes a
different pinned apps package; that package ships framework-reference.json.
Hosted management calls require an explicit organization. Discover and call
context.get({}) first. Local management calls have no organization parameter.
Read each discovered signature; do not guess route arguments.
Build and verify
Use output schemas for typed results. Import server declarations as types only in browser code. Put shared schemas in a separate file. Read the relevant reference for return shapes and behavior instead of deploying probe apps.
Deploying compiles TypeScript but does not replace a type check or prove that
the page renders. Verify the requested behavior on the authenticated app page.
If browser access is unavailable, report exactly what remains unverified.
Never put credentials in source, browser code or tool arguments. Use the secure
account connection flow described in accounts.md.
Send feedback
Before your final reply, send feedback with the Executor app’s feedback.submit
tool if anything about Executor slowed you down, confused you or was missing,
or if something worked especially well. Skip it if there is nothing worth
reporting. The executor skill’s feedback.md says what to write.
Start from a checked example
For a small UI with stored records, such as a todo list or inbox, adapt the
live-inbox example returned by framework.describe. It includes SQL migrations,
typed query and mutation, shared schemas, React UI, live subscription,
optimistic insertion, HTML, styles and package dependencies. Reuse those files
instead of reconstructing the framework setup. Choose another approach when
the requested app does not fit this example.
Discover the management app’s framework.search and framework.describe
through tools.search. Call framework.search({ query: { text: "createAppClient" } }),
then framework.describe({ query: { symbol: "apps/client.createAppClient", version, digest } })
with the search result’s version and digest. examples is an array of
{ id, title, files }; read the complete entry whose id is live-inbox,
including its files. Keep this reference
identity when fetching it again; a different pinned package needs its own
reference.
Adapt the table, shared row schema, operations and UI to the requested behavior. Keep the type-only server imports, stable query atom and shared output schemas. Use tools.md for new operations, storage.md for new data access, and ui.md for React and optimistic behavior. The example’s insert-only list does not demonstrate actions on a row that is still being created; read the temporary-ID guidance before adding edit or delete controls.
Carry source forward
The example’s files already has the { path, content } shape accepted by
management tools. After reading the source, fetch the same reference and apply
your edits to those files inside execute. Pass the resulting file array
directly to the discovered create operation. Read deploy.md for
the create, commit and deploy flow. Return the resulting IDs and URL, rather
than printing unchanged source and writing it back into another tool call.
For later changes, fetch the app’s current working source and transform only
the affected files. Submit the complete file list with its expected revision.
An execute call does not retain variables for the next call; fetch the source
again when needed. Preserve unrelated files and edits.
With a shell and the CLI, read the same example from
node_modules/apps/framework-reference.json, the examples entry whose id
is live-inbox.
Write its files into a local app directory once, then edit and deploy them
with executor apps as described in deploy.md. Over MCP only, keep one working copy and serialize its
content with JSON when preparing a tool payload. Do not rewrite valid TypeScript just
to remove backticks or ${...}. See the source transport guidance in
deploy.md.