[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M736G5V2A1GKYD2ATT07H87Z":3,"skill-same:01M736G5V2A1GKYD2ATT07H87Z":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M736G5V2A1GKYD2ATT07H87Z","create-site",null,"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.","kalash33\u002Fkstack","kalash33","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F90259149?v=4","01M7365X8Q0B73NYHA730SMZWN","Kalash Poddar","01M7365X9D0JK47C3Q0YCCK9Z2",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fadobe-create-site\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: create-site\ndescription: 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.\nlicense: Apache-2.0\nmetadata:\n  version: \"1.1.0\"\n---\n\n# Create a New AEM Edge Delivery Site\n\nThis 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.\n\n## When to Use This Skill\n\nUse this skill when:\n- A user wants to create a brand-new AEM Edge Delivery site from scratch\n- A user asks to \"set up a new site\", \"create a new EDS project\", or \"onboard a new site\"\n- No GitHub repository or DA content exists yet for the project\n\n**Do NOT use this skill for:**\n- Importing or migrating existing pages (use **page-import** skill)\n- Building or modifying blocks on an existing site (use **content-driven-development** skill)\n\n## Prerequisites\n\n- A GitHub account with permission to create repositories in the target org\n- An Adobe IMS account with access to DA (da.live)\n- `gh` CLI authenticated (`gh auth status`) or a GitHub personal access token with `repo` scope\n- Node.js (for DA token management via da-auth-helper)\n\n## Related Skills\n\n- **page-import** — Import existing pages into the newly created site\n- **content-driven-development** — Build and modify blocks once the site exists\n- **building-blocks** — Implement new block code\n\n---\n\n## Step 0: Create TodoList\n\nCreate a checklist to track progress (use your agent's task-tracking tool if available):\n\n1. **Gather inputs** — org, repo name, site name collected\n2. **Create GitHub repository** — repo created from boilerplate template\n3. **Install aem-code-sync** *(human action)* — GitHub App installed on repo\n4. **Authenticate with DA** — valid IMS token obtained\n5. **Create initial content in DA** — nav, footer, index created\n6. **Trigger preview** — all three paths return 200\u002F201\n7. **Hand off** — preview URL and DA links delivered to user\n\n---\n\n## Step 1: Gather Inputs\n\nAsk the user for the following. Do not proceed until all required inputs are provided.\n\n1. **GitHub org** — the GitHub organization or username where the repo will be created (e.g. `my-org`)\n2. **Project name** — the repository name, lowercase, hyphens only (e.g. `my-site`)\n3. **Site name** — the human-readable name used in content (e.g. `My Site`). If not provided, derive it from the project name.\n\nStore as: `{{ORG}}`, `{{REPO}}`, `{{SITE_NAME}}`\n\n---\n\n## Step 2: Create GitHub Repository\n\nCreate a new repository using the `adobe\u002Faem-boilerplate` template.\n\n**Option A — GitHub CLI (preferred, handles auth automatically):**\n```bash\ngh repo create {{ORG}}\u002F{{REPO}} \\\n  --template adobe\u002Faem-boilerplate \\\n  --description \"{{SITE_NAME}} — AEM Edge Delivery site\" \\\n  --public\n```\n\nCheck if `gh` is available with `gh auth status`. If not authenticated, run `gh auth login` first.\n\n**Option B — GitHub API (if `gh` CLI is not available):**\n```\nPOST https:\u002F\u002Fapi.github.com\u002Frepos\u002Fadobe\u002Faem-boilerplate\u002Fgenerate\nAuthorization: Bearer {{GITHUB_TOKEN}}\nContent-Type: application\u002Fjson\n\n{\n  \"owner\": \"{{ORG}}\",\n  \"name\": \"{{REPO}}\",\n  \"description\": \"{{SITE_NAME}} — AEM Edge Delivery site\",\n  \"private\": false,\n  \"include_all_branches\": false\n}\n```\n\nTo obtain a token: https:\u002F\u002Fgithub.com\u002Fsettings\u002Ftokens\u002Fnew — scope: `repo`.\n\n**Success:** HTTP 201 (API) or exit code 0 (CLI). The repo is now live at `https:\u002F\u002Fgithub.com\u002F{{ORG}}\u002F{{REPO}}`.\n\n---\n\n## Step 3: Install aem-code-sync *(human action required)*\n\nThe 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.\n\nTell the user:\n\n> **Action required:** Install the AEM Code Sync app on your new repository.\n>\n> 1. Open this URL: https:\u002F\u002Fgithub.com\u002Fapps\u002Faem-code-sync\u002Finstallations\u002Fnew\n> 2. Under \"Repository access\", select **Only select repositories**\n> 3. Choose **{{ORG}}\u002F{{REPO}}** from the list\n> 4. Click **Save**\n>\n> Reply \"done\" when complete.\n\nWait for confirmation before proceeding.\n\n**Verify:** After confirmation, check that `https:\u002F\u002Fadmin.hlx.page\u002Fstatus\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002F` returns a valid JSON response (not 404). If it does, the app is correctly installed.\n\n---\n\n## Step 4: Authenticate with DA\n\nDA requires Adobe IMS authentication. Choose the appropriate path:\n\n**Option A — da-auth-helper (preferred)**\n\n`da-auth-helper` (https:\u002F\u002Fgithub.com\u002Fadobe-rnd\u002Fda-auth-helper) caches IMS tokens at `~\u002F.aem\u002Fda-token.json`. Always check the cache first before triggering a new OAuth flow.\n\n1. Check for a valid cached token:\n```bash\nnode -e \"\n  const fs = require('fs');\n  const p = process.env.HOME + '\u002F.aem\u002Fda-token.json';\n  if (!fs.existsSync(p)) { console.log('No cache'); process.exit(1); }\n  const t = JSON.parse(fs.readFileSync(p));\n  console.log('Valid:', t.expires_at > Date.now());\n  console.log('Expires:', new Date(t.expires_at).toISOString());\n\"\n```\n\n2. If valid, capture the token and skip to Step 5:\n```bash\nDA_TOKEN=$(node -e \"const t = require(process.env.HOME + '\u002F.aem\u002Fda-token.json'); process.stdout.write(t.access_token);\")\n```\n\n3. If missing or expired, install da-auth-helper from GitHub (it is not published to npm) and refresh:\n```bash\nnpm install -g github:adobe-rnd\u002Fda-auth-helper\nda-auth-helper token\n```\nThis opens a browser for Adobe IMS login and writes the new token to `~\u002F.aem\u002Fda-token.json`. Then capture it as in step 2.\n\n**Option B — DA MCP is configured**\n\nIf the DA MCP server is available, trigger the authentication tool to start the OAuth flow and share the authorization URL with the user.\n\n**Option C — Manual token**\n\nAsk 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}}`.\n\n---\n\n## Step 5: Create Initial Content in DA\n\nCreate the three mandatory pages every EDS site requires. Use the templates below exactly — they are pre-validated for EDS compliance.\n\n**Option A — DA MCP:**\nCall the DA create source tool three times with the content below.\n\n**Option B — DA API:**\n\nWrite each file to a temp file first, then POST using `@` syntax. Inline multiline content with `-F 'data=...'` causes curl to fail (exit 26). Use `\u002Fusr\u002Fbin\u002Fcurl` explicitly to avoid PATH resolution issues in subshells.\n\n```bash\ncat > \u002Ftmp\u002Fnav.html \u003C\u003C 'EOF'\n\u003Cnav content>\nEOF\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.da.live\u002Fsource\u002F{{ORG}}\u002F{{REPO}}\u002Fnav.html\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\" \\\n  -F \"data=@\u002Ftmp\u002Fnav.html;type=text\u002Fhtml\"\n```\n\nRepeat for `footer.html` and `index.html`.\n\n**Verify:** After each POST, expect HTTP 201. If you get 401, the token has expired — return to Step 4.\n\n---\n\n### nav.html\n\n```html\n\u003Cmain>\n  \u003Cdiv>\n    \u003Cp>\u003Ca href=\"\u002F\">{{SITE_NAME}}\u003C\u002Fa>\u003C\u002Fp>\n  \u003C\u002Fdiv>\n  \u003Cdiv>\n    \u003Cul>\n      \u003Cli>\u003Ca href=\"\u002F\">Home\u003C\u002Fa>\u003C\u002Fli>\n    \u003C\u002Ful>\n  \u003C\u002Fdiv>\n  \u003Cdiv>\u003C\u002Fdiv>\n\u003C\u002Fmain>\n```\n\n### footer.html\n\n```html\n\u003Cmain>\n  \u003Cdiv>\n    \u003Cp>© 2024 {{SITE_NAME}}. All rights reserved.\u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Fmain>\n```\n\n### index.html\n\n```html\n\u003Cmain>\n  \u003Cdiv>\n    \u003Ch1>Welcome to {{SITE_NAME}}\u003C\u002Fh1>\n    \u003Cp>Your new site is ready. Start editing this page in DA.\u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Fmain>\n```\n\n---\n\n## Step 6: Trigger Preview\n\nPreview pulls the DA content into the AEM delivery pipeline and makes it accessible on the `.aem.page` domain.\n\nDA-sourced content requires the Bearer token on preview requests — even for public repos. Use `\u002Fusr\u002Fbin\u002Fcurl` explicitly.\n\n```bash\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.hlx.page\u002Fpreview\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002Fnav\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\"\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.hlx.page\u002Fpreview\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002Ffooter\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\"\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.hlx.page\u002Fpreview\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002F\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\"\n```\n\n**Success:** HTTP 200 or 201 for each. The homepage is now live at:\n```\nhttps:\u002F\u002Fmain--{{REPO}}--{{ORG}}.aem.page\u002F\n```\n\n---\n\n## Step 7: Confirm and Hand Off\n\nTell the user:\n\n> **Your site is ready!**\n>\n> - **Preview:** `https:\u002F\u002Fmain--{{REPO}}--{{ORG}}.aem.page\u002F`\n> - **Browse content in DA:** `https:\u002F\u002Fda.live\u002F#\u002F{{ORG}}\u002F{{REPO}}\u002F`\n> - **Edit homepage:** `https:\u002F\u002Fda.live\u002Fedit#\u002F{{ORG}}\u002F{{REPO}}\u002Findex`\n> - **Edit nav:** `https:\u002F\u002Fda.live\u002Fedit#\u002F{{ORG}}\u002F{{REPO}}\u002Fnav`\n> - **Edit footer:** `https:\u002F\u002Fda.live\u002Fedit#\u002F{{ORG}}\u002F{{REPO}}\u002Ffooter`\n> - **GitHub repo:** `https:\u002F\u002Fgithub.com\u002F{{ORG}}\u002F{{REPO}}`\n>\n> To start developing locally:\n> ```bash\n> git clone https:\u002F\u002Fgithub.com\u002F{{ORG}}\u002F{{REPO}}.git\n> cd {{REPO}}\n> npm install\n> aem up\n> ```\n>\n> What would you like to do next — add more pages, customize a block, or set up a custom domain?\n\n---\n\n## Troubleshooting\n\n| Symptom | Likely cause | Fix |\n|---|---|---|\n| Step 2 returns 422 | Repo name already exists | Ask user for a different name |\n| Step 3 verify returns 404 | aem-code-sync not installed | Re-send the installation URL |\n| Step 4 cached token missing\u002Fexpired | No prior DA session on this machine | Install da-auth-helper from GitHub (`npm install -g github:adobe-rnd\u002Fda-auth-helper`) and run `da-auth-helper token` |\n| Step 5 curl exits with code 26 | Inline multiline content in `-F` flag | Write content to a temp file and use `@\u002Ftmp\u002Ffile.html` syntax |\n| Step 5 returns 401 | Expired or missing IMS token | Re-check `~\u002F.aem\u002Fda-token.json` expiry; ask user for a fresh token |\n| Step 5 returns 403 | Token lacks permission for this org\u002Frepo | Confirm the user has write access to `{{ORG}}\u002F{{REPO}}` in DA |\n| Step 6 returns 401 | DA-sourced content requires auth on preview | Add `-H \"Authorization: Bearer {{DA_TOKEN}}\"` to preview requests |\n| Step 6 returns 404 | aem-code-sync not installed correctly | Verify Step 3, then retry |\n| `curl: command not found` in scripts | PATH not resolved in subshell | Use `\u002Fusr\u002Fbin\u002Fcurl` explicitly |\n| Preview URL shows blank page | nav or index not previewed | Re-run Step 6 for the failing path |\n\n---\n\n## Reference\n\n- Boilerplate: https:\u002F\u002Fgithub.com\u002Fadobe\u002Faem-boilerplate\n- aem-code-sync app: https:\u002F\u002Fgithub.com\u002Fapps\u002Faem-code-sync\n- DA docs: https:\u002F\u002Fda.live\u002Fdocs\n- DA Admin API: https:\u002F\u002Fopensource.adobe.com\u002Fda-admin\u002F\n- DA Auth (IMS token helper): https:\u002F\u002Fgithub.com\u002Fadobe-rnd\u002Fda-auth-helper\n- AEM Admin API: https:\u002F\u002Fwww.aem.live\u002Fdocs\u002Fadmin.html\n- Full onboarding guide: https:\u002F\u002Fwww.aem.live\u002Fdeveloper\u002Fcreate-site.md\n\n### DA URL patterns\n\n- Browse folder: `https:\u002F\u002Fda.live\u002F#\u002F{{org}}\u002F{{repo}}{{folder-path}}`\n- Edit HTML document: `https:\u002F\u002Fda.live\u002Fedit#\u002F{{org}}\u002F{{repo}}{{path-without-extension}}`\n- Edit JSON\u002Fsheet: `https:\u002F\u002Fda.live\u002Fsheet#\u002F{{org}}\u002F{{repo}}{{path-without-extension}}`\n","# Create a New AEM Edge Delivery Site\n\nThis 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.\n\n## When to Use This Skill\n\nUse this skill when:\n- A user wants to create a brand-new AEM Edge Delivery site from scratch\n- A user asks to \"set up a new site\", \"create a new EDS project\", or \"onboard a new site\"\n- No GitHub repository or DA content exists yet for the project\n\n**Do NOT use this skill for:**\n- Importing or migrating existing pages (use **page-import** skill)\n- Building or modifying blocks on an existing site (use **content-driven-development** skill)\n\n## Prerequisites\n\n- A GitHub account with permission to create repositories in the target org\n- An Adobe IMS account with access to DA (da.live)\n- `gh` CLI authenticated (`gh auth status`) or a GitHub personal access token with `repo` scope\n- Node.js (for DA token management via da-auth-helper)\n\n## Related Skills\n\n- **page-import** — Import existing pages into the newly created site\n- **content-driven-development** — Build and modify blocks once the site exists\n- **building-blocks** — Implement new block code\n\n---\n\n## Step 0: Create TodoList\n\nCreate a checklist to track progress (use your agent's task-tracking tool if available):\n\n1. **Gather inputs** — org, repo name, site name collected\n2. **Create GitHub repository** — repo created from boilerplate template\n3. **Install aem-code-sync** *(human action)* — GitHub App installed on repo\n4. **Authenticate with DA** — valid IMS token obtained\n5. **Create initial content in DA** — nav, footer, index created\n6. **Trigger preview** — all three paths return 200\u002F201\n7. **Hand off** — preview URL and DA links delivered to user\n\n---\n\n## Step 1: Gather Inputs\n\nAsk the user for the following. Do not proceed until all required inputs are provided.\n\n1. **GitHub org** — the GitHub organization or username where the repo will be created (e.g. `my-org`)\n2. **Project name** — the repository name, lowercase, hyphens only (e.g. `my-site`)\n3. **Site name** — the human-readable name used in content (e.g. `My Site`). If not provided, derive it from the project name.\n\nStore as: `{{ORG}}`, `{{REPO}}`, `{{SITE_NAME}}`\n\n---\n\n## Step 2: Create GitHub Repository\n\nCreate a new repository using the `adobe\u002Faem-boilerplate` template.\n\n**Option A — GitHub CLI (preferred, handles auth automatically):**\n```bash\ngh repo create {{ORG}}\u002F{{REPO}} \\\n  --template adobe\u002Faem-boilerplate \\\n  --description \"{{SITE_NAME}} — AEM Edge Delivery site\" \\\n  --public\n```\n\nCheck if `gh` is available with `gh auth status`. If not authenticated, run `gh auth login` first.\n\n**Option B — GitHub API (if `gh` CLI is not available):**\n```\nPOST https:\u002F\u002Fapi.github.com\u002Frepos\u002Fadobe\u002Faem-boilerplate\u002Fgenerate\nAuthorization: Bearer {{GITHUB_TOKEN}}\nContent-Type: application\u002Fjson\n\n{\n  \"owner\": \"{{ORG}}\",\n  \"name\": \"{{REPO}}\",\n  \"description\": \"{{SITE_NAME}} — AEM Edge Delivery site\",\n  \"private\": false,\n  \"include_all_branches\": false\n}\n```\n\nTo obtain a token: https:\u002F\u002Fgithub.com\u002Fsettings\u002Ftokens\u002Fnew — scope: `repo`.\n\n**Success:** HTTP 201 (API) or exit code 0 (CLI). The repo is now live at `https:\u002F\u002Fgithub.com\u002F{{ORG}}\u002F{{REPO}}`.\n\n---\n\n## Step 3: Install aem-code-sync *(human action required)*\n\nThe 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.\n\nTell the user:\n\n> **Action required:** Install the AEM Code Sync app on your new repository.\n>\n> 1. Open this URL: https:\u002F\u002Fgithub.com\u002Fapps\u002Faem-code-sync\u002Finstallations\u002Fnew\n> 2. Under \"Repository access\", select **Only select repositories**\n> 3. Choose **{{ORG}}\u002F{{REPO}}** from the list\n> 4. Click **Save**\n>\n> Reply \"done\" when complete.\n\nWait for confirmation before proceeding.\n\n**Verify:** After confirmation, check that `https:\u002F\u002Fadmin.hlx.page\u002Fstatus\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002F` returns a valid JSON response (not 404). If it does, the app is correctly installed.\n\n---\n\n## Step 4: Authenticate with DA\n\nDA requires Adobe IMS authentication. Choose the appropriate path:\n\n**Option A — da-auth-helper (preferred)**\n\n`da-auth-helper` (https:\u002F\u002Fgithub.com\u002Fadobe-rnd\u002Fda-auth-helper) caches IMS tokens at `~\u002F.aem\u002Fda-token.json`. Always check the cache first before triggering a new OAuth flow.\n\n1. Check for a valid cached token:\n```bash\nnode -e \"\n  const fs = require('fs');\n  const p = process.env.HOME + '\u002F.aem\u002Fda-token.json';\n  if (!fs.existsSync(p)) { console.log('No cache'); process.exit(1); }\n  const t = JSON.parse(fs.readFileSync(p));\n  console.log('Valid:', t.expires_at > Date.now());\n  console.log('Expires:', new Date(t.expires_at).toISOString());\n\"\n```\n\n2. If valid, capture the token and skip to Step 5:\n```bash\nDA_TOKEN=$(node -e \"const t = require(process.env.HOME + '\u002F.aem\u002Fda-token.json'); process.stdout.write(t.access_token);\")\n```\n\n3. If missing or expired, install da-auth-helper from GitHub (it is not published to npm) and refresh:\n```bash\nnpm install -g github:adobe-rnd\u002Fda-auth-helper\nda-auth-helper token\n```\nThis opens a browser for Adobe IMS login and writes the new token to `~\u002F.aem\u002Fda-token.json`. Then capture it as in step 2.\n\n**Option B — DA MCP is configured**\n\nIf the DA MCP server is available, trigger the authentication tool to start the OAuth flow and share the authorization URL with the user.\n\n**Option C — Manual token**\n\nAsk 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}}`.\n\n---\n\n## Step 5: Create Initial Content in DA\n\nCreate the three mandatory pages every EDS site requires. Use the templates below exactly — they are pre-validated for EDS compliance.\n\n**Option A — DA MCP:**\nCall the DA create source tool three times with the content below.\n\n**Option B — DA API:**\n\nWrite each file to a temp file first, then POST using `@` syntax. Inline multiline content with `-F 'data=...'` causes curl to fail (exit 26). Use `\u002Fusr\u002Fbin\u002Fcurl` explicitly to avoid PATH resolution issues in subshells.\n\n```bash\ncat > \u002Ftmp\u002Fnav.html \u003C\u003C 'EOF'\n\u003Cnav content>\nEOF\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.da.live\u002Fsource\u002F{{ORG}}\u002F{{REPO}}\u002Fnav.html\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\" \\\n  -F \"data=@\u002Ftmp\u002Fnav.html;type=text\u002Fhtml\"\n```\n\nRepeat for `footer.html` and `index.html`.\n\n**Verify:** After each POST, expect HTTP 201. If you get 401, the token has expired — return to Step 4.\n\n---\n\n### nav.html\n\n```html\n\u003Cmain>\n  \u003Cdiv>\n    \u003Cp>\u003Ca href=\"\u002F\">{{SITE_NAME}}\u003C\u002Fa>\u003C\u002Fp>\n  \u003C\u002Fdiv>\n  \u003Cdiv>\n    \u003Cul>\n      \u003Cli>\u003Ca href=\"\u002F\">Home\u003C\u002Fa>\u003C\u002Fli>\n    \u003C\u002Ful>\n  \u003C\u002Fdiv>\n  \u003Cdiv>\u003C\u002Fdiv>\n\u003C\u002Fmain>\n```\n\n### footer.html\n\n```html\n\u003Cmain>\n  \u003Cdiv>\n    \u003Cp>© 2024 {{SITE_NAME}}. All rights reserved.\u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Fmain>\n```\n\n### index.html\n\n```html\n\u003Cmain>\n  \u003Cdiv>\n    \u003Ch1>Welcome to {{SITE_NAME}}\u003C\u002Fh1>\n    \u003Cp>Your new site is ready. Start editing this page in DA.\u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Fmain>\n```\n\n---\n\n## Step 6: Trigger Preview\n\nPreview pulls the DA content into the AEM delivery pipeline and makes it accessible on the `.aem.page` domain.\n\nDA-sourced content requires the Bearer token on preview requests — even for public repos. Use `\u002Fusr\u002Fbin\u002Fcurl` explicitly.\n\n```bash\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.hlx.page\u002Fpreview\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002Fnav\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\"\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.hlx.page\u002Fpreview\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002Ffooter\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\"\n\u002Fusr\u002Fbin\u002Fcurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" -X POST \"https:\u002F\u002Fadmin.hlx.page\u002Fpreview\u002F{{ORG}}\u002F{{REPO}}\u002Fmain\u002F\" \\\n  -H \"Authorization: Bearer {{DA_TOKEN}}\"\n```\n\n**Success:** HTTP 200 or 201 for each. The homepage is now live at:\n```\nhttps:\u002F\u002Fmain--{{REPO}}--{{ORG}}.aem.page\u002F\n```\n\n---\n\n## Step 7: Confirm and Hand Off\n\nTell the user:\n\n> **Your site is ready!**\n>\n> - **Preview:** `https:\u002F\u002Fmain--{{REPO}}--{{ORG}}.aem.page\u002F`\n> - **Browse content in DA:** `https:\u002F\u002Fda.live\u002F#\u002F{{ORG}}\u002F{{REPO}}\u002F`\n> - **Edit homepage:** `https:\u002F\u002Fda.live\u002Fedit#\u002F{{ORG}}\u002F{{REPO}}\u002Findex`\n> - **Edit nav:** `https:\u002F\u002Fda.live\u002Fedit#\u002F{{ORG}}\u002F{{REPO}}\u002Fnav`\n> - **Edit footer:** `https:\u002F\u002Fda.live\u002Fedit#\u002F{{ORG}}\u002F{{REPO}}\u002Ffooter`\n> - **GitHub repo:** `https:\u002F\u002Fgithub.com\u002F{{ORG}}\u002F{{REPO}}`\n>\n> To start developing locally:\n> ```bash\n> git clone https:\u002F\u002Fgithub.com\u002F{{ORG}}\u002F{{REPO}}.git\n> cd {{REPO}}\n> npm install\n> aem up\n> ```\n>\n> What would you like to do next — add more pages, customize a block, or set up a custom domain?\n\n---\n\n## Troubleshooting\n\n| Symptom | Likely cause | Fix |\n|---|---|---|\n| Step 2 returns 422 | Repo name already exists | Ask user for a different name |\n| Step 3 verify returns 404 | aem-code-sync not installed | Re-send the installation URL |\n| Step 4 cached token missing\u002Fexpired | No prior DA session on this machine | Install da-auth-helper from GitHub (`npm install -g github:adobe-rnd\u002Fda-auth-helper`) and run `da-auth-helper token` |\n| Step 5 curl exits with code 26 | Inline multiline content in `-F` flag | Write content to a temp file and use `@\u002Ftmp\u002Ffile.html` syntax |\n| Step 5 returns 401 | Expired or missing IMS token | Re-check `~\u002F.aem\u002Fda-token.json` expiry; ask user for a fresh token |\n| Step 5 returns 403 | Token lacks permission for this org\u002Frepo | Confirm the user has write access to `{{ORG}}\u002F{{REPO}}` in DA |\n| Step 6 returns 401 | DA-sourced content requires auth on preview | Add `-H \"Authorization: Bearer {{DA_TOKEN}}\"` to preview requests |\n| Step 6 returns 404 | aem-code-sync not installed correctly | Verify Step 3, then retry |\n| `curl: command not found` in scripts | PATH not resolved in subshell | Use `\u002Fusr\u002Fbin\u002Fcurl` explicitly |\n| Preview URL shows blank page | nav or index not previewed | Re-run Step 6 for the failing path |\n\n---\n\n## Reference\n\n- Boilerplate: https:\u002F\u002Fgithub.com\u002Fadobe\u002Faem-boilerplate\n- aem-code-sync app: https:\u002F\u002Fgithub.com\u002Fapps\u002Faem-code-sync\n- DA docs: https:\u002F\u002Fda.live\u002Fdocs\n- DA Admin API: https:\u002F\u002Fopensource.adobe.com\u002Fda-admin\u002F\n- DA Auth (IMS token helper): https:\u002F\u002Fgithub.com\u002Fadobe-rnd\u002Fda-auth-helper\n- AEM Admin API: https:\u002F\u002Fwww.aem.live\u002Fdocs\u002Fadmin.html\n- Full onboarding guide: https:\u002F\u002Fwww.aem.live\u002Fdeveloper\u002Fcreate-site.md\n\n### DA URL patterns\n\n- Browse folder: `https:\u002F\u002Fda.live\u002F#\u002F{{org}}\u002F{{repo}}{{folder-path}}`\n- Edit HTML document: `https:\u002F\u002Fda.live\u002Fedit#\u002F{{org}}\u002F{{repo}}{{path-without-extension}}`\n- Edit JSON\u002Fsheet: `https:\u002F\u002Fda.live\u002Fsheet#\u002F{{org}}\u002F{{repo}}{{path-without-extension}}`\n",{"name":5,"license":15,"metadata":24,"description":7},{"version":25},"1.1.0","main","b30820b3248f6676d5389f0ccabd4e5250c9c536","skills\u002Fadobe-create-site","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack","https:\u002F\u002Fgithub.com\u002Fkalash33","kalashpoddar.me","Tech-savvy Full Stack Developer 🚀 | Cybersecurity enthusiast 🔒 | Passionate about innovation and securing the digital world 🌐 | Let's code securely! 💻🔐","2026-05-20 04:11:22",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add kalash33\u002Fkstack --skill create-site",{"tool":40,"command":41},"bunx","bunx skills add kalash33\u002Fkstack --skill create-site",{"tool":43,"command":44},"pnpm","pnpm dlx skills add kalash33\u002Fkstack --skill create-site","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fadobe-create-site\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},".releaserc.json","REFERENCE","参考文档",49,"https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fadobe-create-site\u002F.releaserc.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"CHANGELOG.md",6020,"https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fadobe-create-site\u002FCHANGELOG.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"package.json",91,"https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fadobe-create-site\u002Fpackage.json",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M73CFERCR43JCAP606E41EFB","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reacti...","MIT","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M73CFCMFVTAQEMTZ5HR10X8V","zoom-automation","Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-automation\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M73CFAA7EBWXJVXDQ1X555MB","zoho-crm-automation","Automate Zoho CRM tasks via Rube MCP (Composio): create\u002Fupdate records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzoho-crm-automation\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M73CF80XCM9K81567MJ8QZFW","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzod-validation-expert\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M73CF4YPMF3RA8ZJDXZSMD93","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M73CF2S25EN3XNAMKY47XHPS","zendesk-automation","Automate Zendesk tasks via Rube MCP (Composio): tickets, users, organizations, replies. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzendesk-automation\u002FSKILL.md",[],[]]