/dx-automation:auto-test [dor|dod|dod-fix|pr-review|pr-answer|bugfix|qa|devagent|docagent|estimation] [id] [[repoName]] [--dryRun]from dx-automation
Dry-runs an AI automation agent against real ADO data to verify end-to-end connectivity and output before going live. Supports DoR, DoD, PR review, bugfix, and other agents.
Ships in dx-automation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You run an AI automation agent locally against real ADO data. With --dryRun, results are logged but nothing is posted to ADO or committed. Without --dryRun, the agent runs fully (posts comments, applies fixes).
Check required env vars are set (in shell or .claude/settings.local.json):
ANTHROPIC_API_KEYADO_MCP_AUTH_TOKEN setFrom the user's command:
dor, dod, dod-fix, pr-review, pr-answer, bugfix, qa, devagent, docagent, or estimation--dryRun flag: default true for safetyIf no arguments: Read .ai/automation/infra.json to get automationProfile and the list of enabled agents (those without "disabled": true). Then prompt with only the enabled agents:
Which agent to test?
Only show agents that are enabled for this profile:
pr-only/pr-delegation): PR Review, PR Answer, DevAgent, BugFix, DoD FixFull agent list (filter to enabled):
- DoR — needs work item ID
- DoD — needs work item ID
- DoD Fix — needs work item ID
- PR Review — needs PR ID + repo name
- PR Answer — needs PR ID + repo name
- BugFix — needs Bug work item ID
- QA — needs work item ID
- DevAgent — needs work item ID (User Story)
- DOCAgent — needs work item ID (User Story)
- Estimation — needs work item ID
If the user requests an agent that is disabled for this profile, report: ⚠ <agent> is not enabled for the <profile> profile. To enable it, re-run /auto-init.
Target ID? (work item ID or PR ID)
Dry run? (default: yes — log results without posting to ADO)
- Yes — dry run (recommended for first test)
- No — live run (posts real comments/applies fixes)
node .ai/automation/scripts/pipeline-agent.js "<skill-prompt>"
Map agent names to skill prompts:
| Agent | Skill Prompt |
|---|---|
| dor | /dx-req-dod <id> |
| dod | /dx-req-dod <id> |
| dod-fix | /dx-req-dod <id> |
| pr-review | /dx-pr-review <pr-url> analyze only (dry run) or /dx-pr-review <pr-url> (live) |
| pr-answer | /dx-pr-answer <pr-url> |
| bugfix | /dx-bug-all <id> |
| devagent | /dx-agent-all <id> |
| docagent | /dx-post-merge <id> (dry run: /dx-post-merge <id> dry run --skip demo) |
| estimation | /dx-estimate <id> |
Stream output as it runs. This may take 1-3 minutes depending on the agent.
After completion, look for in the output:
[DOR] Posted DoR comment — DoR ran and posted[DOD] Posted DoD comment — DoD ran and posted[DOD-FIX] Applied fixes — DoD Fix ran and applied auto-fixes[PR-Review] Posted review — PR Review ran[PR-Answer] Posted reply — PR Answer ran[BUGFIX] Applied fix — BugFix ran[QA] Created Bug tickets — QA ran[DEVAGENT] Pipeline complete — DevAgent ran[DOCAGENT] Pipeline complete — DOCAgent ran--dryRun: true in logs — confirms dry run mode (nothing actually posted)[ALERT:CRITICAL] lines — investigate before going livestatus: skipped (dedupe/rate-limit) — expected on re-runs## Local Test Results
**Agent:** <agent>
**Target:** <id> (<work item title or PR title>)
**Mode:** Dry run / Live run
**Status:** ✓ Completed / ✗ Failed
<Key output lines>
<If dry run and succeeded:>
✓ Agent ran successfully in dry-run mode. Ready to go live.
Run `/auto-test <agent> <id> --live` to post real results.
<If failed:>
⚠️ Check the error above. Common issues:
- ADO PAT expired → rotate in AWS Lambda env vars (`/auto-lambda-env`)
- LLM API key invalid → check pipeline variables
- Network connectivity → check AWS Lambda VPC config
[ALERT:CRITICAL] errors/auto-test pr-review 12345 --dryRun — Runs the PR Review agent against PR #12345 in dry-run mode. Fetches the PR from ADO, runs the review logic locally, and prints the review output without posting any comments. Reports success — agent is ready for live use.
/auto-test dor 2416553 — Runs the DoR (Definition of Ready) agent against work item #2416553 in dry-run mode (default). Checks story completeness, acceptance criteria quality, and technical feasibility. Prints the assessment without updating the work item.
/auto-test pr-review 12345 --live — After confirming with user, runs the PR Review agent in live mode. Posts actual review comments to the PR in ADO. Use only after a successful dry-run.
"ADO PAT expired" error during test
Cause: The ADO Personal Access Token used by the Lambda has expired.
Fix: Rotate the PAT in ADO, then update it with /auto-lambda-env. For local dry-run testing, ensure the PAT is set in the pipeline variables or environment.
"LLM API key invalid" error
Cause: The Anthropic API key is missing or expired.
Fix: Check the pipeline variables for the LLM API key. Update with /auto-lambda-env if running against Lambda, or check local environment variables for dry-run mode.
Test passes in dry-run but fails in live mode Cause: Live mode makes additional ADO API calls (posting comments, updating work items) that may require different permissions than read-only dry-run. Fix: Ensure the ADO PAT has write permissions for work items and PR comments. Check the error message for the specific API call that failed.
What SKILL.md sets; muted values are Claude Code's defaults
Use to dry-run an AI automation agent against real ADO data before going live, when the user says 'test automation', 'dry run agent', 'verify end-to-end', or 'preview what the agent would do'.
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub easingthemes/dx-aem-flow --plugin dx-automation10 skills in this plugin
/auto-alarmsCreate CloudWatch alarms and SNS subscription for AI automation monitoring. Creates 4 alarms (DLQ depth, WI-Router errors, PR-Router errors, throttles) and subscribes an email address to alerts. Reads config from .ai/automation/infra.json./auto-deployDeploy Lambda code for AI automation agents (wi-router and/or pr-router). Packages agent steps + shared libs into a zip and uploads to AWS Lambda. Safe to re-run after code changes. Reads function names from .ai/automation/infra.json./auto-doctorHealth check of the AI automation setup — local files, ADO pipeline configuration, Lambda state. Use when automation seems broken, for 'check automation'./auto-initScaffold AI automation for a project — sets up .ai/automation/ and infra.json; each project owns its pipelines (and optional AWS infra). Run once after /dx-init./auto-lambda-envSet environment variables on AI automation Lambda functions. Interactively collects secrets and operational values, then applies them via AWS CLI. Reads function names and pre-filled values from .ai/automation/infra.json./auto-pipelinesImport 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/automation/infra.json.