Command Quick Reference
All slash commands at a glance -- grouped by workflow phase
First-Time Setup
Run once per repo to configure the project.
| Command | Description |
|---|---|
/dx-init | Configure project — ADO mapping, build commands, base branch. Creates .ai/config.yaml. |
/aem-init | Detect AEM structure, append aem: section to config. AEM projects only. |
/dx-adapt | Auto-detect project type, role, toolchain, and build commands. Writes project.type, project.role, and toolchain: section to config. |
/dx-scan | Deep project scan — discover FE/BE conventions from code, customize rules with real values, generate seed data. Interactive. |
/auto-init | Scaffold autonomous agent infrastructure (optional). |
Reconnaissance
Quick lookups before starting work.
| Command | Argument | Description |
|---|---|---|
/dx-ticket-analyze | <id> | Quick ticket recon — files, pages, acceptance criteria |
/aem-component | <name> | Find all source files + AEM pages for a component |
/aem-page-search | <name> | Find all AEM pages using a specific component |
/dx-help | <question> | Answer architecture questions from local docs |
/dx-estimate | <id> | Analyze story, produce hours/SP estimation |
/dx-council | <question> | LLM Council — 3 advisors analyze, peer-review, synthesize verdict. Use council the plan or council the implementation. |
Requirements
Fetch, validate, explain, research, and share.
| Command | Argument | Description | Output |
|---|---|---|---|
/dx-req | <id> | Full requirements pipeline (fetch, DoR, explain, research, share). Detects cross-repo scope when repos: exists in config. | All spec files + ADO comments |
/dx-dor | <id(s)> | Validate Definition of Ready standalone or in batch (also runs inside /dx-req) | ADO comment |
/dx-req-tasks | <id> | Create child Task work items with estimates | ADO/Jira tasks |
/dx-req-import | <path> | Validate external requirements document | explain.md |
Figma Design-to-Code
Extract, prototype, and verify from Figma designs.
| Command | Argument | Description |
|---|---|---|
/dx-figma-all | [id] [URL] | Full Figma workflow: extract, prototype, verify |
/dx-figma-extract | [id] [URL] | Extract design context, tokens, screenshots from Figma |
/dx-figma-prototype | <id> (opt) | Generate standalone HTML/CSS prototype |
/dx-figma-verify | <id> (opt) | Visually verify prototype against Figma reference |
Planning
Generate and validate implementation plan.
| Command | Argument | Description | Output |
|---|---|---|---|
/dx-plan | <id> (opt) | Generate step-by-step implementation plan. Tags steps with repo names for cross-repo work. | implement.md |
/dx-plan-validate | <id> (opt) | Verify plan covers all requirements | Pass/Fail |
/dx-plan-resolve | <id> (opt) | Fix risks flagged by validation | Updated implement.md |
/dx-prep | <id> | Prepare a story for hand-off: plan, wiki page, [DevPlan], specs pushed | docs/plan-wiki.md, wiki page |
Execution
Execute plan steps, test, review, commit.
| Command | Argument | Description |
|---|---|---|
/dx-step-all | <id> (opt) | Execute all plan steps autonomously (step + fix loop) |
/dx-step | <id> (opt) | Execute next pending step — implement, test, review, commit |
/dx-step-fix | <id> (opt) | Fix a blocked step — direct fix or corrective steps |
Build + Verify
Build, deploy, and run 6-phase verification.
| Command | Description |
|---|---|
/dx-step-build | Build and deploy, auto-fix errors iteratively (max 6 attempts) |
/dx-step-verify | 6-phase verification: compile, lint, test, secrets, architecture, code review |
/dx-axe <URL> | Accessibility testing using axe MCP Server |
AEM Verification
Component snapshots, verification, and demo capture.
| Command | Argument | Description |
|---|---|---|
/aem-snapshot | <component> | Baseline component state before changes |
/aem-demo-page | [id] [component] [—local] | Demo page + dialog/preview screenshots (local or QA) |
/aem-fe-verify | <component> | Screenshot and compare against Figma/requirements |
/aem-qa | <id> (opt) | Full QA agent — navigate, check rendering, create Bug tickets |
Bug Fix
Triage, verify, and fix bugs.
| Command | Argument | Description |
|---|---|---|
/dx-bug-all | <bug-id> [autonomous] | Full bug workflow: triage, verify, fix (autonomous: no stops) |
/dx-bug-triage | <bug-id> | Fetch bug, find affected component |
/dx-bug-verify | <bug-id> [before|after|qa] | Reproduce via Playwright. before: confirm bug. after: verify fix locally. qa: verify fix on QA post-merge. |
/dx-bug-fix | <bug-id> (opt) | Generate fix plan, execute, create PR |
Pull Request
Create, review, answer, and fix PRs.
| Command | Argument | Description |
|---|---|---|
/dx-pr | <id> (opt) | Create pull request via ADO MCP |
/dx-pr-commit | [pr] | Commit with WI linking; add pr to also create a PR |
/dx-pr-review | <PR URL> | Review a PR — analyze diff, post comments, propose fixes. Checks sibling FE repos for field impact on dialog changes. |
/dx-pr-review-all | none | Batch-review multiple open PRs |
/dx-pr-answer | <PR URL> (opt) | Answer open PR comments, apply agree-will-fix changes |
/dx-pr-review-report | <PR URL> | Generate categorized report, post to wiki |
/dx-pr-reviews-report | [—any] [URL | count] | Batch report for several reviewed PRs, posted to wiki |
Documentation
Generate wiki docs, authoring guides, and QA handoffs.
| Command | Argument | Description |
|---|---|---|
/dx-doc-gen | <id> | Story wiki page (also retroactively, without spec files) |
/dx-qa-handoff | <id> | Post the QA handoff comment |
/dx-post-merge | <id> | After merge: demo page on QA → wiki page → QA handoff |
Definition of Done
Validate deliverables against the DoD checklist. For the readiness counterpart see /dx-dor under Requirements.
| Command | Argument | Description |
|---|---|---|
/dx-req-dod | <id> | Check Definition of Done and auto-fix gaps |
Agent Roles
Specialized agent pipelines.
| Command | Argument | Description |
|---|---|---|
/dx-agent-all | <id> [autonomous] | Full pipeline: requirements, plan, execute, review, PR |
Automation
Deploy and manage autonomous agent infrastructure.
| Command | Description |
|---|---|
/auto-init | Scaffold .ai/automation/ |
/auto-provision | Create AWS resources (DynamoDB, SQS, S3, Lambda, API Gateway) |
/auto-pipelines | Import ADO pipeline YAMLs, set variables |
/auto-deploy | Deploy Lambda code |
/auto-lambda-env | Set Lambda environment variables |
/auto-webhooks | Configure ADO service hooks + build policy |
/auto-alarms | Create CloudWatch alarms, subscribe email |
/auto-doctor | Full health check: files, pipelines, Lambda state |
/auto-status | Dashboard: DLQ depth, token budget, rate limits |
/auto-test | Local dry-run against real ADO data |
Utility + Maintenance
Health checks, upgrades, and ejection.
| Command | Argument | Description |
|---|---|---|
/dx-doctor | [dx|aem|seed-data|auto|all] | Check health of all dx workflow files. Warns on stale project.yaml files. |
/dx-upgrade | [dx|aem|auto|all] | Fix all issues found by dx-doctor. Migrates legacy project.yaml fields into config.yaml. |
/dx-eject | [dx|aem|auto|all] | Eject plugin assets into local repo |
/dx-sync | [—dry-run] [—parallel] [repos…] | Sync plugin updates to consumer repos |
/dx-security | [changes|full] | Security hardening audit — OWASP Top 10, secrets, dependencies, input validation, auth |
/dx-simplify | [path] | Reduce complexity while preserving exact behaviour |
/dx-simple | <id> | Apply one small AEM change via an authoring (JCR) or code (PR) path, behind 9 confidence gates |
/dx-pattern-extract | [—dry-run] | Promote recurring patterns from completed tickets to cross-ticket knowledge |
/aem-refresh | none | Update .ai/project/ seed data |
/aem-doctor | [components|osgi|dispatcher|all] | Check AEM project infrastructure health |
Multi-Repo Orchestration
Fan one ticket out across sibling repos.
| Command | Argument | Description |
|---|---|---|
/dx-hub-init | [path] | Initialise a hub directory, discover sibling repos, merge configs |
/dx-hub-config | [show | add-repo <path> | fill-defaults | terminal-delay <s>] | View and edit hub configuration |
/dx-hub-dispatch | <id> [repos…] [—skill] [autonomous] [—no-launch] | Dispatch a ticket to multiple repos — one Claude Code or Copilot CLI session each (hub.engine), started in VS Code terminals, Terminal.app or by hand (hub.launcher) |
/dx-hub-status | [id] [—json] | —clean | Show which repos are running, done, blocked, or failed (—json: one JSON array) |
/dx-discover-repos | <id> | Resolve which repos a work item touches (3-tier cascade) |
Cross-Repo Ticket Handling
Some tickets span multiple repos. The workflow handles this gracefully.
How It Works
- Requirements phase (
/dx-req) discovers which repos need work research.mdandexplain.mdlist the repos involved- Plan and execution only cover the current repo
- Switch to the other repo and run the same workflow there
Pipeline Mode (Automated)
In automation, the KAI-HUB router resolves which repos a work item touches via
/dx-discover-repos and queues the agent’s one dual-mode worker once per repo. Each
worker clones its target repo dynamically and runs the same coordinator there — no peer-to-peer
handoff between pipelines.
# In backend repo: /dx-req 2416553 /dx-plan /dx-step-all # In frontend repo (same ticket, plans FE steps only): /dx-req 2416553 /dx-plan /dx-step-all
Self-Learning
Coordinator skills automatically log run metrics and patterns. Each subsequent run gets smarter.
| File | Contents | Written By |
|---|---|---|
.ai/learning/raw/runs.jsonl | Run records — timestamp, ticket, flow, step statuses, fix/heal counts | dx-step-all, dx-bug-all, dx-estimate |
.ai/learning/raw/fixes.jsonl | Fix patterns — error type, fix description, success/failure | dx-step-all |
.ai/learning/raw/bugs.jsonl | Bug patterns — component, root cause, files changed | dx-bug-all |
.ai/run-results/<skill>-<id>.json | Result of the latest run — status (done / blocked / failed), verdict, vote, next action, PR / wiki / work item links, run_id (DX_RUN_ID, or <session id>.<n> for a manual run), start time and duration, per-skill metrics and env (dx version, engine, mode) (schema: docs/reference/run-result.md) | dx-agent-all, dx-bug-all, dx-post-merge, dx-pr-review, dx-prep, dx-dor, dx-estimate, dx-req, dx-pr-answer, dx-bug-fix, dx-plan, dx-step-all, dx-step-verify, dx-req-dod, dx-doc-gen, dx-qa-handoff, aem-demo-page, dx-hub-dispatch |
.ai/run-results/<skill>-<id>.running.json | Present while a run is going: started_at, run_id, the progress file name. Removed by the final write; left behind = interrupted run | same skills |
.ai/run-results/history.jsonl | Every final result, one JSON object per line (trimmed to the last 1000 after 2000) | same skills |
Pattern Promotion
When dx-step-all detects a fix pattern with 3+ successes and 0 failures, it promotes it to
.claude/rules/learned-fix-*.md — auto-loaded by Claude on every future run.
Committing Learning Data
.ai/learning/raw/ contains JSONL machine data — safe to commit or gitignore.
.claude/rules/learned-*.md should be committed (they are project-level rules).
DoR to BA Feedback to Share Plan
Incremental requirements loop with idempotent steps and BA checkbox interaction.
Each step is idempotent -- already-completed steps are skipped on re-run.
/dx-req 2416553 # Full pipeline: fetch, DoR, explain, research, share
Dependency Chain
fetch → dor → explain → research → share.
The BA checkbox loop between dor steps is the only human gate in the chain.
All other transitions are automatic.
Removed in v7
The post-merge skills were consolidated. Old commands and what replaces them.
| Removed | Use instead | Notes |
|---|---|---|
/aem-verify <component> | /aem-demo-page <component> —local | Dialog diff against the /aem-snapshot baseline, local demo page, screenshots |
/aem-verify —qa | /aem-demo-page <id> | QA is the default instance |
/aem-editorial-guide | /aem-demo-page + /dx-doc-gen | Screenshots from the demo page; the authoring section lives on the story’s wiki page (needs a work item) |
/aem-doc-gen | /aem-demo-page <id> | Screenshots uploaded as work-item attachments |
/aem-qa-handoff | /dx-qa-handoff <id> | Work item ID only, no AEM access |
/dx-doc-retro | /dx-doc-gen <id> | Retro mode starts by itself when the story has no spec files |
@AEMAfter, @AEMEditorialGuide | @AEMDemoPage | Copilot agents |
aem-after.md and demo/authoring-guide.md are no longer written or read — demo/demo-page.md replaces both. /dx-agent-all now ends at the PR; run /dx-post-merge <id> after the merge and the QA deploy. Upgrade steps: Setup → Upgrading to v7.