Create an App Builder app
ينشئ تطبيق Adobe App Builder جديد أو إضافة واجهة.
Use when a developer wants to create a new Adobe App Builder app or UI extension — phrases like "create an App Builder app", "build an app that shows … inside Experience Cloud", "new App Builder project", "scaffold an App Builder app", "create an AEM extension", "add a button to the Content Fragment console", "Assets View panel/extension", "Universal Editor extension", "Experience Hub widget", "Workfront extension". Picks the right template for where the app should appear, creates the App Builde
Install
npx skills add adobe/skills --skill app-builder-create-appWorks with
claude-code (native), claude (native), codex (native), chatgpt (native), gemini-cli (native), cursor (native), copilot (native), opencode (native), amp (native), roo (native), kiro (native), goose (native), junie (native), trae (native), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible)
Content
Mandatory prerequisite: Before starting this skill, read and apply [Common Skill Rules](references/common-rules.md).
Create an App Builder app
Turn "what should it do and where should it appear" into a working app running locally inside the target Adobe product. The developer answers one set of questions and gives one confirmation. Nothing is deployed.
<skill-dir> below is the folder containing this SKILL.md. Run scripts as node "<skill-dir>/scripts/<name>.mjs". Run aio commands in the app folder once it exists.
Step 0 — Report skill context
Call report_skill_context once with skill_name: "app-builder-create-app" and skill_version: "1.0.0". Call it again if you return here from app-builder-setup.
Step 1 — Readiness gate (silent when OK)
- No shell on the developer's own computer? Say this needs a desktop or terminal assistant (see
app-builder-setupStep 1), and stop. A shell in a hosted sandbox isn't enough: the app must live on the developer's machine, and the CLI sign-in happens in their browser. - If
app-builder-setupalready completed in this conversation, skip items 3 and 4 and reuse its org. Otherwise runaio --version. Ifaiois missing or older than 11.1.0, hand off to theapp-builder-setupskill. - Org: call
get_organisations(pick automatically if there's one). Tell the developer *"Checking the CLI sign-in. If a browser tab opens, sign in with the same Adobe account."* Then runaio console org list --jsonand check that the org'sidis listed. If it isn't listed or the command fails, hand off toapp-builder-setup. The cause is a different account or environment, or an org without App Builder. - Developer Terms: call
get_projectswith the org andfilterBy: "all"(keep the result for Step 3; don't list it). If it returns the Developer Terms message instead of projects, run the Terms flow fromapp-builder-setupStep 5: show the Terms link and callaccept_developer_termsonly after the developer explicitly agrees.aio app initfails without the Terms, so stop if they don't agree.
Step 2 — One interview
Ask everything missing in one message, with suggested defaults. Skip what the developer already said.
- What should the app do? The pages or panels, the data they show, and what happens on a click.
- Where should it appear? Show the numbered
labels fromscripts/templates.json. The default is Experience Cloud Shell. Map product words yourself:
- Content Fragment list →
cf-admin; acting on selected fragments →cf-admin-selected; fragment editor →cf-editor. - Assets →
assets-browse(selected assets),assets-details(one asset's side panel), orassets-view(both). - Editing site pages →
universal-editor; AEM home dashboard →experience-hub; Workfront →workfront.
- App name. Don't ask for it. Use a name the developer gave, otherwise derive one from the purpose (see the naming rules in
references/common-rules.md). From it, derive the project name (letters and digits only, starts with a letter, 3–20 characters, e.g.TeamProjects). Also derive the folder: a new or empty folder, lowercase letters, digits and dashes, no spaces (e.g.team-projects). For Experience Hub, the folder name also becomes the widget's id and web address, so choose it carefully. The names appear in the Step 3 confirmation. - New or existing project? The default is a new App Builder project. For an existing one, list the org's projects with
typejaeger(never show that word) by title. - Values needed for the preview link, depending on the surface's
needsintemplates.json. They can be added later:
aemAuthorHost: the AEM author host, for exampleauthor-p123-e456.adobeaemcloud.com.orgShortName: the part after#/@in their experience.adobe.com address.aemSitesPageUrl: a page URL to open in Universal Editor.workfrontUrl: the Workfront address.
If there's no real data source yet, plan clearly labelled sample data (see references/app-patterns.md). If the app will change product content (for example tagging fragments), say that local testing works on real content, and suggest a development environment or test content.
Step 3 — One confirmation
- Project name: compare it case-insensitively with the names from Step 1.4.
- If an App Builder project with that name was created earlier in this conversation (for example by a failed attempt), reuse it by id.
- If another project already has it, offer that project as an option or propose a suffixed name.
aio app initsilently reuses a project with the same name. - Existing project: use its id. Its Stage workspace may already host another app, which a later deploy would replace. Offer a separate workspace named after the app (for example
TeamProjects), passed as--workspace.aio app initcreates it with its own Runtime space. Default to the new workspace when you can't tell whether Stage is in use.
- The folder must not exist or must be empty (the script checks this too).
- Ask once, in plain words: *"I'll create the App Builder project TeamProjects in <org>, with a Stage workspace for testing and a Production workspace for real users, each with its own space on Adobe's serverless platform. Then I'll generate a <surface> app in
./team-projectsand run it on your machine. Nothing is deployed. This takes 2–5 minutes. OK?"* For an existing project, say *"I'll use the existing project … and its workspace …"* instead.
Step 4 — Create the project and generate the app
aio app initchanges the CLI's selected org, project and workspace. First runnode "<skill-dir>/scripts/lib/cli-config.mjs"and recordselection.orgCode,selection.projectIdandselection.workspaceId, so the selection can be restored later. Anullvalue means nothing was selected at that level. Ifokis false, stop and reportconfigError; do not inspect raw CLI configuration as a fallback.- Run
node "<skill-dir>/scripts/init-command.mjs" --surface <key> --name "<App name>" --dir <folder> --org <org code> --project <name or id>. Add--workspace <name>for a separate workspace in an existing project (defaultStage). Add--with-actionwhen the app needs backend logic and the surface'sactionsvalue isoptional. If it returnsok: false, fix the input and retry. - Run the returned
commandwith a 10-minute timeout. Expect 2–4 minutes, mostly npm installs.
- If
answerWithBlankLinesis true (Experience Hub), the template asks one question late in the run. Feed blank lines so its default is accepted:yes '' | <command>. - A single piped newline is not enough: stdin closes before the question appears, and the run aborts with "User force closed the prompt".
- Without
yes(for example in Windows PowerShell), ask the developer to run the command in their own terminal and press Enter at "Project name".
- On failure, show the relevant error line, without secrets.
- Call
get_projectsto see whether the project now exists, and tell the developer. - Terms error: go back to Step 1.4. Org not found or sign-in error:
app-builder-setup. Access or entitlement error: explain using the admin table in theapp-builder-setupskill'sreferences/concepts.md. Name '<workspace>' already in usewhile creating a workspace: retry once with a different workspace name.- To retry, ask before deleting the partly generated folder (only that folder). Re-running reuses the project, so pass its id (Step 3.1). If the developer won't retry, tell them the empty project stays in Developer Console and can be reused later or deleted there.
- Run
node "<skill-dir>/scripts/fixup.mjs" --surface <key> --dir <folder>. It applies known template fixes, makes sure.env,.aioandlogs/are git-ignored, and liststodoitems andnotes. Do the todo items and follow the notes. Ignore rules do not protect files already tracked by Git; if any of these are tracked, stop and help the developer remove them from tracking without deleting their local copies.
Step 5 — Build what was asked
Follow references/app-patterns.md. Read the generated files first, keep the bootstrap and registration code, and implement the requested pages, dialogs, panels and actions. Then run aio app build in the app folder. Fix reported errors, up to 3 rounds. If it still fails, explain what's left.
Step 6 — Run it locally and give the link
- Tell the developer first: *"The first run opens a browser tab asking you to accept a local development certificate. Please accept it within 20 seconds."*
- In the app folder, start the dev server in the background, sending its output to a private log file. Its output can contain request parameters and tokens.
- macOS/Linux:
mkdir -p logs && aio app dev > logs/aio-dev.log 2>&1 - PowerShell:
New-Item -ItemType Directory -Force logs | Out-Null; aio app dev *> logs/aio-dev.log
Keep the process handle. If your client can't keep background processes, ask the developer to run aio app dev in their own terminal and tell you when it says it's ready.
- Check progress only with
node "<skill-dir>/scripts/dev-log.mjs", never by reading the log yourself. It printsready,localUrl,actionUrls, recenterrors,suppressedand the last lines, all redacted. Run it about every 5 seconds untilreadyis true (usually under 30 seconds). Port 9080 isn't guaranteed; uselocalUrl.
- It streams the log with redaction state intact.
--lines 40,--max-errors 10and--max-action-urls 500configure the retained tail lines, newest errors and first action URLs (shown values are the defaults). Counts must be whole numbers;--linesmust be positive, while the other two accept 0 to omit that collection. There is no additional 500-line tail cap. Larger counts can use more memory. IfactionUrlsTruncatedis true, the action URL list is incomplete; don't treat unlisted actions as absent. - Redaction safety limits remain fixed, regardless of those counts: input lines are cut at 20,000 characters before redaction work, and a sensitive structure still open after 200 lines suppresses the rest of the log. These are fail-closed safety guards, not retention settings.
- Stop checking when the dev server process has exited, when
errorsshows that it failed to start (for example a build error or a port already in use), or after 2 minutes. Then stop the dev server if it's still running, explain the redactederrorsand last lines in plain words, and offer theapp-builder-troubleshootskill. - If
suppressedis true, the log contained a long value that looked like a secret, so everything after it is hidden, including later URLs and errors (localUrlcan benulleven whenreadyis true). Tell the developer, and ask them to openlogs/aio-dev.logthemselves for the local URL or the error, without pasting it into the chat.
- Give the try-it link for the surface from
references/surfaces.md, with the placeholders filled in. If the developer lacks access to the product, give the standalone local URL and say what can be checked there. - Leave the server running while they test. Stop exactly that process when they're done or before deploying.
Step 7 — Explain what happened
- What I did: one bullet per command or change, with why, for example
aio app init(created the project and generated the app), the fix-ups applied,aio app build, andaio app dev(runs the app on your machine; nothing uploaded). - What was created: the project and its Stage and Production workspaces in Developer Console, and the local folder. Show a short tree of the folder (UI, actions,
ext.config.yaml, extension point) with one line per item. Mention anynotesfromfixup.mjs. If thequiet-loggingfix-up ran, say why: generated code logged every request parameter and the user's sign-in token. - CLI selection changed:
aio app initalso switches the CLI's selected org, project and workspace (aio where) to the new app's. Mention it. If the developer wants their previous selection back, restore the hierarchy recorded in Step 4.1, starting withaio console org select <selection.orgCode>, thenaio console project select <selection.projectId>if a project was selected, thenaio console workspace select <selection.workspaceId>if a workspace was selected. Do not run these commands withnullvalues or restore a child without its parent selection. If nothing was selected before, there is nothing to restore. The app folder's own link (.aio) isn't affected. - Next step: *"When you're happy with it, say 'deploy to Stage'."* If something fails at runtime, the
app-builder-troubleshootskill can help.
Rules
- Create App Builder projects only with
aio app init, after the Step 3 confirmation. Don't use the connector'screate_projectfor App Builder apps: the CLI also sets up the Stage workspace and Runtime that the app needs. - Don't deploy. Don't use
aio app run, which deploys actions to Runtime, or the interactiveaio app add …commands. - Never read, print or commit
.env,.aioorlogs/aio-dev.log. Read the dev log only throughdev-log.mjs. - Ask for nothing you can look up, and show names rather than IDs.
- If unsure about a product API or UI extension detail, call
search_adobe_docsbefore guessing.
Source and license
- Source
- Adobe Skills
- Original
- adobe/skills/plugins/adobe-for-developers/skills/app-builder-create-app/SKILL.md
- License
- Apache-2.0