auto-status
Show operational dashboard for AI automation agents — DLQ depth, monthly token budget, and daily rate limit usage. Hub profile only — requires AWS credentials. Read-only.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 7
- Forks
- 3
01 前言 Front Matter
- name
- auto-status
- description
- Show operational dashboard for AI automation agents — DLQ depth, monthly token budget, and daily rate limit usage. Hub profile only — requires AWS credentials. Read-only.
- when_to_use
- 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'.
- argument-hint
- disable-model-invocation
- true
03 SKILL.md 正文
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.
0. Prerequisites
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.
1. DLQ Depth
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
2. Token Budget
cd .ai/automation
node eval/cost-report.js
3. Rate Limits
cd .ai/automation
node eval/rate-limit-report.js
4. Summary Report
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.
Examples
-
/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 runningnode eval/process-dlq.jsto investigate. -
/auto-status(budget warning) — Reports token budget at 85% with 6 days remaining in the month. Warns: "Approaching limit — consider increasingMONTHLY_TOKEN_CAPpipeline variable." DLQ and rate limits are healthy.
Troubleshooting
-
"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_CAPvalue is not set. Fix: Check theDYNAMODB_RATE_LIMIT_TABLEentries directly in DynamoDB. Verify thatMONTHLY_TOKEN_CAPis 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-envto update), LLM API key rotation needed, or a bug in agent step code (fix and run/auto-deploy).
Rules
- Read-only — no AWS mutations
- Don't print DLQ message contents — may contain sensitive ADO data; print only metadata (timestamp, error type, function name)
04 同仓库更多 Skills
dx-hub-status
Show hub dispatch status — which repos are running, done, blocked or failed. Use for 'hub status', 'what's running'.
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".
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'.
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".
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'.
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.