plugins/app-builder/skills/appbuilder-action-scaffolder/SKILL.md
Create, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
npx skillsauth add adobe/skills appbuilder-action-scaffolderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Full lifecycle skill for Adobe Runtime actions — scaffold, implement, deploy, and debug. Place action code at src/<extension-dir>/actions/<action-name>/index.js and register in src/<extension-dir>/ext.config.yaml.
Pick the template that matches the user's intent. Default to assets/action-boilerplate.js for generic actions.
| User wants | Template | | --- | --- | | Simple action / generic starting point | assets/action-boilerplate.js | | Minimal prototype (bare-bones) | assets/action-scaffold-template.js | | Database CRUD (durable records, indexes) | assets/database-action-template.js | | Webhook receiver (I/O Events) | assets/event-webhook-template.js | | Custom event provider | assets/event-provider-template.js | | Journaling consumer (replayable events) | assets/journaling-consumer-template.js | | Large payload response (>1 MB) | assets/large-payload-template.js | | Action sequence pipeline | assets/action-sequence-template.js | | Asset Compute worker (AEM renditions) | assets/asset-compute-worker-template.js | | Debug Runtime action issues | references/debugging.md |
When the user's request maps unambiguously to a single pattern above — they name a specific pattern, reference a template, or describe a use case that clearly matches one entry — skip straight to scaffolding. Use the matched template and proceed directly.
Examples of fast-path triggers:
assets/event-webhook-template.js, scaffold directlyassets/asset-compute-worker-template.js, scaffold directlyassets/database-action-template.js, scaffold directlyassets/action-boilerplate.js, scaffold directlyIf there is any ambiguity — multiple patterns could fit, constraints are unclear, or the user hasn't specified enough to pick a single approach — fall through to the full workflow below.
src/<extension-dir>/actions/<action-name>/index.js. This keeps paths aligned with the generated extension layout.src/<extension-dir>/ext.config.yaml. Do not put a root-level runtimeManifest in app.config.yaml; the CLI silently ignores it.src/dx-excshell-1/ — Experience Cloud Shell SPA (default)src/aem-cf-console-admin-1/ — AEM Content Fragment Console extensionsrc/dx-asset-compute-worker-1/ — Asset Compute worker
Use the actual directory name from your project's app.config.yaml $include entries.{ statusCode, body } for standard web actions; add headers only when needed.aio app dev for local iteration (use aio app run if actions use State SDK, Files SDK, or sequences), aio rt action invoke for direct testing, aio app deploy for publishing.references/playbook.md for this capability.references/checklist.md before final handoff.references/playbook.md for detailed execution guidance.references/checklist.md for pre-handoff validation.references/prompt-pack.md for ready-to-use execution prompts.references/runtime-reference.md for action structure, params, response formats, SDK usage, and CLI operations.references/aem-apis.md for AEM Content Fragment API surfaces — decision table, Delivery OpenAPI, Management OpenAPI, GraphQL persisted queries, and the deprecated Assets HTTP API — with auth patterns and action code for each.references/action-patterns.md for common action patterns, including CRUD API, cron, multi-step processing, database CRUD, webhook intake, custom event providers, journaling consumers, large payload redirects, action sequence composition, and Asset Compute workers.assets/database-action-template.js, assets/event-webhook-template.js, assets/event-provider-template.js, assets/journaling-consumer-template.js, assets/large-payload-template.js, assets/action-sequence-template.js, and assets/asset-compute-worker-template.js when the user request maps directly to one of the newer boilerplate patterns.../_shared/categories/architecture-runtime.md for Adobe service-specific guidance.application.runtimeManifest in app.config.yaml.runtimeManifest; App Builder CLI ignores it for action configuration.python3 ../_shared/scripts/validate_manifest_structure.py <path-to-app.config.yaml>.../_shared/references/appbuilder-manifest-guardrail.md for valid and invalid examples.application.runtimeManifest (or the extension ext.config.yaml pattern), run the manifest validator, run npm install, then retry aio app deploy.annotations.require-adobe-auth: true, confirm the shell or caller actually provides the token, and verify aio auth login plus Adobe project/workspace access for the target APIs.require-adobe-auth: true manifest annotation (gateway-level rejection) and a code-level Authorization header check inside the action. Disabling one layer does not disable the other. During local dev, set require-adobe-auth: false and stub the code-level check; otherwise 401 errors persist across redeploy cycles. See references/runtime-reference.md § "Common Auth Issues" for the full debugging guide.references/implementation-template.md to structure delivery artifacts for this high-frequency capability.scripts/accelerator.py to generate an execution checklist from request context.assets/action-scaffold-template.js — Minimal scaffold for quick prototyping. Use this when you are starting from scratch, want the bare minimum action shape, or need to validate the basic params-in / response-out flow before adding production concerns.assets/action-boilerplate.js — Production-ready template with logging, input validation, error handling, and response formatting. Use this when the action is meant for production use, shared team handoff, or any implementation that should start with observability and defensive defaults already in place.assets/database-action-template.js — Durable database CRUD starter with collection initialization, indexes, and document-style operations.assets/event-webhook-template.js — Adobe I/O Events webhook receiver with challenge handling, signature verification, and idempotent event processing.assets/event-provider-template.js — Custom event provider starter for bootstrapping provider metadata and publishing domain events.assets/journaling-consumer-template.js — Scheduled journaling consumer that polls the journal, stores the cursor, and processes replayable event batches.assets/large-payload-template.js — large payload response starter that writes oversized responses to Files storage and returns a redirect URL.assets/action-sequence-template.js — Starter manifest and action layout for a linear action sequence pipeline.assets/asset-compute-worker-template.js — Asset Compute worker scaffold for AEM rendition processing with the Asset Compute SDK.agents/ directory stores agent-platform integration metadata that complements the standard skill directories.agents/openai.yaml defines the OpenAI-facing skill configuration, including the display name, short description, and default prompt used to invoke this skill in OpenAI-compatible agent experiences.SKILL.md; use agents/ only for platform-specific integration details.tools
Identifies which items (pages, campaigns, products, channels, regions) had the biggest increases or decreases for a key metric between two time periods. Use this skill when someone asks "what's up and what's down," "which campaigns moved the most," "top gainers and losers," "what pages are trending," "show me what changed by channel," or any variation of identifying the biggest movers and decliners for a metric.
tools
Compares the performance of two or more audience segments across key metrics side by side. Use this skill when someone wants to compare audiences, cohorts, or groups — for example, "how do mobile users compare to desktop users on conversion," "compare new vs. returning visitors," "show me the difference between these two segments," "compare these audiences on our KPIs," or "which segment performs better." Also trigger for "segment comparison," "audience comparison," or "cohort comparison."
business
Produces a compact KPI digest showing how key metrics changed over a period and what's driving the movement. Use this skill when someone asks for a performance summary, a weekly recap, a morning briefing, a KPI update, or any variation of "how did we do this week/month." Also trigger for requests like "give me a performance overview," "what moved in the last 7 days," "pull our KPI report," or "summarize our metrics."
testing
Analyzes a multi-step conversion funnel to find where users drop off and which steps have the worst leakage. Use this skill when someone describes a journey or funnel and asks about conversion rates, drop-off, fallout, or step completion. Trigger for phrases like "analyze our onboarding funnel," "where are users dropping off," "what's our checkout conversion rate," "funnel analysis," "show me fallout between these steps," or "which step loses the most users."