What problem does it solve?
Agentic workflows running through GitHub Actions can consume excessive AI tokens and credits, hit guardrails like max-ai-credits or max-turns, and incur unnecessary cost. This Skill diagnoses where tokens are spent and produces a prioritized optimization plan.
Core Features & Use Cases
- Run Auditing: Uses
gh aw audit and gh aw logs to inspect AI credits, input/output tokens, and cache-read tokens per run.
- Guardrail-Specific Diagnosis: Provides targeted entry points for max-ai-credits, max-daily-ai-credits, max-tool-denials, and timeout/max-turns failures.
- Optimization Planning: Applies quick wins such as DataOps pre-steps, prompt trimming, sub-agent delegation, prompt caching, and experiments with the
aic metric.
- Use Case: A scheduled triage workflow keeps exhausting its daily AI credit budget. Provide the run URL, and the Skill audits token usage, identifies the most expensive tool calls, and proposes batching and cheap-triage changes before recompiling the workflow.
Quick Start
Ask the agent to audit a GitHub Actions run URL and propose token optimizations for the workflow.