# Turn Into App

> Turn visible project context, a proven thread, skill, or workflow into a runnable Agent-Native app with simple buttons, visible agent steps, preview, and deployment handoff. Use when a user invokes `/turn-into-app` or asks to make a workflow into an app, including from Claude or ChatGPT on the web, including when the source is a spreadsheet link or upload.

- Skill: `builderio/turn-into-app` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add builderio/turn-into-app`
- Raw SKILL.md: https://api.skillmd.com/api/skills/builderio/turn-into-app/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: Builder.io (https://skillmd.com/u/builderio)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/builderio/turn-into-app

---


# Turn Into App

## Host execution boundary

Classify the runtime before choosing a build path. The presence of a Dispatch
or Builder connector does not make a coding host an online host:

- **Local coding host** - Codex Desktop/Code, Claude Code, Cursor, or any
  runtime with a terminal, filesystem, and target checkout. Build in that
  checkout: scaffold, edit, run, and verify the app locally. Do not call
  `start-workspace-app-creation`, `create_workspace_app`, or any Builder
  handoff for this path. The local implementation steps below are required.
- **Non-coding browser host** - Claude Web, ChatGPT Web, or a
  Claude/ChatGPT Project in the browser when no target checkout or filesystem
  is available. Act as the source analyst and handoff orchestrator. Do not run
  `npm`, `pnpm`, `npx`, `agent-native create`, or `add-app`; do not edit files,
  create artifacts, or start a local dev server. After writing the bounded
  source brief, call the connected Dispatch action
  `start-workspace-app-creation`. Pass the brief and repeatable workflow in
  `prompt`, plus the inferred `appId`, `description`, `template`, and selected
  `resourceIds` when available — reference resources by ID rather than pasting
  whole knowledge files into the prompt. Then report what Dispatch actually
  returned — the branch, the path, and the status it gave. This host cannot run
  or inspect the app, and the returned path can 404 until the branch merges and
  deploys, so the handoff ends at a pending or unverified status unless a status
  or verification action is available to call. This is the Builder handoff for
  browser hosts only.
- If the host is ambiguous, inspect the environment. A real cwd, terminal, and
  target workspace mean local coding host. Do not infer browser mode from the
  availability of a Builder connector.
- For the browser-only path, do not substitute the generic
  `create_workspace_app` MCP tool. That tool is a local workspace scaffolder,
  not the Builder handoff. Connect the Agent-Native Dispatch MCP connector
  only; Dispatch uses the authenticated Builder Projects API to reuse or
  provision the workspace project before starting the Builder Cloud Agent.
- If the browser-only handoff action is unavailable or Dispatch is not
  authenticated, stop with the connector setup needed. Do not fall back to a
  host sandbox build or claim that the app exists.
- Never invent a Builder branch URL. If Dispatch returns only an acknowledgement
  or a path without a URL, report the handoff as unverified rather than calling
  it a ready or verified Builder branch.

## Default behavior

For a local coding host this is an end-to-end local build skill, not a request
for an app proposal. For a non-coding browser host, the end-to-end result is a
verified Builder handoff and the resulting workspace app, not code written in
the browser host.

- With no argument, choose the source in this order: visible project context,
  then the current thread. A fresh Claude or ChatGPT Project is a valid source
  on its first turn. Treat its visible project instructions, knowledge files,
  and supplied past runs as the source; a completed thread is not required.
  Treat the current turn as a request or configuration unless it contains a
  concrete repeatable workflow.
- With a named skill or local workflow, read that source and package it
  immediately, even at the beginning of a thread. For example,
  `/turn-into-app /some-skill` means “turn `/some-skill` into an app.”
- With an attachment or path, read the supplied artifact as the source.
- Do not ask the user to restate context that is already in the thread.
- When invoked from an Agent-Native app, use its visible project context first,
  then the current thread. If the current runtime has a target checkout, use
  the local implementation path; use a workspace/coding-agent handoff only
  when the runtime cannot edit files. Do not claim the app exists without an
  actual path and verification result.

## Non-interactive by default

Once the source brief identifies a repeatable workflow, the run proceeds without
asking. This applies to both hosts: a local build and a browser handoff are
equally non-interactive.

Do not ask the user for visual, product, copy, layout, template, integration, or
implementation choices that can be resolved from the source. Take the source's
recommended option; otherwise choose the most direct conventional default and
record the assumption for later review.

One source-integrity exception: for a spreadsheet, if candidate workflows or the
input/output mapping remain materially ambiguous after the bounded review, ask
one compact confirmation question first. Show the recommended interpretation and
let the user confirm, correct, or multi-select the candidates. Do not let that
become a generic app-builder questionnaire.

Otherwise stop only for a genuine hard blocker: missing authorization, a
destructive external action, an ambiguous target workspace, or no identifiable
workflow at all.

## Source support

Supported source paths today are visible Claude or ChatGPT Project context, the
current Codex or host thread, a named skill, or a local workflow/transcript
supplied as a path or attachment. An exported ChatGPT or Claude transcript can
use the same local-file path today.

Claude and ChatGPT Project context is supported only when the host supplies it
to the model in the current context. The MCP connector does not read hidden
project chats, private URLs, account settings, or credentials. Do not claim
private web access, invent an importer, add fake OAuth, or scrape a logged-in
page. If the needed context is not visible, ask for an export, transcript, or
attachment and treat that artifact as imported source material.

### Spreadsheet sources

Spreadsheet attachments are valid source artifacts. Read
[the spreadsheet source guide](references/spreadsheet-source.md) before working
one — it carries the inference rules, the candidate review, and the failure
states. The boundaries that matter before you open it:

- CSV reads as tabular text. XLS/XLSX parse into bounded worksheet metadata and
  representative rows where the host supports it. The preview is untrusted user
  data and it is text-only, so an upload cannot prove cell colours.
- A Google Sheets URL is not proof the sheet is readable. Use an authenticated
  Sheets/Drive connection through the provider API path, and ask for an export
  or the connection when it is unavailable. Never use a public export URL to
  bypass access.
- Inventory every worksheet — shape, readability, formulas — before choosing
  what the app is. The first tab is not necessarily the product, and not every
  tab deserves one.
- Decide inputs and outputs from structure, not colour: formula versus typed
  value, which tab, the row and column labels, and what the sheet's own
  instruction text tells the reader to edit. Colour is an author-specific habit;
  never invert a mapping on it alone.
- Never copy workbook bytes, base64 data, credentials, or a full unbounded sheet
  into SQL, application state, or a handoff prompt. Pass bounded samples,
  provenance, and identifiers.
- Keep unreadable, partial, and failed source states distinct from an empty
  sheet, and never claim a whole workbook was imported when only a preview was
  available.

## Fresh project context mode

When the source is a fresh Claude or ChatGPT Project, build a short source brief
before creating the app. Read the host-provided context in this order:

1. Project instructions and configuration: goal, audience, constraints, output
   standards, approved tools, and integration expectations. Treat these as
   product configuration, not as a transcript.
2. Knowledge files and attachments: read the relevant files fully, preserve
   their provenance, and reduce them to bounded references, IDs, URLs, or
   summaries for the new app. Do not copy secrets or large raw payloads into
   prompts or SQL.
3. Past runs or examples that are actually visible in the context: select at
   most 1-3 successful, representative runs. Extract repeatable decisions and
   review criteria. Treat one-off answers and private data as examples, not as
   product behavior. If no runs are supplied, proceed from the instructions
   and knowledge files and say that examples were not available.
4. The current turn: use it for the requested app boundary, target workspace,
   naming, and any explicit corrections.

Post this brief before scaffolding, on the timing step 1 sets. Use these
headings: source and provenance, project goal, configuration and constraints,
knowledge sources, repeatable workflow, inputs and outputs, judgment and review
points, representative runs, integrations and permissions, and unknowns and
assumptions. This is the compact contract for the app. It keeps the new app
useful without pretending that hidden Project history was imported. See
[the fresh Project reference](references/fresh-project.md) for the host setup
and brief template.

If the visible Project context has no concrete repeatable job and no primary
goal can be inferred, ask for one focused clarification or a representative
artifact. Otherwise use the project's primary goal and source conventions; do
not ask a questionnaire and do not fall back to a generic “what app do you
want to make?” builder.

## Source selection guard

The generated app must implement the concrete workflow found in the source. It
must not become a generic “what app do you want to make?” intake form.

- In a delegated or forked task, read the actual referenced source thread and
  the latest explicit workflow direction in the current task. If they disagree,
  the latest concrete workflow direction wins.
- Do not treat a thread that merely discusses building this skill as the product
  source unless the user explicitly asks to appify that meta-workflow.
- If the source contains several workflows, choose the latest successful,
  repeatable job that motivated the request and name it in the handoff. If no
  concrete job can be identified, stop and report what is missing instead of
  inventing an app-builder UI.

## UI contract for generated apps

Generated apps must follow the shared Agent-Native surface model:

- Keep the domain workflow on a named route (`/workflow`, `/automations`,
  `/block`, or the source's equivalent). Preserve the scaffold's full-page
  chat route instead of replacing it with a domain form while leaving the
  layout configured as a chat page.
- Use the right `AgentSidebar` for contextual AI. Every button-triggered
  `sendToAgentChat` handoff should open or focus that sidebar and keep the user
  on the current domain page.
- Every AI-labeled button must actually call `sendToAgentChat` with bounded
  context and `openSidebar: true`. Label deterministic local actions as local,
  preview, or analyze instead of AI.
- Never use sparkle, wand, magic, robot, or similar decorative AI icons. Use a
  message or neutral action icon, or no icon when the button label is enough.
- Make the left navigation describe domain destinations. Chat is a separate
  destination, not the label for every app page.
- For a spreadsheet-derived app with multiple confirmed candidates, make each
  candidate a separate named left-navigation destination. Keep the shared
  source provenance visible, but show that candidate's selected worksheets,
  ranges, inputs, outputs, historical context, and confirmation state on its
  destination.
- Start with one primary action and one compact state. Put setup choices,
  advanced inputs, diagnostics, and long explanations behind progressive
  disclosure or later workflow steps.
- Choose a named visual direction in `DESIGN.md` before styling and build to it.
  Preserve existing brand tokens; a new unbranded app picks its own
  product-fitting palette rather than inheriting a sibling app's accent.
- Standalone apps that render `AgentSidebar` must keep one assistant-ui runtime
  context. Pin the versions compatible with the installed core/toolkit peer
  graph, and add Vite dedupe/aliases when linked or transitive packages resolve
  duplicate assistant-ui modules. Verify a fresh AI handoff has no
  `AssistantUiStaleIndexErrorBoundary` or stale-index console error.
- Before handoff, inspect the first viewport and remove the text density,
  repeated cards, unrelated forms, and generic helper copy the user does not
  need until the next decision.

In a local code-agent runtime, read `frontend-design` for the visual direction
contract, aesthetic guidelines, and named review passes behind these rules.

## 1. Extract the workflow

Read the full available source, then write the brief out before the first
scaffold command. This is the user's one cheap chance to catch a misread —
after this point a correction costs a rebuild. A few lines per item; it is a
checkpoint, not a document.

State it and keep going. Do not wait for approval; see *Non-interactive by
default*. A brief that appears only in the handoff does not count — by then it
cannot change anything.

The brief covers:

- the user and repeatable job;
- inputs and outputs;
- the 1-3 judgment-heavy agent moments;
- the buttons, review points, and retry states a user needs;
- data, permissions, integrations, and failure boundaries.

For a spreadsheet source, also include the workbook/file or spreadsheet ID,
worksheet and range candidates, source snapshot/live semantics, formatting
signals and their confidence, selected candidate destinations, and the exact
confirmation or clarification still needed. A spreadsheet's inputs and
outputs have two layers: the mapped source cells/ranges, and the generated
app's user-facing results/actions. Name both so the Builder does not confuse
an output cell with an app write or a historical value with an editable input.

Preserve useful judgment from the source, but do not turn a one-off answer,
private data, or an unverified result into a product contract. If the source is
not available or does not contain a repeatable job, say what is missing rather
than claiming the app is complete.

## 2. Create a fresh app

Choose a short slug from the workflow and create a new directory. Never
overwrite an existing app. If the user supplied a directory, use it; otherwise
use `apps/<slug>` inside an existing Agent-Native workspace, or a new sibling
directory when working outside one.

Say once, before the first command, what this run will need to execute —
dependency install, scaffold, typecheck, doctor, and a dev server. A host that
asks per command will ask many times; one stated expectation up front is what
keeps that from reading as something going wrong.

For a new UI-bearing standalone app, use the current Agent-Native scaffold and
then read the generated `AGENTS.md`:

```bash
npx @agent-native/core@latest create <app-directory> --template chat
cd <app-directory>
pnpm install
```

When working inside an existing Agent-Native workspace, create the app from
the workspace root instead:

```bash
pnpm exec agent-native add-app <slug> --template=chat
```

Do not use `create` for an existing workspace; it scaffolds a new standalone
workspace rather than adding an app to the current one.

Use a first-party template only when it materially fits the workflow. Keep the
new app independent from the source thread's working tree unless the user
explicitly asks to extend an existing app.

Read the generated `DESIGN.md` before building the first screen and fill in the
visual direction as part of the app brief. Do not copy the previous app's
palette just because its tokens are nearby.

### When the scaffold does not complete

A scaffold or install step can fail, time out, or be denied when the host asks
the user for permission. All three are the same situation: the app you were told
to build does not exist yet. Retry once where a retry could plausibly help, then
stop and report the blocker with the exact command, the failure, and what is
already on disk.

Never work around it. Do not hand-build the app in another stack, do not edit a
pinned dependency version to force an install through, and do not carry on
against a half-created directory. An app that is not the real Agent-Native
scaffold is a different product, not a smaller version of this one, and a
handoff that reports success for it is worse than no app at all.

Do not decide for yourself that a workaround is the only path forward. That
judgment is what produced every case above — each of those runs had a reason
that looked sufficient at the time. Report the blocker and let the user choose.
If they ask for a workaround, it becomes a finding rather than a detail: name it
in the handoff as a pending item, with what you changed and why, so the next
person sees the problem instead of inheriting it silently.

## 3. Turn the workflow into buttons and agent work

Implement the smallest useful surface around the extracted brief. The app
should make the repeated path obvious without hiding the agent's judgment:

- Give each important repeated moment a clear button, such as “Analyze,”
  “Suggest options,” “Draft,” “Review,” or “Publish.” Use the source's actual
  vocabulary when it is clear.
- Put deterministic reads, writes, approvals, provider fetches, and publishing
  in focused `actions/` with `defineAction`. The UI and agent must call the
  same action surface.
- If a workflow is framed as research, analysis, generation, recommendation,
  or synthesis, start it in the AgentSidebar and let the agent orchestrate
  those actions. Do not hide an AI-shaped multi-step workflow behind one
  opaque action just because the implementation is deterministic.
- Use application state for the current screen, selected item, and focused
  object so the agent can see where the user is.
- Use `sendToAgentChat({ message, context, submit: true, openSidebar: true })`
  for intentional button-triggered agent work. Use `submit: false` when the
  user should review or edit the proposed prompt in the AgentSidebar first.
  Keep follow-up and revision prompts in that same thread; do not add a second
  freeform textbox beside the result.
- Pass IDs, URLs, and bounded summaries in context. Do not paste large provider
  dumps into prompts, call an LLM directly from the browser, or invent fake
  progress.
- Make agent results visible, editable, retryable, and attributable. Keep
  irreversible actions behind an explicit review or confirmation point.

Use the existing shadcn/ui primitives, Tabler icons, shared composer, and
optimistic action patterns. Do not add a parallel CRUD API route for an action.

## 4. Keep onboarding shared

Use the framework's existing setup experience. The app should offer the normal
“Connect Builder” and “Add your own keys” paths for AI setup. Do not create a
second credential form or hardcode a provider key.

In local-development instructions, add a brief note that a developer can set
an environment variable such as `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` before
starting the app; after restart, the setup prompt is no longer shown when the
key is available. Keep real secrets out of source, examples, and generated
content.

Turn-into-app apps should commit an `agent-native.json` app configuration so a
plain `pnpm dev` has the right first-run behavior without extra flags:

```json
{
  "version": 1,
  "onboarding": {
    "firstRun": {
      "development": "connect",
      "production": "connect-and-integrations"
    }
  }
}
```

`connect` keeps the Connect Builder / Add your own keys choice visible and
skips only the generic “This app is an agent.” integrations catalog. The
production value includes that catalog for a hosted app. Do not replace this
with a local credential form or remove the shared onboarding. In development,
the shared Connect Builder card also explains the deployment-level
`ANTHROPIC_API_KEY` / `OPENAI_API_KEY` fallback and links to the full
environment-variable guide.

When the onboarding default needs code rather than a static mode map, add an
optional `agent-native.config.ts` with the same returned shape:

```ts
import { defineAgentNativeConfig } from "@agent-native/core/config";

export default defineAgentNativeConfig(({ isDev }) => ({
  version: 1,
  onboarding: {
    firstRun: isDev ? "connect" : "connect-and-integrations",
  },
}));
```

The Vite preset loads this file automatically on supported Node versions. The
JSON file remains the portable, inspectable fallback. See the [Agent-Native
app configuration guide](/docs/agent-native-config) for precedence, supported
modes, and the boundary between committed config and deployment secrets.

For an account-free local preview, create the ignored local `.env` file with
`AUTH_DISABLED=1` before starting the dev server. This is only for loopback
development; never commit or deploy this setting. AI/provider connections still
use the normal onboarding flow or the documented environment-variable keys.

## 5. Run it immediately

From the new app directory:

```bash
pnpm dev
```

For a fresh local test app, use the ignored `.env` with `AUTH_DISABLED=1` so the
domain UI opens without an account; the committed app config makes shared
onboarding visible. Keep the process running so the user can try the app. Read
the actual server output and report the real local URL. If the app needs installation or a setup step,
complete it when possible and distinguish “not configured” from an unavailable
credential store.

## 6. Verify, build, and deploy

Exercise the actual happy path, not only the source files:

1. Load the reported URL and confirm the main route renders.
2. Confirm the shared onboarding state or a configured local key.
3. Click the primary workflow button and confirm the intended agent handoff.
   Also click every other AI-labeled button and confirm it opens the same
   contextual sidebar with the expected prompt or staged context.
4. Confirm the result, action persistence, application state, and sync path.
5. Check the dev output for browser/runtime errors, and capture input, result,
   and agent-sidebar states so the complete flow is reviewable.

Run the checks the generated app's own `AGENTS.md` names — typecheck and
`agent-native doctor` — and fix what they report before building.

Then run the supported build. For a standalone app, use the generated app's
documented build and hosting path. For an app inside a workspace, use the
workspace deploy command, for example:

```bash
npx @agent-native/core@latest build
npx @agent-native/core@latest deploy --preset netlify
```

Use `vercel` or another supported preset when that is the configured target.
Attempt deployment when the user requested it or the project already has the
required provider configuration. If external authentication, a production
secret, or a hosting decision is missing, finish local verification and report
the exact remaining handoff without claiming a live deployment.

Label evidence separately: locally running, locally verified, build-ready,
deployed, and live-verified are different states.

## Handoff

End with the new app directory, local URL, visual direction, what the buttons do,
account-free local-preview status, verification performed, deployment URL if it is
real, and one precise pending step when something could not be completed. Keep the
handoff short enough to use in a demo or recording.

Do not restate the brief here — step 1 already posted it. Report what changed
from it instead: assumptions you added, anything the source turned out not to
support, and choices made where the source was silent.

The handoff describes what exists, not what was intended. If the scaffold never
completed, if a step was worked around, or if the app is not the real
Agent-Native scaffold, that is the headline — not a caveat below one. A handoff
cannot report the build as complete and list the framework the app is built on as
a future improvement; if both would be true, the build is not complete.

