Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add aws/tools-for-devops-agent --skill devops-agent-cost-insightsgit clone --depth 1 https://github.com/aws/tools-for-devops-agentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aws/tools-for-devops-agent/devops-agent-cost-insights)<a href="https://agentmods.dev/skills/aws/tools-for-devops-agent/devops-agent-cost-insights"><img src="https://agentmods.dev/badge/skills/aws/tools-for-devops-agent/devops-agent-cost-insights/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aws/tools-for-devops-agent/devops-agent-cost-insights"><img src="https://agentmods.dev/badge/skills/aws/tools-for-devops-agent/devops-agent-cost-insights.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.10921 |
| Opus 5.5 | $0.00040 | $0.04368 |
| Sonnet 5.5 | $0.00020 | $0.02184 |
| Haiku 4.5 | $0.00010 | $0.01092 |
Grade A, and why
devops-agent-cost-insights scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 432 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Overview
This skill provides the methodology for gathering and calculating AWS DevOps Agent cost data. It intentionally does NOT prescribe a fixed output format. The consuming agent (chat, custom agent, etc.) decides its own presentation (plain text, multi-space tables, single-space visual dashboard with charts, etc.) based on its own prompt/output spec. Follow the steps below to gather and compute correct numbers; format them however the calling context requires.
Execution visibility
The consuming agent's output contract controls visibility. When it requires silent, final-only execution:
- Perform skill/reference reads, planning, tool calls, pagination, distillation, calculations, retries, and Step 7 validation without assistant-authored progress messages.
- Keep checklist state, intermediate values, query IDs, raw records, arithmetic, and rejected records internal.
- Do not announce file reads or tool calls, react to results, or narrate what happens next.
- Return only the consuming agent's single final response after its artifact operation. A compact validation result table is allowed only when its final template explicitly requires one.
This skill must add exactly $0.00 to the bill. Never
StartQuery,StartQueryExecution, orGetMetricData— and never any other operation the zero-cost rule names below. Each is a paid API, so issuing one bills the account this report is about. If a figure is only reachable through a paid call, it is unavailable; say so. This is the zero-cost rule, restated at Step 1 and attested in Step 7."Read-only" is not the safety test.
GetMetricDatareads only your own metrics and is billed per metric anyway. Before using any call not already named in the steps below, classify it per Operation classification in Step 3; an operation you cannot confirm as free is unclassified, not free.
Four things to cover every time:
- Discovery: enumerate Agent Space(s) and DevOps Agent role(s) in scope (may be one space or all spaces in the account, depending on what's requested)
- Direct usage: agent-seconds billed (investigations, evaluations, chat), per space
- Downstream: AWS API costs from agent-initiated calls (Logs Insights, Athena, X-Ray, CloudWatch), attributed via CloudTrail, traceable by query ID / query execution ID
- Grouping: if multiple spaces/roles are in scope, group cost by Agent Space ID and by DevOps Agent Role ARN; if scoped to a single space/role, a single summary suffices
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- CHANGELOG.md 1.8 KB
- evals/best-practices/v1/benchmark.json 5.9 KB
- evals/best-practices/v1/iteration-1/best-practices-tests-results.json 11 KB
- evals/best-practices/v1/iteration-2/best-practices-tests-results.json 9.2 KB
- evals/best-practices/v1/iteration-3/best-practices-tests-results.json 9.3 KB
- evals/evals.json 8.4 KB
- evals/functional/v2/benchmark.json 160 KB
- evals/functional/v2/evals.json 8.4 KB
- evals/functional/v2/iteration-1/athena-price-only-exact-role-joined-execution/with_skill/functional-tests-results.json 4.8 KB
- evals/functional/v2/iteration-1/athena-price-only-exact-role-joined-execution/with_skill/outputs/journal_records.json 36 KB
- evals/functional/v2/iteration-1/athena-price-only-exact-role-joined-execution/without_skill/functional-tests-results.json 4.9 KB
- evals/functional/v2/iteration-1/athena-price-only-exact-role-joined-execution/without_skill/outputs/journal_records.json 6.0 KB
- evals/functional/v2/iteration-1/cost-report-never-starts-a-query/with_skill/functional-tests-results.json 3.9 KB
- evals/functional/v2/iteration-1/cost-report-never-starts-a-query/with_skill/outputs/journal_records.json 20 KB
- evals/functional/v2/iteration-1/cost-report-never-starts-a-query/without_skill/functional-tests-results.json 4.7 KB
- evals/functional/v2/iteration-1/cost-report-never-starts-a-query/without_skill/outputs/journal_records.json 5.0 KB
- evals/functional/v2/iteration-1/direct-usage-four-metrics-from-supplied-data/with_skill/functional-tests-results.json 5.0 KB
- evals/functional/v2/iteration-1/direct-usage-four-metrics-from-supplied-data/with_skill/outputs/journal_records.json 15 KB
- evals/functional/v2/iteration-1/direct-usage-four-metrics-from-supplied-data/without_skill/functional-tests-results.json 5.1 KB
- evals/functional/v2/iteration-1/direct-usage-four-metrics-from-supplied-data/without_skill/outputs/journal_records.json 26 KB
- evals/functional/v2/iteration-1/logs-pagination-before-exact-attribution/with_skill/functional-tests-results.json 4.9 KB
- evals/functional/v2/iteration-1/logs-pagination-before-exact-attribution/with_skill/outputs/journal_records.json 24 KB
- evals/functional/v2/iteration-1/logs-pagination-before-exact-attribution/without_skill/functional-tests-results.json 4.6 KB
- evals/functional/v2/iteration-1/logs-pagination-before-exact-attribution/without_skill/outputs/journal_records.json 5.2 KB
- evals/functional/v2/iteration-1/partial-window-space-credit-is-not-allocated/with_skill/functional-tests-results.json 4.5 KB
- evals/functional/v2/iteration-1/partial-window-space-credit-is-not-allocated/with_skill/outputs/journal_records.json 22 KB
- evals/functional/v2/iteration-1/partial-window-space-credit-is-not-allocated/without_skill/functional-tests-results.json 4.7 KB
- evals/functional/v2/iteration-1/partial-window-space-credit-is-not-allocated/without_skill/outputs/journal_records.json 5.2 KB
- evals/functional/v2/iteration-1/per-investigation-direct-cost-is-not-inferred/with_skill/functional-tests-results.json 5.1 KB
- evals/functional/v2/iteration-1/per-investigation-direct-cost-is-not-inferred/with_skill/outputs/journal_records.json 6.2 KB
- evals/functional/v2/iteration-1/per-investigation-direct-cost-is-not-inferred/without_skill/functional-tests-results.json 5.2 KB
- evals/functional/v2/iteration-1/per-investigation-direct-cost-is-not-inferred/without_skill/outputs/journal_records.json 5.7 KB
- evals/functional/v2/iteration-2/athena-price-only-exact-role-joined-execution/with_skill/functional-tests-results.json 5.2 KB
- evals/functional/v2/iteration-2/athena-price-only-exact-role-joined-execution/with_skill/outputs/journal_records.json 6.6 KB
- evals/functional/v2/iteration-2/athena-price-only-exact-role-joined-execution/without_skill/functional-tests-results.json 5.1 KB
- evals/functional/v2/iteration-2/athena-price-only-exact-role-joined-execution/without_skill/outputs/journal_records.json 5.7 KB
- evals/functional/v2/iteration-2/cost-report-never-starts-a-query/with_skill/functional-tests-results.json 4.4 KB
- evals/functional/v2/iteration-2/cost-report-never-starts-a-query/with_skill/outputs/journal_records.json 5.8 KB
- evals/functional/v2/iteration-2/cost-report-never-starts-a-query/without_skill/functional-tests-results.json 1.8 KB
- evals/functional/v2/iteration-2/cost-report-never-starts-a-query/without_skill/outputs/journal_records.json 7.2 KB
- evals/functional/v2/iteration-2/direct-usage-four-metrics-from-supplied-data/with_skill/functional-tests-results.json 4.8 KB
- evals/functional/v2/iteration-2/direct-usage-four-metrics-from-supplied-data/with_skill/outputs/journal_records.json 30 KB
- evals/functional/v2/iteration-2/direct-usage-four-metrics-from-supplied-data/without_skill/functional-tests-results.json 4.3 KB
- evals/functional/v2/iteration-2/direct-usage-four-metrics-from-supplied-data/without_skill/outputs/journal_records.json 15 KB
- evals/functional/v2/iteration-2/logs-pagination-before-exact-attribution/with_skill/functional-tests-results.json 4.4 KB
- evals/functional/v2/iteration-2/logs-pagination-before-exact-attribution/with_skill/outputs/journal_records.json 25 KB
- evals/functional/v2/iteration-2/logs-pagination-before-exact-attribution/without_skill/functional-tests-results.json 4.7 KB
- evals/functional/v2/iteration-2/logs-pagination-before-exact-attribution/without_skill/outputs/journal_records.json 6.2 KB
- evals/functional/v2/iteration-2/partial-window-space-credit-is-not-allocated/with_skill/functional-tests-results.json 5.1 KB
- evals/functional/v2/iteration-2/partial-window-space-credit-is-not-allocated/with_skill/outputs/journal_records.json 25 KB
- evals/functional/v2/iteration-2/partial-window-space-credit-is-not-allocated/without_skill/functional-tests-results.json 4.4 KB
- evals/functional/v2/iteration-2/partial-window-space-credit-is-not-allocated/without_skill/outputs/journal_records.json 6.0 KB
- evals/functional/v2/iteration-2/per-investigation-direct-cost-is-not-inferred/with_skill/functional-tests-results.json 4.9 KB
- evals/functional/v2/iteration-2/per-investigation-direct-cost-is-not-inferred/with_skill/outputs/journal_records.json 6.1 KB
- evals/functional/v2/iteration-2/per-investigation-direct-cost-is-not-inferred/without_skill/functional-tests-results.json 5.3 KB
- evals/functional/v2/iteration-2/per-investigation-direct-cost-is-not-inferred/without_skill/outputs/journal_records.json 5.7 KB
- evals/functional/v2/iteration-3/athena-price-only-exact-role-joined-execution/with_skill/functional-tests-results.json 5.8 KB
- evals/functional/v2/iteration-3/athena-price-only-exact-role-joined-execution/with_skill/outputs/journal_records.json 7.3 KB
- evals/functional/v2/iteration-3/athena-price-only-exact-role-joined-execution/without_skill/functional-tests-results.json 5.4 KB
- evals/functional/v2/iteration-3/athena-price-only-exact-role-joined-execution/without_skill/outputs/journal_records.json 6.8 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago Changed f16c76b66d02
- 1mo ago Changed 54e10e5e07ac
- 1mo ago First seen · 432 lines · 99 tokens per session scan A 152f92717b7d
devops-agent-cost-insights is a skill published in the GitHub repository aws/tools-for-devops-agent (153 stars, last pushed yesterday), licensed Apache-2.0. It adds 99 tokens to every session and 10,921 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.
devops-agent-cost-insights compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| devops-agent-cost-insightsaws/tools-for-devops-agent | Skill | 153 | yesterday | Apache-2.0 | A | 99 | Claude Code, Codex |
| Cloud Billing AnalystCletrics/finops-agents | Skill | 49 | 7mo ago | MIT | A | 64 | Claude Code, Codex |
| Commitment Discount StrategistCletrics/finops-agents | Skill | 49 | 7mo ago | MIT | A | 55 | Claude Code, Codex |
| Budget & Anomaly OperatorCletrics/finops-agents | Skill | 49 | 7mo ago | MIT | A | 50 | Claude Code, Codex |
| AWS Cost Explorer AnalystCletrics/finops-agents | Skill | 49 | 7mo ago | MIT | A | 43 | Claude Code, Codex |
| Cost Anomaly DetectorCletrics/finops-agents | Skill | 49 | 7mo ago | MIT | A | 37 | Claude Code, Codex |
| Azure Cost Management NavigatorCletrics/finops-agents | Skill | 49 | 7mo ago | MIT | A | 40 | Claude Code, Codex |