plugins/aem/edge-delivery-services/skills/create-site/SKILL.md
Creates a new AEM Edge Delivery site from scratch — GitHub repo from the boilerplate, aem-code-sync installation, initial DA content (nav, footer, homepage), and a live preview URL. Use this skill whenever a user wants to create a new AEM Edge Delivery site and no repository or DA content exists yet.
npx skillsauth add adobe/skills create-siteInstall 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.
This skill walks through the full onboarding flow for a new AEM Edge Delivery site. It handles everything that can be automated and clearly signals the steps that require human action.
Use this skill when:
Do NOT use this skill for:
gh CLI authenticated (gh auth status) or a GitHub personal access token with repo scopeCreate a checklist to track progress (use your agent's task-tracking tool if available):
Ask the user for the following. Do not proceed until all required inputs are provided.
my-org)my-site)My Site). If not provided, derive it from the project name.Store as: {{ORG}}, {{REPO}}, {{SITE_NAME}}
Create a new repository using the adobe/aem-boilerplate template.
Option A — GitHub CLI (preferred, handles auth automatically):
gh repo create {{ORG}}/{{REPO}} \
--template adobe/aem-boilerplate \
--description "{{SITE_NAME}} — AEM Edge Delivery site" \
--public
Check if gh is available with gh auth status. If not authenticated, run gh auth login first.
Option B — GitHub API (if gh CLI is not available):
POST https://api.github.com/repos/adobe/aem-boilerplate/generate
Authorization: Bearer {{GITHUB_TOKEN}}
Content-Type: application/json
{
"owner": "{{ORG}}",
"name": "{{REPO}}",
"description": "{{SITE_NAME}} — AEM Edge Delivery site",
"private": false,
"include_all_branches": false
}
To obtain a token: https://github.com/settings/tokens/new — scope: repo.
Success: HTTP 201 (API) or exit code 0 (CLI). The repo is now live at https://github.com/{{ORG}}/{{REPO}}.
The aem-code-sync GitHub App connects the repository to AEM's content delivery pipeline. This step cannot be automated — the user must complete it in the browser.
Tell the user:
Action required: Install the AEM Code Sync app on your new repository.
- Open this URL: https://github.com/apps/aem-code-sync/installations/new
- Under "Repository access", select Only select repositories
- Choose {{ORG}}/{{REPO}} from the list
- Click Save
Reply "done" when complete.
Wait for confirmation before proceeding.
Verify: After confirmation, check that https://admin.hlx.page/status/{{ORG}}/{{REPO}}/main/ returns a valid JSON response (not 404). If it does, the app is correctly installed.
DA requires Adobe IMS authentication. Choose the appropriate path:
Option A — da-auth-helper (preferred)
da-auth-helper (https://github.com/adobe-rnd/da-auth-helper) caches IMS tokens at ~/.aem/da-token.json. Always check the cache first before triggering a new OAuth flow.
node -e "
const fs = require('fs');
const p = process.env.HOME + '/.aem/da-token.json';
if (!fs.existsSync(p)) { console.log('No cache'); process.exit(1); }
const t = JSON.parse(fs.readFileSync(p));
console.log('Valid:', t.expires_at > Date.now());
console.log('Expires:', new Date(t.expires_at).toISOString());
"
DA_TOKEN=$(node -e "const t = require(process.env.HOME + '/.aem/da-token.json'); process.stdout.write(t.access_token);")
npm install -g github:adobe-rnd/da-auth-helper
da-auth-helper token
This opens a browser for Adobe IMS login and writes the new token to ~/.aem/da-token.json. Then capture it as in step 2.
Option B — DA MCP is configured
If the DA MCP server is available, trigger the authentication tool to start the OAuth flow and share the authorization URL with the user.
Option C — Manual token
Ask the user to obtain an IMS token from their browser (e.g. from the DA network tab or an existing session) and paste it. Store as {{DA_TOKEN}}.
Create the three mandatory pages every EDS site requires. Use the templates below exactly — they are pre-validated for EDS compliance.
Option A — DA MCP: Call the DA create source tool three times with the content below.
Option B — DA API:
Write each file to a temp file first, then POST using @ syntax. Inline multiline content with -F 'data=...' causes curl to fail (exit 26). Use /usr/bin/curl explicitly to avoid PATH resolution issues in subshells.
cat > /tmp/nav.html << 'EOF'
<nav content>
EOF
/usr/bin/curl -s -o /dev/null -w "%{http_code}" -X POST "https://admin.da.live/source/{{ORG}}/{{REPO}}/nav.html" \
-H "Authorization: Bearer {{DA_TOKEN}}" \
-F "data=@/tmp/nav.html;type=text/html"
Repeat for footer.html and index.html.
Verify: After each POST, expect HTTP 201. If you get 401, the token has expired — return to Step 4.
<main>
<div>
<p><a href="/">{{SITE_NAME}}</a></p>
</div>
<div>
<ul>
<li><a href="/">Home</a></li>
</ul>
</div>
<div></div>
</main>
<main>
<div>
<p>© 2024 {{SITE_NAME}}. All rights reserved.</p>
</div>
</main>
<main>
<div>
<h1>Welcome to {{SITE_NAME}}</h1>
<p>Your new site is ready. Start editing this page in DA.</p>
</div>
</main>
Preview pulls the DA content into the AEM delivery pipeline and makes it accessible on the .aem.page domain.
DA-sourced content requires the Bearer token on preview requests — even for public repos. Use /usr/bin/curl explicitly.
/usr/bin/curl -s -o /dev/null -w "%{http_code}" -X POST "https://admin.hlx.page/preview/{{ORG}}/{{REPO}}/main/nav" \
-H "Authorization: Bearer {{DA_TOKEN}}"
/usr/bin/curl -s -o /dev/null -w "%{http_code}" -X POST "https://admin.hlx.page/preview/{{ORG}}/{{REPO}}/main/footer" \
-H "Authorization: Bearer {{DA_TOKEN}}"
/usr/bin/curl -s -o /dev/null -w "%{http_code}" -X POST "https://admin.hlx.page/preview/{{ORG}}/{{REPO}}/main/" \
-H "Authorization: Bearer {{DA_TOKEN}}"
Success: HTTP 200 or 201 for each. The homepage is now live at:
https://main--{{REPO}}--{{ORG}}.aem.page/
Tell the user:
Your site is ready!
- Preview:
https://main--{{REPO}}--{{ORG}}.aem.page/- Browse content in DA:
https://da.live/#/{{ORG}}/{{REPO}}/- Edit homepage:
https://da.live/edit#/{{ORG}}/{{REPO}}/index- Edit nav:
https://da.live/edit#/{{ORG}}/{{REPO}}/nav- Edit footer:
https://da.live/edit#/{{ORG}}/{{REPO}}/footer- GitHub repo:
https://github.com/{{ORG}}/{{REPO}}To start developing locally:
git clone https://github.com/{{ORG}}/{{REPO}}.git cd {{REPO}} npm install aem upWhat would you like to do next — add more pages, customize a block, or set up a custom domain?
| Symptom | Likely cause | Fix |
|---|---|---|
| Step 2 returns 422 | Repo name already exists | Ask user for a different name |
| Step 3 verify returns 404 | aem-code-sync not installed | Re-send the installation URL |
| Step 4 cached token missing/expired | No prior DA session on this machine | Install da-auth-helper from GitHub (npm install -g github:adobe-rnd/da-auth-helper) and run da-auth-helper token |
| Step 5 curl exits with code 26 | Inline multiline content in -F flag | Write content to a temp file and use @/tmp/file.html syntax |
| Step 5 returns 401 | Expired or missing IMS token | Re-check ~/.aem/da-token.json expiry; ask user for a fresh token |
| Step 5 returns 403 | Token lacks permission for this org/repo | Confirm the user has write access to {{ORG}}/{{REPO}} in DA |
| Step 6 returns 401 | DA-sourced content requires auth on preview | Add -H "Authorization: Bearer {{DA_TOKEN}}" to preview requests |
| Step 6 returns 404 | aem-code-sync not installed correctly | Verify Step 3, then retry |
| curl: command not found in scripts | PATH not resolved in subshell | Use /usr/bin/curl explicitly |
| Preview URL shows blank page | nav or index not previewed | Re-run Step 6 for the failing path |
https://da.live/#/{{org}}/{{repo}}{{folder-path}}https://da.live/edit#/{{org}}/{{repo}}{{path-without-extension}}https://da.live/sheet#/{{org}}/{{repo}}{{path-without-extension}}tools
Use the run-workflow MCP to discover, compose, execute, publish, and save Adobe Firefly workflows. TRIGGER when: user asks what actions are available, what the MCP can do, how to process images/video/3D via workflow, wants to build/run/save/publish a workflow, OR pastes any workflow/batch/execution ID. BARE ID (UUID/workflowId/batchId) = INSPECT ONLY — call inspect_run, NEVER run_workflow_submit. ALWAYS call list_actions first for capability/discovery questions. DO NOT TRIGGER for direct Firefly API calls without MCP (use firefly-api-specs).
tools
Run predefined featured workflows via run-workflow MCP. TRIGGER when user names a featured workflow (retargeting, banners at scale, localization, packaging, banner advertising, etc.) or asks to run a known marketing/production workflow. Requires run-workflow MCP. ALWAYS call get_featured_workflow before compose_workflow. DO NOT TRIGGER for custom one-off workflows with no named template — use run-workflow skill.
tools
Migrate an Adobe Commerce App Builder project from the Integration Starter Kit or Checkout Starter Kit to the new App Management approach. Run from the root of the App Builder project to be migrated. Pass --auto to skip confirmation prompts (suitable for CI or batch use) — auto mode prints a summary of all Q&A questions answered with their defaults. Pass --doc-scan-only to scan README.md and env.dist for outdated content without modifying any files. Use when the user wants to migrate an App Builder project from the Integration Starter Kit or Checkout Starter Kit to the App Management approach, or mentions upgrading their Adobe Commerce extension architecture.
development
Add or modify webhook interceptors in an Adobe Commerce app. Use when the user wants to intercept Commerce operations to validate input, append data, or modify behavior — before or after execution. Requires a base app initialized with commerce-app-init.