### Local development setup commands Source: https://github.com/adobe/skills/blob/main/plugins/aem/edge-delivery-services/skills/create-site/SKILL.md Commands to clone the repository, install dependencies, and start the local development server using the AEM CLI. ```bash git clone https://github.com/{{ORG}}/{{REPO}}.git cd {{REPO}} npm install aem up ``` -------------------------------- ### First-time setup on a new machine Source: https://github.com/adobe/skills/blob/main/plugins/aem/cloud-service/skills/aem-rde/references/workflows.md Install the AIO CLI, add the RDE plugin, authenticate, and configure the RDE environment. Answer 'yes' to local storage if working with multiple RDEs from different directories. Verify with setup --show and status. ```bash # 1. Install the AIO CLI npm install -g @adobe/aio-cli # 2. Add the RDE plugin aio plugins:install @adobe/aio-cli-plugin-aem-rde # 3. Authenticate aio login # 4. Pick org / program / RDE aio aem rde setup # When asked "Do you want to store … locally?" answer Yes if you'll # work with multiple RDEs from different directories. # 5. Verify aio aem rde setup --show aio aem rde status ``` -------------------------------- ### aem import command examples Source: https://github.com/adobe/skills/blob/main/plugins/aem/edge-delivery-services/skills/aem-cli/SKILL.md Shows how to start the import server with default or custom options, including headless mode and custom port. ```bash aem import # opens Importer UI in browser at port 3001 aem import --no-open # headless / background start aem import --port 3002 # different port ``` -------------------------------- ### Trusted Local Certificate Setup with mkcert Source: https://github.com/adobe/skills/blob/main/plugins/aem/edge-delivery-services/skills/aem-cli/SKILL.md Commands to install mkcert, generate a trusted local certificate, and start the AEM CLI with TLS. Recommended to avoid browser warnings. ```bash mkcert -install # one-time CA install mkcert -cert-file server.crt -key-file server.key localhost 127.0.0.1 aem up --tls-cert server.crt --tls-key server.key ``` -------------------------------- ### Start a test workflow via API and confirm it is running Source: https://github.com/adobe/skills/blob/main/plugins/aem/6.5-lts/skills/aem-workflow/workflow-development/references/workflow-foundation/quick-start-guide.md POST to /var/workflow/instances (not /api/workflow/instances) to start a workflow. Returns HTTP 201 with an HTML body. Then check running instances with a GET request. ```bash # POST to /var/workflow/instances — NOT /api/workflow/instances (posting there silently # writes stray JCR nodes and returns a misleading 2xx without starting any workflow). # Returns HTTP 201 with an HTML body linking to the new instance path. curl -u admin:admin -X POST \ "http://localhost:4502/var/workflow/instances" \ --data-urlencode "_charset_=utf-8" \ --data-urlencode "model=/var/workflow/models/my-workflow" \ --data-urlencode "payloadType=JCR_PATH" \ --data-urlencode "payload=/content/test-page" # Confirm it is running curl -u admin:admin "http://localhost:4502/var/workflow/instances.RUNNING.json" ``` -------------------------------- ### Install substrate (fresh install) Source: https://github.com/adobe/skills/blob/main/plugins/aem/edge-delivery-services/skills/snowflake/phases/0-prereq.md Run the installer directly when no snowflake substrate is present. The installer logs each pre-existing file it replaces; backups are stored in .snowflake/.backup//. ```bash node /scripts/install-substrate.mjs ``` -------------------------------- ### Skill invocation examples for handover guides Source: https://github.com/adobe/skills/blob/main/plugins/aem/project-management/skills/handover/SKILL.md Shows how to invoke each handover guide skill directly from the main conversation. Use these for single-guide selections so permission prompts reach the user. ```javascript Skill({ skill: "aem-project-management:handover-author" }) ``` ```javascript Skill({ skill: "aem-project-management:handover-developer" }) ``` ```javascript Skill({ skill: "aem-project-management:handover-admin" }) ``` -------------------------------- ### Install skill collection from GitHub repo Source: https://github.com/adobe/skills/blob/main/plugins/aem/edge-delivery-services/skills/slicc-handoff/SKILL.md Example upskill command to install a skill collection from a GitHub repo. ```bash node .claude/skills/slicc-handoff/scripts/slicc-handoff --open "upskill:https://github.com/slicc/skills-extra" ``` -------------------------------- ### One-time setup: install cld3-asm into skill directory Source: https://github.com/adobe/skills/blob/main/plugins/web/skills/page-langs/SKILL.md Run once before first use. Determines the skill directory from CLAUDE_SKILL_DIR or finds it under ~/.claude, then installs the npm dependency. The WASM model is bundled, so no network fetch at runtime. ```bash if [[ -n "${CLAUDE_SKILL_DIR:-}" ]]; then SKILL_DIR="${CLAUDE_SKILL_DIR}" else SKILL_DIR="$(find ~/.claude -path "*/page-langs" -type d 2>/dev/null | head -1)" fi npm install --prefix "$SKILL_DIR" ``` -------------------------------- ### Install aio CLI and log in Source: https://github.com/adobe/skills/blob/main/plugins/app-builder/skills/appbuilder-project-init/SKILL.md Installs the Adobe aio CLI globally on Node 20, logs in (opens a browser; -f forces a fresh prompt), and verifies the IMS org/context. Tokens are stored automatically; one login per session. Wrong-org is the most common setup mistake. ```bash npm install -g @adobe/aio-cli # on Node 20 aio login # opens a browser; `aio login -f` forces a fresh prompt aio where # confirm the correct IMS org/context aio console org list # list orgs and their IDs (then `aio console org select ` if needed) ``` -------------------------------- ### Common workflow structure with aio-cli-setup-action and aio-apps-action Source: https://github.com/adobe/skills/blob/main/plugins/app-builder/skills/appbuilder-cicd-pipeline/references/github-actions-guide.md Shows the standard steps for an App Builder CI/CD workflow: checkout, setup Node.js 20, install Adobe I/O CLI, and run build/test/deploy commands. The env section is where all 14 secrets are injected. ```yaml steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' - uses: adobe/aio-cli-setup-action@3 with: os: ubuntu - uses: adobe/aio-apps-action@3.3.0 with: os: ubuntu command: build # or test, deploy env: # All 14 secrets injected here ``` -------------------------------- ### Install appbuilder-project-init skill Source: https://github.com/adobe/skills/blob/main/plugins/commerce/app-management/skills/commerce-app-init/SKILL.md Install the `appbuilder-project-init` skill from `adobe/skills` if it is not already installed, using `npx skills add`. ```sh npx skills add adobe/skills --skill appbuilder-project-init -y ``` -------------------------------- ### skeleton.html example with section comments Source: https://github.com/adobe/skills/blob/main/plugins/web/skills/page-reduce/SKILL.md This HTML example shows the format for skeleton.html, with comment separators for each section and placeholder tokens like {HEADING:1}, {TEXT}, {CTA:Get Started}, {IMAGE:1200x600}, and {REPEAT:4}. It is generated in Step 5. ```html

{HEADING:1}

{TEXT}

{CTA:Get Started} {IMAGE:1200x600}
{IMAGE:400x300}

{HEADING:3}

{TEXT}

{LINK:Read more}
{IMAGE:400x300}

{HEADING:3}

{TEXT}

{LINK:Read more}
{REPEAT:4}
``` -------------------------------- ### Start Publish Instance Source: https://github.com/adobe/skills/blob/main/plugins/aem/6.5-lts/skills/aem-replication/troubleshoot-replication/SKILL.md Commands to start the Publish instance from its crx-quickstart directory. ```bash cd /path/to/publish/crx-quickstart ./bin/start ``` -------------------------------- ### Initialize local app with template Source: https://github.com/adobe/skills/blob/main/plugins/app-builder/skills/appbuilder-project-init/README.md Runs init.sh init with the excshell template to create a new project. The second command shows how to pass --org and --project to wire directly to a Console org/project. ```bash skills/appbuilder-project-init/scripts/init.sh init "@adobe/generator-app-excshell" ./my-project ``` ```bash skills/appbuilder-project-init/scripts/init.sh init \ "@adobe/generator-app-excshell" ./my-project \ --org --project my-project ``` -------------------------------- ### Start AEM workflow with WorkflowSession Java API Source: https://github.com/adobe/skills/blob/main/plugins/aem/cloud-service/skills/aem-workflow/workflow-triggering/references/workflow-triggering/triggering-mechanisms.md Use this Java code to start a workflow from a backend service, scheduled job, event handler, or migration script. It adapts a resolver to WorkflowSession, gets a workflow model, creates workflow data, and starts the workflow. The example also shows adding initial metadata to the workflow data before starting. Requires a service user sub-service that is a member of the 'workflow-process-service' group. ```java // Minimal start WorkflowSession wfs = resolver.adaptTo(WorkflowSession.class); WorkflowModel model = wfs.getModel("/var/workflow/models/my-workflow"); WorkflowData data = wfs.newWorkflowData("JCR_PATH", "/content/my-site/en/page"); Workflow instance = wfs.startWorkflow(model, data); String instanceId = instance.getId(); // e.g. /var/workflow/instances/server0/2024-01-01/abc // With initial metadata data.getMetaDataMap().put("workflowTitle", "Batch Review Job"); data.getMetaDataMap().put("department", "marketing"); wfs.startWorkflow(model, data); ``` -------------------------------- ### Author Guide Markdown Template Source: https://github.com/adobe/skills/blob/main/plugins/aem/project-management/skills/handover-author/SKILL.md Markdown template for the author guide, saved to project-guides/AUTHOR-GUIDE.md. Includes front matter, quick reference table, and sections for sites, getting started, content organization, block library, available blocks, page templates, configuration sheets, publishing workflow, common tasks, sections and section metadata, page metadata, images and media, and troubleshooting. ```markdown --- title: "[Project Name] - Author Guide" date: "[Full Date — e.g., February 17, 2026]" --- # [Project Name] - Author Guide ## Quick Reference | Resource | URL | |----------|-----| | Document Authoring | https://da.live/#/{content-owner}/{content-path}/ | | Preview (per site) | https://main--{site}--{org}.aem.page/ | | Live (per site) | https://main--{site}--{org}.aem.live/ | | Block Library | https://da.live/#/{content-owner}/{content-path}/.da/library | | Bulk Operations | https://da.live/apps/bulk | (**Content path** comes from the Config Service site config — e.g., `content.da.live/org/site/` → use `org/site` for the path after `#/`. This varies by project.) ### Sites | Site | Content Source (DA) | Preview | Live | |------|---------------------|---------|------| | {site1} | [from site config] | https://main--{site1}--{org}.aem.page/ | https://main--{site1}--{org}.aem.live/ | ## Getting Started ### Access Requirements - [ ] DA access (request from admin) - [ ] Preview/publish permissions ### Your First Page 1. Go to DA: [link] 2. Navigate to the correct folder 3. Create new document 4. Use blocks from Library sidebar 5. Add Metadata block at bottom 6. Preview → Publish ## Content Organization ### Site Structure [Describe the folder structure in DA] ### Languages [List supported languages if multi-lingual] ## Block Library The Block Library is the sidebar in Document Authoring where you browse and insert blocks and templates. | What | Details | |------|---------| | **Open in DA** | Use the Library icon in the DA editor sidebar, or go directly to: `https://da.live/#/{content-owner}/{content-path}/.da/library` | | **How to use** | Click a block or template in the library to insert it at the cursor position | ## Available Blocks | Block | Purpose | Variants | Usage | |-------|---------|----------|-------| | [name] | [what it's for] | [variant1, variant2] | [when to use] | [Generate table rows for all blocks] ## Page Templates | Template | Purpose | Required Metadata | How to Apply | |----------|---------|-------------------|--------------| | [name] | [what type of pages] | [key fields] | `template: [name]` in Metadata | [Generate table rows for all templates] ## Configuration Sheets | Sheet | Location | Purpose | When to Update | |-------|----------|---------|----------------| | Placeholders | `/placeholders` | Reusable text strings, translations | Changing labels, button text | | Redirects | `/redirects` | Forward old URLs to new URLs | After deleting/moving pages | | Bulk Metadata | `/metadata` | Apply metadata to multiple pages | Setting defaults by folder | ## Publishing Workflow | Environment | Domain | Purpose | |-------------|--------|---------| | Preview | `.aem.page` | Test changes before going live | | Live | `.aem.live` | Production site | **Workflow:** Edit in DA → Preview → Publish → Live immediately **Bulk:** https://da.live/apps/bulk ## Common Tasks | Task | Steps | |------|-------| | **Create a Page** | Navigate to folder → New → Document → Add content → Add Metadata → Preview → Publish | | **Edit a Page** | Open in DA → Make changes → Preview → Publish | | **Delete a Page** | Add redirect first → Delete document → Publish redirects | | **Update Navigation** | Edit `/nav` document → Preview → Publish | | **Update Footer** | Edit `/footer` document → Preview → Publish | ## Sections and Section Metadata Sections group content together. Create sections with horizontal rules (`---`). Add styles with a Section Metadata block at the end of the section: | Section Metadata | | |------------------|-| | style | [style-name] | **Available Section Styles:** | Style | Effect | |-------|--------| | [List project-specific styles] | | ## Page Metadata | Property | Required | Purpose | Example | |----------|----------|---------|---------| | `title` | Yes | Page title for SEO | "About Us" | | `description` | Yes | SEO description | "Learn about..." | | `image` | No | Social sharing image | /images/og.jpg | | `template` | No | Apply page template | project-article | | [Add project-specific fields] | | | | ## Images and Media | Method | How | |--------|-----| | Drag & drop | Drag images directly into DA editor | | AEM Assets | Use Assets sidebar in DA | Best practices: descriptive filenames, always add alt text, images auto-optimized. ## Troubleshooting | Issue | Solution | |-------|----------| | Page not updating after publish | Wait 1-2 min for cache, hard refresh (Cmd+Shift+R) | | Block not displaying correctly | Check structure matches expected format, verify variant spelling | | Images not showing | Verify image uploaded to DA, check path is correct | | Wrong template styling | Check `template` value in Metadata matches template name exactly | ## Resources ``` -------------------------------- ### HTTP Workflow REST API - start, list, get, terminate Source: https://github.com/adobe/skills/blob/main/plugins/aem/6.5-lts/skills/aem-workflow/workflow-triggering/references/workflow-triggering/triggering-mechanisms.md Curl commands to interact with the Workflow REST API. Start a workflow with POST to /var/workflow/instances, list instances with .json, get details, and terminate with state=ABORTED. Note the start POST returns HTML, not JSON. ```bash # Start a workflow instance — returns HTTP 201 with an HTML body that links to the # new instance path (e.g. /var/workflow/instances/server0//my-workflow_1) curl -u admin:admin -X POST \ "http://localhost:4502/var/workflow/instances" \ --data-urlencode "_charset_=utf-8" \ --data-urlencode "model=/var/workflow/models/my-workflow" \ --data-urlencode "payloadType=JCR_PATH" \ --data-urlencode "payload=/content/my-site/en/home" \ --data-urlencode "workflowTitle=CI Triggered Review" \ --data-urlencode "startComment=triggered from CI" # List instances (JSON); filter by state with a selector curl -u admin:admin "http://localhost:4502/var/workflow/instances.json" curl -u admin:admin "http://localhost:4502/var/workflow/instances.RUNNING.json" # Get instance details (JSON: id, state, initiator, startTime, model, payload, workItems[]) curl -u admin:admin \ "http://localhost:4502/var/workflow/instances/server0//my-workflow_1.json" # Terminate (abort) a workflow — POST state=ABORTED to the instance path, returns HTTP 200 curl -u admin:admin -X POST \ "http://localhost:4502/var/workflow/instances/server0//my-workflow_1" \ --data-urlencode "_charset_=utf-8" \ --data-urlencode "state=ABORTED" \ --data-urlencode "terminateComment=cleanup" ``` -------------------------------- ### Example output for OOPE shipping carrier project Source: https://github.com/adobe/skills/blob/main/plugins/commerce/app-migration/skills/commerce-app-migrate/agents/webhooks.md Example output for an OOPE shipping carrier project with one eligible install script. The configFragment may contain both webhooks and installation keys; include only the keys that have content. ```json { "domain": "webhooks", "configFragment": { "webhooks": [ { "label": "ShipStation Shipping Methods", "description": "Returns out-of-process shipping rates for the ShipStation carrier", "category": "modification", "runtimeAction": "shipstation/shipstation-shipping", "requireAdobeAuth": false, "webhook": { "webhook_method": "plugin.magento.out_of_process_shipping_methods.api.shipping_rate_repository.get_rates", "webhook_type": "after", "batch_name": "shipstation_rates", "hook_name": "shipstation_rates_hook", "method": "POST", "fields": [{ "name": "rateRequest" }] } } ], "installation": { "customInstallationSteps": [ { "script": "./scripts/create-shipping-carriers.js", "name": "Create Shipping Carriers", "description": "Creates OOPE shipping carriers in Adobe Commerce using shipping-carriers.yaml" } ] } }, "unresolvedQuestions": [ { "id": "webhooks.script.sync-oauth-credentials.excluded", "prompt": "Script \"scripts/sync-oauth-credentials.js\" appears to be a local developer utility (syncs local credentials to .env) and was excluded from customInstallationSteps. Confirm this is correct.", "default": "exclude" } ] } ``` -------------------------------- ### Recommended flow inside the skill Source: https://github.com/adobe/skills/blob/main/plugins/app-builder/skills/appbuilder-project-init/references/bootstrap.md A text-based outline of the recommended steps to initialize an App Builder project. It includes preflight commands like `npm install -g @adobe/aio-cli`, `aio --version`, `aio auth login`, and discovery commands like `aio console project list --json` and `aio console api list --json`. The flow ends with running `scripts/init.sh init