[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H40EXF6B7QN8703S9QY4TH":3,"skill-same:01M6H40EXF6B7QN8703S9QY4TH":69},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":68},"01M6H40EXF6B7QN8703S9QY4TH","auto-pipelines",null,"Import ADO pipelines for enabled AI automation agents and set all required pipeline variables. Imports all enabled pipelines — each project is self-contained. Reads config from .ai\u002Fautomation\u002Finfra.json.","easingthemes\u002Fdx-aem-flow","easingthemes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2750284?v=4","01M6H3XYGJY8QCX9ES36P2WF4H","Dragan Filipović","01M6H3XYMN1XVSGKN7N79SW3RH",7,"MIT","https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-automation\u002Fskills\u002Fauto-pipelines\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"auto pipelines","auto","pipelines","self","for","ai automation","true","Variables","ado","import","register","project","init","infra","up","use","SET","pipeline","create","config","2026-11-10 10:12:30",false,"---\nname: auto-pipelines\ndescription: Import ADO pipelines for enabled AI automation agents and set all required pipeline variables. Imports all enabled pipelines — each project is self-contained. Reads config from .ai\u002Fautomation\u002Finfra.json.\nwhen_to_use: \"Use when importing ADO pipelines for AI automation agents, when the user says 'import pipelines', 'set up ADO pipelines', 'create automation pipelines', or after \u002Fauto-init to register the pipelines in ADO.\"\nargument-hint: \"\"\ndisable-model-invocation: true\n---\n\nYou import ADO pipeline YAML files into Azure DevOps and set all required variables. Uses `az pipelines` (audit-wrapped) and reads config from `.ai\u002Fautomation\u002Finfra.json`. Each project is self-contained — imports all enabled pipelines regardless of profile.\n\n## 0. Prerequisites\n\n```bash\nsource .ai\u002Flib\u002Faudit.sh\nexport AUDIT_LOG_PREFIX=infra\n```\n\nRead `.ai\u002Fautomation\u002Finfra.json`. Extract:\n- `adoOrg` — ADO org URL\n- `adoProject` — ADO project name\n- `pipelineFolder` — optional ADO pipeline folder path (e.g. `\\\\KAI`). If set, pipelines are created inside this folder.\n- Pipeline entries — **only those without `\"disabled\": true`**\n\nRead `.ai\u002Fconfig.yaml` to get `scm.repo` (repository name for pipeline import).\n\nIf `automationProfile` is `consumer`, `pr-only`, or `pr-delegation` (legacy): warn `⚠ Legacy profile — re-run \u002Fauto-init to migrate to per-project model.` Proceed with all enabled pipelines.\n\nPrint: `Importing \u003CN> enabled pipelines`\n\n**SimpleAgent + the KAI-HUB router are imported here like any other pipeline.** SimpleAgent has *no Lambda* — its trigger is an Azure-native Service Hook + Incoming WebHook service connection (configured by `\u002Fauto-webhooks`, not here). But \"no Lambda\" only affects the *trigger*: the pipeline YAML still must be imported as an ADO definition and given variables, which is exactly this skill's job. So:\n- **`simple`** (`ado-cli-simple.yml`) — enabled by default when not `disabled`.\n- **`hub`** (`ado-cli-hub.yml`) — **multi-repo only, `\"disabled\": true` by default**. Import only when explicitly enabled.\n\n## 1. Import Pipelines\n\nFor each enabled pipeline (in order), import the YAML into ADO.\n\nAll pipelines use Claude Code CLI (single-step skill invocation): `.ai\u002Fautomation\u002Fpipelines\u002Fcli\u002Fado-cli-\u003Cagent>.yml`.\n\n### 1a. Check if pipeline already exists\n\nBefore creating, check if a pipeline with this name already exists in the project:\n\n```bash\nEXISTING_ID=$(az pipelines list \\\n  --name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\" \\\n  --query \"[0].id\" --output tsv 2>\u002Fdev\u002Fnull)\n```\n\n- If `EXISTING_ID` is non-empty: **skip creation**, use existing ID. Report: `⏭ \u003Cpipeline-name> already exists (ID: \u003Cid>) — skipping`\n- If empty: create the pipeline (step 1b)\n\n### 1b. Create pipeline (only if not exists)\n\nIf `pipelineFolder` is set in infra.json, first ensure the folder exists:\n\n```bash\naz pipelines folder create \\\n  --path \"\u003CpipelineFolder>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\" 2>\u002Fdev\u002Fnull || true  # ignore if already exists\n```\n\nThen create the pipeline with `--folder-path` if the folder is configured:\n\n```bash\nPIPELINE_ID=$(az_pipelines create \\\n  --name \"\u003Cpipeline-name>\" \\\n  --repository \"\u003Crepo-name>\" \\\n  --branch main \\\n  --repository-type tfsgit \\\n  --yml-path \"\u003Cyaml-path>\" \\\n  --folder-path \"\u003CpipelineFolder>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\" \\\n  --skip-first-run true \\\n  --query id --output tsv)\n```\n\nOmit `--folder-path` if `pipelineFolder` is not set or empty in infra.json.\n\nAfter each import (or reuse), update `infra.json`:\n- `pipelines.\u003Cagent>.id` → `$PIPELINE_ID` (or `$EXISTING_ID`)\n\nReport: pipeline name, ID, YAML path, created\u002Freused.\n\n## 2. Set Pipeline Variables\n\nFor each imported pipeline, set required variables. Ask for secret values — **one pipeline at a time**, display current pipeline name clearly before asking.\n\n### 2a. Anthropic API key\n\nAll pipelines use Claude Code CLI. Ask once, apply to all pipelines:\n\n> **Anthropic API key?** (secret — used by Claude Code CLI for authentication)\n\nSet: `ANTHROPIC_API_KEY` (secret).\n\n### 2b. Common variables\n\n> **Monthly token cap?** (default: `5000000` = 5M tokens per month)\n\n```bash\naz_pipelines_variable create \\\n  --name \"MONTHLY_TOKEN_CAP\" \\\n  --value \"5000000\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### DoR pipeline additional variable\n\n> **DoR wiki URL?** ADO wiki page with your Definition of Ready criteria.\n>\n> (Leave blank to skip — agent uses default criteria)\n\n```bash\naz_pipelines_variable create \\\n  --name \"DOR_WIKI_URL\" \\\n  --value \"\u003Cvalue>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### PR Review pipeline additional variable\n\n> **Reviewer identities?** Comma-separated ADO identities to filter as reviewer.\n>\n> Format: `email@example.com, Display Name` (from `\u002Fauto-init` config — pre-fill from infra.json)\n\n```bash\naz_pipelines_variable create \\\n  --name \"REVIEWER_IDENTITIES\" \\\n  --value \"\u003Cemail, Name>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### PR Answer pipeline additional variable\n\n> **My identities?** Comma-separated ADO identities for PR Answer (whose PRs to respond on).\n>\n> (Pre-fill from infra.json if set during `auto-init`)\n\n```bash\naz_pipelines_variable create \\\n  --name \"MY_IDENTITIES\" \\\n  --value \"\u003Cemail, Name>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### QA pipeline additional variables\n\n> **Remote AEM Author URL?** For dialog\u002Fcomponent verification (e.g. `https:\u002F\u002Fauthor-myproject.adobeaemcloud.com`)\n> Default: `http:\u002F\u002Flocalhost:4502`\n\n> **Remote AEM Publisher URL?** For user-facing page verification (e.g. `https:\u002F\u002Fpublish-myproject.adobeaemcloud.com`)\n> Default: `http:\u002F\u002Flocalhost:4503`\n\n> **AEM username?** Default: `admin`\n\n> **AEM password?** (secret)\n\nSet: `AEM_AUTHOR_URL`, `AEM_PUBLISH_URL`, `AEM_USER`, `AEM_PASS` (secret).\n\n### ADO org URL (ALL CLI pipelines)\n\nSet this on ALL CLI pipelines (DoR, PR Review, PR Answer, DoD, DoD-Fix, BugFix, QA, DevAgent, DOCAgent, Estimation). The pipelines fetch the dx-aem-flow plugins by cloning the **public** GitHub repo (`https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow.git`, hardcoded in each pipeline YAML) — no marketplace URL variable is needed. `ADO_ORG_URL` is used by the agents to reach the ADO REST API.\n\n> **ADO org URL?** (pre-fill from `infra.json` > `adoOrg`)\n>\n> Used by the agents to call the ADO REST API (fetch work item, post comments).\n\n```bash\naz_pipelines_variable create \\\n  --name \"ADO_ORG_URL\" \\\n  --value \"\u003CadoOrg from infra.json>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### Code-writing pipeline additional variables (BugFix, DevAgent, DoD-Fix)\n\nSet these on ALL three code-writing pipelines. These enable cross-repo delegation — when a work item requires changes in another repo, the pipeline queues the equivalent pipeline in that repo.\n\n> **ADO org URL?** (pre-fill from `infra.json` > `adoOrg`)\n>\n> Used by the delegation step to call ADO REST API.\n\n```bash\naz_pipelines_variable create \\\n  --name \"ADO_ORG_URL\" \\\n  --value \"\u003CadoOrg from infra.json>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n> **Multi-repo fan-out?** There is no per-pipeline cross-repo map anymore. The\n> central **KAI-HUB** router (`ado-cli-hub.yml`) handles multi-repo fan-out: it\n> reads the `repos.json` + `agents.json` registries\n> (`.ai\u002Fautomation\u002Fregistries\u002F`) and queues each agent's worker once per resolved\n> repo. Single-repo projects don't import the hub at all — their dual-mode worker\n> fires directly via its own webhook. See `dx-hub\u002Fshared\u002Fregistry-format.md`.\n>\n> So workers no longer need a `CROSS_REPO_PIPELINE_MAP` variable. The only extra\n> variable the hub itself needs is `ADO_PAT` (to queue cross-project worker runs).\n\n### DevAgent pipeline additional variables\n\nSet these on the DevAgent pipeline (in addition to `ANTHROPIC_API_KEY` + `ADO_ORG_URL` above):\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `FIGMA_PERSONAL_ACCESS_TOKEN` | Optional — Figma API token for headless\u002FCI Figma access (not needed locally — Figma MCP uses desktop app) | Yes |\n\n### DOCAgent pipeline additional variables\n\nSet these on the DOCAgent pipeline (in addition to `ANTHROPIC_API_KEY`):\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `AEM_AUTHOR_URL` | Remote AEM author URL (same as QA pipeline) | No |\n| `AEM_PUBLISH_URL` | Remote AEM publisher URL (same as QA pipeline) | No |\n| `AEM_USER` | AEM username (same as QA pipeline) | No |\n| `AEM_PASS` | AEM password (same as QA pipeline) | Yes |\n\n### SimpleAgent pipeline additional variables\n\nThe SimpleAgent pipeline (`ado-cli-simple.yml`, triggered by a **`@kai-simple`** comment via an Azure-native Service Hook — no Lambda) runs the `\u002Fdx-simple` skill via the Claude Agent SDK against the **QA AEM environment**. It needs its own AEM credentials separate from the QA\u002FDOC pipelines (which may target a different environment).\n\nSet these on the SimpleAgent pipeline (in addition to `ANTHROPIC_API_KEY` + plugin marketplace variables above):\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `AEM_QA_URL` | QA author URL (e.g. `https:\u002F\u002Fqa-author.example.com`) | No |\n| `AEM_QA_USER` | Service-account username on QA | Yes |\n| `AEM_QA_PASSWORD` | Service-account password on QA | Yes |\n| `PLAYWRIGHT_MCP_VERSION` | Playwright MCP (`@playwright\u002Fmcp`) version — defaults to value pinned in `ado-cli-simple.yml` (override only if needed) | No |\n| `AEM_MCP_VERSION` | AEM MCP version — defaults to value pinned in `ado-cli-simple.yml` (override only if needed) | No |\n| `ADO_MCP_VERSION` | ADO MCP (`@azure-devops\u002Fmcp`) version — defaults to the value pinned in `pipeline-agent.js` (override only if needed) | No |\n| `ADO_MCP_DOMAINS` | ADO MCP tool domains, comma-separated — default `core,work,work-items,search,repositories,wiki` (no `pipelines`, `test-plans`, `advanced-security`); `all` loads every domain | No |\n\n> **AEM QA author URL?** For SimpleAgent visual verification + authoring writes (e.g. `https:\u002F\u002Fqa-author.example.com`)\n\n> **AEM QA service-account username?** (secret)\n\n> **AEM QA service-account password?** (secret)\n\n```bash\naz_pipelines_variable create \\\n  --name \"AEM_QA_URL\" \\\n  --value \"\u003Cqa-url>\" \\\n  --pipeline-name \"\u003Csimple-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n\naz_pipelines_variable create \\\n  --name \"AEM_QA_USER\" \\\n  --value \"\u003Cuser>\" --secret true \\\n  --pipeline-name \"\u003Csimple-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n\naz_pipelines_variable create \\\n  --name \"AEM_QA_PASSWORD\" \\\n  --value \"\u003Cpassword>\" --secret true \\\n  --pipeline-name \"\u003Csimple-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\nThe MCP version variables (`PLAYWRIGHT_MCP_VERSION`, `AEM_MCP_VERSION`) have inline defaults in the YAML — only set as pipeline variables to override.\n\n### KAI-HUB pipeline additional variables (multi-repo only)\n\nOnly applies if `hub` is enabled (`\"disabled\": true` by default — skip otherwise). The hub queues each agent's worker (one run per resolved repo, possibly cross-project) via the ADO REST API, so it needs a PAT. It runs claude-code only for the `dx-discover-repos` step, so it **does** need `ANTHROPIC_API_KEY`. It reads the `repos.json` + `agents.json` registries from `.ai\u002Fautomation\u002Fregistries\u002F` (files in the repo — not pipeline variables).\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `ADO_PAT` | PAT with Build (Read & Execute) scope — used to POST worker runs (Basic auth; cross-project) | Yes |\n| `ADO_ORG_URL` | ADO org URL (pre-fill from `infra.json` > `adoOrg`) | No |\n| `ANTHROPIC_API_KEY` | LLM key for the discovery step | Yes |\n\n```bash\naz_pipelines_variable create \\\n  --name \"ADO_PAT\" \\\n  --value \"\u003Cpat>\" --secret true \\\n  --pipeline-name \"\u003Ckai-hub-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n> **Trigger note:** in a multi-repo project the `@kai-\u003Cagent>` Service Hook targets the **`hub`** Incoming WebHook, not the per-repo workers. `\u002Fauto-webhooks` §2b handles that. This skill only imports the YAML and sets the variables above.\n\n## 3. Summary Report\n\n```markdown\n## ADO Pipelines Imported\n\n| Pipeline | ID | Variables |\n|----------|-----|-----------|\n| \u003Cname from infra.json> | \u003Cid> | \u003CN> set |\n| ... | ... | ... |\n\n(List each imported pipeline with its name from `infra.json`, assigned ID, and variable count.)\n\n**infra.json** updated with pipeline IDs.\n**Audit log:** `.ai\u002Flogs\u002Finfra.\u003Cweek>.jsonl`\n\n### Next step\n`\u002Fauto-deploy` — Deploy Lambda code\n```\n\n## Success Criteria\n\n- [ ] All pipelines imported (or confirmed existing) for the configured profile\n- [ ] Pipeline variables set for every required variable (no empty\u002Fmissing values)\n- [ ] Summary report lists each pipeline with ID and variable count\n\n## Examples\n\n1. `\u002Fauto-pipelines` (hub, first run) — Reads `infra.json` for 11 enabled agents (the 10 core agents + `simple`; the `hub` router is `disabled` by default). Imports each pipeline one at a time into ADO (e.g., `KAI-DoR-Checker`, `KAI-PR-Review-Agent`), sets required variables (ADO PAT, LLM API key, resource prefix), and records each pipeline ID back to `infra.json`. All 11 imported successfully.\n\n2. `\u002Fauto-pipelines` (consumer project) — Reads consumer-profile `infra.json` with 2 pipelines (PR Review, PR Answer). Imports `KAI-BrandB-PR-Review-Agent` and `KAI-BrandB-PR-Answer-Agent` with repo-specific names. Sets pipeline variables including hub Lambda URLs. Reminds user to register pipeline IDs with the hub's Lambda env vars.\n\n3. `\u002Fauto-pipelines` (re-run, some pipelines exist) — Checks each pipeline by name before creating. Finds 6 of 10 already exist with matching IDs. Skips those 6, imports the 4 new ones, and updates `infra.json` with the new pipeline IDs.\n\n## Troubleshooting\n\n- **\"Pipeline with this name already exists\"**\n  **Cause:** A pipeline with the same name was already imported (possibly from a previous run).\n  **Fix:** This is handled automatically — the skill detects existing pipelines and reuses their IDs. If the existing pipeline is from a different repo or is stale, delete it manually in ADO and re-run.\n\n- **Pipeline variable set fails with \"unauthorized\"**\n  **Cause:** The ADO PAT used for the `az pipelines` CLI doesn't have pipeline admin permissions.\n  **Fix:** Ensure the PAT has \"Build: Read & Execute\" and \"Variable Groups: Read, Create, & Manage\" scopes. Re-authenticate with `az devops login`.\n\n- **Pipeline imported but not showing in infra.json**\n  **Cause:** The skill updates `infra.json` after each import. If the process was interrupted, the last pipeline may be missing.\n  **Fix:** Re-run `\u002Fauto-pipelines` — it will detect the existing pipeline by name and record its ID without creating a duplicate.\n\n## Rules\n\n- **Always source audit.sh first** — wrap all `az pipelines` mutating calls\n- **Ask secrets interactively** — never read from environment, never store in infra.json\n- **One pipeline at a time** — import and set variables before moving to next\n- **Skip disabled agents** — check `\"disabled\": true` in infra.json before importing\n- **Check before create** — always check if pipeline exists by name before creating; reuse existing ID\n- **Never create duplicates** — if a pipeline with the same name exists, skip creation and use the existing ID\n- **Update infra.json after each import** — record pipeline ID immediately\n","You import ADO pipeline YAML files into Azure DevOps and set all required variables. Uses `az pipelines` (audit-wrapped) and reads config from `.ai\u002Fautomation\u002Finfra.json`. Each project is self-contained — imports all enabled pipelines regardless of profile.\n\n## 0. Prerequisites\n\n```bash\nsource .ai\u002Flib\u002Faudit.sh\nexport AUDIT_LOG_PREFIX=infra\n```\n\nRead `.ai\u002Fautomation\u002Finfra.json`. Extract:\n- `adoOrg` — ADO org URL\n- `adoProject` — ADO project name\n- `pipelineFolder` — optional ADO pipeline folder path (e.g. `\\\\KAI`). If set, pipelines are created inside this folder.\n- Pipeline entries — **only those without `\"disabled\": true`**\n\nRead `.ai\u002Fconfig.yaml` to get `scm.repo` (repository name for pipeline import).\n\nIf `automationProfile` is `consumer`, `pr-only`, or `pr-delegation` (legacy): warn `⚠ Legacy profile — re-run \u002Fauto-init to migrate to per-project model.` Proceed with all enabled pipelines.\n\nPrint: `Importing \u003CN> enabled pipelines`\n\n**SimpleAgent + the KAI-HUB router are imported here like any other pipeline.** SimpleAgent has *no Lambda* — its trigger is an Azure-native Service Hook + Incoming WebHook service connection (configured by `\u002Fauto-webhooks`, not here). But \"no Lambda\" only affects the *trigger*: the pipeline YAML still must be imported as an ADO definition and given variables, which is exactly this skill's job. So:\n- **`simple`** (`ado-cli-simple.yml`) — enabled by default when not `disabled`.\n- **`hub`** (`ado-cli-hub.yml`) — **multi-repo only, `\"disabled\": true` by default**. Import only when explicitly enabled.\n\n## 1. Import Pipelines\n\nFor each enabled pipeline (in order), import the YAML into ADO.\n\nAll pipelines use Claude Code CLI (single-step skill invocation): `.ai\u002Fautomation\u002Fpipelines\u002Fcli\u002Fado-cli-\u003Cagent>.yml`.\n\n### 1a. Check if pipeline already exists\n\nBefore creating, check if a pipeline with this name already exists in the project:\n\n```bash\nEXISTING_ID=$(az pipelines list \\\n  --name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\" \\\n  --query \"[0].id\" --output tsv 2>\u002Fdev\u002Fnull)\n```\n\n- If `EXISTING_ID` is non-empty: **skip creation**, use existing ID. Report: `⏭ \u003Cpipeline-name> already exists (ID: \u003Cid>) — skipping`\n- If empty: create the pipeline (step 1b)\n\n### 1b. Create pipeline (only if not exists)\n\nIf `pipelineFolder` is set in infra.json, first ensure the folder exists:\n\n```bash\naz pipelines folder create \\\n  --path \"\u003CpipelineFolder>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\" 2>\u002Fdev\u002Fnull || true  # ignore if already exists\n```\n\nThen create the pipeline with `--folder-path` if the folder is configured:\n\n```bash\nPIPELINE_ID=$(az_pipelines create \\\n  --name \"\u003Cpipeline-name>\" \\\n  --repository \"\u003Crepo-name>\" \\\n  --branch main \\\n  --repository-type tfsgit \\\n  --yml-path \"\u003Cyaml-path>\" \\\n  --folder-path \"\u003CpipelineFolder>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\" \\\n  --skip-first-run true \\\n  --query id --output tsv)\n```\n\nOmit `--folder-path` if `pipelineFolder` is not set or empty in infra.json.\n\nAfter each import (or reuse), update `infra.json`:\n- `pipelines.\u003Cagent>.id` → `$PIPELINE_ID` (or `$EXISTING_ID`)\n\nReport: pipeline name, ID, YAML path, created\u002Freused.\n\n## 2. Set Pipeline Variables\n\nFor each imported pipeline, set required variables. Ask for secret values — **one pipeline at a time**, display current pipeline name clearly before asking.\n\n### 2a. Anthropic API key\n\nAll pipelines use Claude Code CLI. Ask once, apply to all pipelines:\n\n> **Anthropic API key?** (secret — used by Claude Code CLI for authentication)\n\nSet: `ANTHROPIC_API_KEY` (secret).\n\n### 2b. Common variables\n\n> **Monthly token cap?** (default: `5000000` = 5M tokens per month)\n\n```bash\naz_pipelines_variable create \\\n  --name \"MONTHLY_TOKEN_CAP\" \\\n  --value \"5000000\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### DoR pipeline additional variable\n\n> **DoR wiki URL?** ADO wiki page with your Definition of Ready criteria.\n>\n> (Leave blank to skip — agent uses default criteria)\n\n```bash\naz_pipelines_variable create \\\n  --name \"DOR_WIKI_URL\" \\\n  --value \"\u003Cvalue>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### PR Review pipeline additional variable\n\n> **Reviewer identities?** Comma-separated ADO identities to filter as reviewer.\n>\n> Format: `email@example.com, Display Name` (from `\u002Fauto-init` config — pre-fill from infra.json)\n\n```bash\naz_pipelines_variable create \\\n  --name \"REVIEWER_IDENTITIES\" \\\n  --value \"\u003Cemail, Name>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### PR Answer pipeline additional variable\n\n> **My identities?** Comma-separated ADO identities for PR Answer (whose PRs to respond on).\n>\n> (Pre-fill from infra.json if set during `auto-init`)\n\n```bash\naz_pipelines_variable create \\\n  --name \"MY_IDENTITIES\" \\\n  --value \"\u003Cemail, Name>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### QA pipeline additional variables\n\n> **Remote AEM Author URL?** For dialog\u002Fcomponent verification (e.g. `https:\u002F\u002Fauthor-myproject.adobeaemcloud.com`)\n> Default: `http:\u002F\u002Flocalhost:4502`\n\n> **Remote AEM Publisher URL?** For user-facing page verification (e.g. `https:\u002F\u002Fpublish-myproject.adobeaemcloud.com`)\n> Default: `http:\u002F\u002Flocalhost:4503`\n\n> **AEM username?** Default: `admin`\n\n> **AEM password?** (secret)\n\nSet: `AEM_AUTHOR_URL`, `AEM_PUBLISH_URL`, `AEM_USER`, `AEM_PASS` (secret).\n\n### ADO org URL (ALL CLI pipelines)\n\nSet this on ALL CLI pipelines (DoR, PR Review, PR Answer, DoD, DoD-Fix, BugFix, QA, DevAgent, DOCAgent, Estimation). The pipelines fetch the dx-aem-flow plugins by cloning the **public** GitHub repo (`https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow.git`, hardcoded in each pipeline YAML) — no marketplace URL variable is needed. `ADO_ORG_URL` is used by the agents to reach the ADO REST API.\n\n> **ADO org URL?** (pre-fill from `infra.json` > `adoOrg`)\n>\n> Used by the agents to call the ADO REST API (fetch work item, post comments).\n\n```bash\naz_pipelines_variable create \\\n  --name \"ADO_ORG_URL\" \\\n  --value \"\u003CadoOrg from infra.json>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n### Code-writing pipeline additional variables (BugFix, DevAgent, DoD-Fix)\n\nSet these on ALL three code-writing pipelines. These enable cross-repo delegation — when a work item requires changes in another repo, the pipeline queues the equivalent pipeline in that repo.\n\n> **ADO org URL?** (pre-fill from `infra.json` > `adoOrg`)\n>\n> Used by the delegation step to call ADO REST API.\n\n```bash\naz_pipelines_variable create \\\n  --name \"ADO_ORG_URL\" \\\n  --value \"\u003CadoOrg from infra.json>\" \\\n  --pipeline-name \"\u003Cpipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n> **Multi-repo fan-out?** There is no per-pipeline cross-repo map anymore. The\n> central **KAI-HUB** router (`ado-cli-hub.yml`) handles multi-repo fan-out: it\n> reads the `repos.json` + `agents.json` registries\n> (`.ai\u002Fautomation\u002Fregistries\u002F`) and queues each agent's worker once per resolved\n> repo. Single-repo projects don't import the hub at all — their dual-mode worker\n> fires directly via its own webhook. See `dx-hub\u002Fshared\u002Fregistry-format.md`.\n>\n> So workers no longer need a `CROSS_REPO_PIPELINE_MAP` variable. The only extra\n> variable the hub itself needs is `ADO_PAT` (to queue cross-project worker runs).\n\n### DevAgent pipeline additional variables\n\nSet these on the DevAgent pipeline (in addition to `ANTHROPIC_API_KEY` + `ADO_ORG_URL` above):\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `FIGMA_PERSONAL_ACCESS_TOKEN` | Optional — Figma API token for headless\u002FCI Figma access (not needed locally — Figma MCP uses desktop app) | Yes |\n\n### DOCAgent pipeline additional variables\n\nSet these on the DOCAgent pipeline (in addition to `ANTHROPIC_API_KEY`):\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `AEM_AUTHOR_URL` | Remote AEM author URL (same as QA pipeline) | No |\n| `AEM_PUBLISH_URL` | Remote AEM publisher URL (same as QA pipeline) | No |\n| `AEM_USER` | AEM username (same as QA pipeline) | No |\n| `AEM_PASS` | AEM password (same as QA pipeline) | Yes |\n\n### SimpleAgent pipeline additional variables\n\nThe SimpleAgent pipeline (`ado-cli-simple.yml`, triggered by a **`@kai-simple`** comment via an Azure-native Service Hook — no Lambda) runs the `\u002Fdx-simple` skill via the Claude Agent SDK against the **QA AEM environment**. It needs its own AEM credentials separate from the QA\u002FDOC pipelines (which may target a different environment).\n\nSet these on the SimpleAgent pipeline (in addition to `ANTHROPIC_API_KEY` + plugin marketplace variables above):\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `AEM_QA_URL` | QA author URL (e.g. `https:\u002F\u002Fqa-author.example.com`) | No |\n| `AEM_QA_USER` | Service-account username on QA | Yes |\n| `AEM_QA_PASSWORD` | Service-account password on QA | Yes |\n| `PLAYWRIGHT_MCP_VERSION` | Playwright MCP (`@playwright\u002Fmcp`) version — defaults to value pinned in `ado-cli-simple.yml` (override only if needed) | No |\n| `AEM_MCP_VERSION` | AEM MCP version — defaults to value pinned in `ado-cli-simple.yml` (override only if needed) | No |\n| `ADO_MCP_VERSION` | ADO MCP (`@azure-devops\u002Fmcp`) version — defaults to the value pinned in `pipeline-agent.js` (override only if needed) | No |\n| `ADO_MCP_DOMAINS` | ADO MCP tool domains, comma-separated — default `core,work,work-items,search,repositories,wiki` (no `pipelines`, `test-plans`, `advanced-security`); `all` loads every domain | No |\n\n> **AEM QA author URL?** For SimpleAgent visual verification + authoring writes (e.g. `https:\u002F\u002Fqa-author.example.com`)\n\n> **AEM QA service-account username?** (secret)\n\n> **AEM QA service-account password?** (secret)\n\n```bash\naz_pipelines_variable create \\\n  --name \"AEM_QA_URL\" \\\n  --value \"\u003Cqa-url>\" \\\n  --pipeline-name \"\u003Csimple-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n\naz_pipelines_variable create \\\n  --name \"AEM_QA_USER\" \\\n  --value \"\u003Cuser>\" --secret true \\\n  --pipeline-name \"\u003Csimple-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n\naz_pipelines_variable create \\\n  --name \"AEM_QA_PASSWORD\" \\\n  --value \"\u003Cpassword>\" --secret true \\\n  --pipeline-name \"\u003Csimple-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\nThe MCP version variables (`PLAYWRIGHT_MCP_VERSION`, `AEM_MCP_VERSION`) have inline defaults in the YAML — only set as pipeline variables to override.\n\n### KAI-HUB pipeline additional variables (multi-repo only)\n\nOnly applies if `hub` is enabled (`\"disabled\": true` by default — skip otherwise). The hub queues each agent's worker (one run per resolved repo, possibly cross-project) via the ADO REST API, so it needs a PAT. It runs claude-code only for the `dx-discover-repos` step, so it **does** need `ANTHROPIC_API_KEY`. It reads the `repos.json` + `agents.json` registries from `.ai\u002Fautomation\u002Fregistries\u002F` (files in the repo — not pipeline variables).\n\n| Variable | Value | Secret? |\n|----------|-------|---------|\n| `ADO_PAT` | PAT with Build (Read & Execute) scope — used to POST worker runs (Basic auth; cross-project) | Yes |\n| `ADO_ORG_URL` | ADO org URL (pre-fill from `infra.json` > `adoOrg`) | No |\n| `ANTHROPIC_API_KEY` | LLM key for the discovery step | Yes |\n\n```bash\naz_pipelines_variable create \\\n  --name \"ADO_PAT\" \\\n  --value \"\u003Cpat>\" --secret true \\\n  --pipeline-name \"\u003Ckai-hub-pipeline-name>\" \\\n  --project \"\u003CadoProject>\" \\\n  --organization \"\u003CadoOrg>\"\n```\n\n> **Trigger note:** in a multi-repo project the `@kai-\u003Cagent>` Service Hook targets the **`hub`** Incoming WebHook, not the per-repo workers. `\u002Fauto-webhooks` §2b handles that. This skill only imports the YAML and sets the variables above.\n\n## 3. Summary Report\n\n```markdown\n## ADO Pipelines Imported\n\n| Pipeline | ID | Variables |\n|----------|-----|-----------|\n| \u003Cname from infra.json> | \u003Cid> | \u003CN> set |\n| ... | ... | ... |\n\n(List each imported pipeline with its name from `infra.json`, assigned ID, and variable count.)\n\n**infra.json** updated with pipeline IDs.\n**Audit log:** `.ai\u002Flogs\u002Finfra.\u003Cweek>.jsonl`\n\n### Next step\n`\u002Fauto-deploy` — Deploy Lambda code\n```\n\n## Success Criteria\n\n- [ ] All pipelines imported (or confirmed existing) for the configured profile\n- [ ] Pipeline variables set for every required variable (no empty\u002Fmissing values)\n- [ ] Summary report lists each pipeline with ID and variable count\n\n## Examples\n\n1. `\u002Fauto-pipelines` (hub, first run) — Reads `infra.json` for 11 enabled agents (the 10 core agents + `simple`; the `hub` router is `disabled` by default). Imports each pipeline one at a time into ADO (e.g., `KAI-DoR-Checker`, `KAI-PR-Review-Agent`), sets required variables (ADO PAT, LLM API key, resource prefix), and records each pipeline ID back to `infra.json`. All 11 imported successfully.\n\n2. `\u002Fauto-pipelines` (consumer project) — Reads consumer-profile `infra.json` with 2 pipelines (PR Review, PR Answer). Imports `KAI-BrandB-PR-Review-Agent` and `KAI-BrandB-PR-Answer-Agent` with repo-specific names. Sets pipeline variables including hub Lambda URLs. Reminds user to register pipeline IDs with the hub's Lambda env vars.\n\n3. `\u002Fauto-pipelines` (re-run, some pipelines exist) — Checks each pipeline by name before creating. Finds 6 of 10 already exist with matching IDs. Skips those 6, imports the 4 new ones, and updates `infra.json` with the new pipeline IDs.\n\n## Troubleshooting\n\n- **\"Pipeline with this name already exists\"**\n  **Cause:** A pipeline with the same name was already imported (possibly from a previous run).\n  **Fix:** This is handled automatically — the skill detects existing pipelines and reuses their IDs. If the existing pipeline is from a different repo or is stale, delete it manually in ADO and re-run.\n\n- **Pipeline variable set fails with \"unauthorized\"**\n  **Cause:** The ADO PAT used for the `az pipelines` CLI doesn't have pipeline admin permissions.\n  **Fix:** Ensure the PAT has \"Build: Read & Execute\" and \"Variable Groups: Read, Create, & Manage\" scopes. Re-authenticate with `az devops login`.\n\n- **Pipeline imported but not showing in infra.json**\n  **Cause:** The skill updates `infra.json` after each import. If the process was interrupted, the last pipeline may be missing.\n  **Fix:** Re-run `\u002Fauto-pipelines` — it will detect the existing pipeline by name and record its ID without creating a duplicate.\n\n## Rules\n\n- **Always source audit.sh first** — wrap all `az pipelines` mutating calls\n- **Ask secrets interactively** — never read from environment, never store in infra.json\n- **One pipeline at a time** — import and set variables before moving to next\n- **Skip disabled agents** — check `\"disabled\": true` in infra.json before importing\n- **Check before create** — always check if pipeline exists by name before creating; reuse existing ID\n- **Never create duplicates** — if a pipeline with the same name exists, skip creation and use the existing ID\n- **Update infra.json after each import** — record pipeline ID immediately\n",{"name":5,"description":7,"when_to_use":44,"argument-hint":45,"disable-model-invocation":46},"Use when importing ADO pipelines for AI automation agents, when the user says 'import pipelines', 'set up ADO pipelines', 'create automation pipelines', or after \u002Fauto-init to register the pipelines in ADO.","",true,"main","a99cabc3f459fbeaa42b13a1604db1bccb6a364b","plugins\u002Fdx-automation\u002Fskills\u002Fauto-pipelines",3,"https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow","https:\u002F\u002Fgithub.com\u002Feasingthemes","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fdraganfilipovic\u002F","Agentic SDLC platform in production. I build agent-ready codebases. AEM MCP Server author.","2026-11-11 09:59:48",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":46},[58,61,64],{"tool":59,"command":60},"npx","npx skills add easingthemes\u002Fdx-aem-flow --skill auto-pipelines",{"tool":62,"command":63},"bunx","bunx skills add easingthemes\u002Fdx-aem-flow --skill auto-pipelines",{"tool":65,"command":66},"pnpm","pnpm dlx skills add easingthemes\u002Fdx-aem-flow --skill auto-pipelines","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-automation\u002Fskills\u002Fauto-pipelines\u002FSKILL.md",[],[70,94,113,131,145,160],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":39},"01M6H48W19F46A7B7TSSQAMYRW","dx-hub-status","Show hub dispatch status — which repos are running, done, blocked or failed. Use for 'hub status', 'what's running'.","https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-hub\u002Fskills\u002Fdx-hub-status\u002FSKILL.md",[],[77,78,79,80,81,82,83,23,84,85,34,86,87,88,89,90,91,92,93],"dx","dx hub status","hub","status","hub status","which","show","ticket","clean","done","Bash","id","dispatch","read","write","repos","grep",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6H48R6ZH7YMVPMVWMMWT3RA","dx-hub-init","Initialize a hub directory for multi-repo orchestration. Discovers sibling repos, merges configs, validates CLI compatibility. Use when setting up hub mode for the first time. Trigger on \"init hub\", \"set up hub\", \"multi-repo setup\".","https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-hub\u002Fskills\u002Fdx-hub-init\u002FSKILL.md",[],[31,101,77,102,79,35,103,104,105,33,106,107,108,109,87,110,111,90,91,112],"hub init","dx hub init","time","mode","default","repo setup","orchestration","configure","multi-repo","cli","directory","edit",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":39},"01M6H48K267CWEF8YNN3Y49BVT","dx-hub-dispatch","Dispatch a ticket to several repos — open an independent Claude session per repo in VS Code terminals. Use for 'hub dispatch', 'work on ticket across repos'.","https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-hub\u002Fskills\u002Fdx-hub-dispatch\u002FSKILL.md",[],[77,120,89,79,27,23,121,122,123,84,124,125,34,126,87,127,128,129,88,130],"dx hub dispatch","repo","work on","session","open","MCP","URL","vscode","code","across","work",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":39},"01M6H48FAWKTT6AAWT3H80ZKE0","dx-hub-config","View and edit hub configuration — add repos, adjust terminal delay. Use to manage hub settings. Trigger on \"hub config\", \"add repo to hub\", \"terminal delay\".","https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-hub\u002Fskills\u002Fdx-hub-config\u002FSKILL.md",[],[77,138,79,38,83,139,121,140,141,25,142,34,108,87,143,90,144,91,112,92],"dx hub config","view","manage","trigger","adjust","terminal","settings",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":39},"01M6H48BNMYEJY6CCWPYHNQDAT","dx-discover-repos","Resolve which repos a work item touches (explicit directive → simple block → cross-repo table → LLM). Used by the KAI-HUB router to fan an agent out across repos; 'which repos'.","https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-hub\u002Fskills\u002Fdx-discover-repos\u002FSKILL.md",[],[152,77,153,92,82,121,129,154,88,155,130,156,79,157,158,159],"discover","dx discover repos","router","directive","simple","block","sonnet","table",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":39},"01M6H487QA1FDSBT1HTZGW4HAQ","dx-upgrade","Upgrade a consumer project to the installed plugin versions — run dx-doctor, fix stale and missing files, list manual actions. Use after upgrading plugins.","https:\u002F\u002Fgithub.com\u002Feasingthemes\u002Fdx-aem-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fdx-core\u002Fskills\u002Fdx-upgrade\u002FSKILL.md",[],[167,77,168,30,169,170,171,172,20,173,90,91,112,174,175,176,177,34,178,179],"upgrade","dx upgrade","actions","search","fix","files","run","list","doctor","manual","missing","plugin","plugins"]