/dx-automation:auto-statusfrom dx-automation
Displays an operational dashboard for AI automation agents: DLQ depth, monthly token budget, and daily rate limit usage. Read-only AWS queries.
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.
Known broken (TODO #251): the
node eval/*.jsscripts below were deleted in March 2026. Tell the user so, and for the DLQ runaws sqs get-queue-attributes --queue-url "$(jq -r .storage.sqs.dlq.queueUrl .ai/automation/infra.json)" --attribute-names ApproximateNumberOfMessagesinstead. Token and rate-limit numbers are unavailable until #251 lands.
You display an operational dashboard showing current DLQ depth, token budget utilization, and rate limit usage. All commands are read-only — no mutations.
Read .ai/automation/infra.json to get automationProfile, region, and table names.
Profile check: If automationProfile is consumer (or legacy pr-only/pr-delegation):
This repo uses the <profile> profile — DLQ, token budget, and rate limits are managed by the hub project.
Run /auto-status from the hub repo instead.
STOP.
Check AWS credentials are available:
aws sts get-caller-identity --query Account --output text 2>/dev/null || echo "NO_CREDENTIALS"
If no credentials: "AWS credentials not configured. Run aws configure or set AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY." STOP.
cd .ai/automation
node eval/process-dlq.js --depth
If DLQ depth > 0:
# Show message summaries (not full content)
node eval/process-dlq.js --list
cd .ai/automation
node eval/cost-report.js
cd .ai/automation
node eval/rate-limit-report.js
Present results as a combined dashboard:
## Automation Status
**DLQ:** <N> messages <(✓ empty | ⚠️ N messages pending)>
**Token budget:** <utilization>% of monthly cap (<tokens>/<cap>) — mode: <normal|suggest-only|halted>
**Rate limits today:** DoR <N>/20, PR Review <N>/50, PR Answer <N>/30
<If any DLQ messages:>
### DLQ Messages
<list of message summaries: timestamp, error type, function name>
Investigate: `cd .ai/automation && node eval/process-dlq.js`
<If budget > 80%:>
⚠️ Token budget at <N>% — approaching limit. Consider increasing `MONTHLY_TOKEN_CAP` pipeline variable.
<If budget halted:>
🚨 Token budget exhausted — all LLM calls blocked until next month.
/auto-status — Queries AWS for DLQ depth (0 messages), monthly token usage (45% of budget), and daily rate limit usage (120/500 calls). Reports all metrics as healthy with green indicators.
/auto-status (DLQ has messages) — Reports DLQ depth of 3 messages with metadata (timestamps, error types, function names). Does not print message contents for security. Suggests running node eval/process-dlq.js to investigate.
/auto-status (budget warning) — Reports token budget at 85% with 6 days remaining in the month. Warns: "Approaching limit — consider increasing MONTHLY_TOKEN_CAP pipeline variable." DLQ and rate limits are healthy.
"Access denied" when querying AWS Cause: AWS credentials are not configured or lack read permissions for SQS, CloudWatch, or DynamoDB. Fix: Configure AWS credentials and ensure the IAM user has read permissions for the automation resources. This skill is read-only — it never modifies anything.
Token budget shows 0% but agents are running
Cause: The rate limit table in DynamoDB may not be tracking usage correctly, or the MONTHLY_TOKEN_CAP value is not set.
Fix: Check the DYNAMODB_RATE_LIMIT_TABLE entries directly in DynamoDB. Verify that MONTHLY_TOKEN_CAP is set as a pipeline variable.
DLQ depth keeps growing
Cause: An agent is consistently failing (expired PAT, invalid API key, unhandled error in agent step).
Fix: Process DLQ messages to identify the pattern. Common causes: expired ADO PAT (run /auto-lambda-env to update), LLM API key rotation needed, or a bug in agent step code (fix and run /auto-deploy).
What SKILL.md sets; muted values are Claude Code's defaults
Use to see the operational dashboard for AI automation agents — DLQ depth, token budget, rate limit usage. Trigger on 'automation status', 'check automation health', 'how is the automation doing', 'token usage'.
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.