aws-waf-cost-optimization-skill

aws-waf-cost-optimization-skill is a skill for Claude Code from odere-pro/claude-aws-architect. It costs 70 tokens per session (2,201 once invoked), scanned A, original, MIT.

A checklist for reducing and accounting for recurring costs in Amazon Web Services, including compute, storage, networking, and pricing commitments.

In plain words
What is it for?
Use it when choosing AWS services, instance sizes, storage classes, regions, scaling policies, Reserved Instances, Savings Plans, or Spot pricing, and when setting budgets or cost tags.
Why use it?
It makes cloud cost trade-offs part of design decisions, helping avoid oversized, idle, poorly priced, or unnecessarily data-intensive resources.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-aws-architect plugin — 15 skills, 4 commands, 5 agents, 6 MCP servers shipped together

Good fit Use it when choosing AWS services, instance sizes, storage classes, regions, scaling policies, Reserved Instances, Savings Plans, or Spot pricing, and when setting budgets or cost tags.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/odere-pro/claude-aws-architect/aws-waf-cost-optimization-skill
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 odere-pro/claude-aws-architect --skill aws-waf-cost-optimization-skill
Clone the repo
git clone --depth 1 https://github.com/odere-pro/claude-aws-architect

Made for: Claude Code.

Or install claude-aws-architect, the plugin that ships this one along with the rest of its 15 skills, 4 commands, 5 agents, 6 MCP servers.

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 aws-waf-cost-optimization-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/odere-pro/claude-aws-architect/aws-waf-cost-optimization-skill/github.svg)](https://agentmods.dev/skills/odere-pro/claude-aws-architect/aws-waf-cost-optimization-skill)
Your own site
<a href="https://agentmods.dev/skills/odere-pro/claude-aws-architect/aws-waf-cost-optimization-skill"><img src="https://agentmods.dev/badge/skills/odere-pro/claude-aws-architect/aws-waf-cost-optimization-skill/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 aws-waf-cost-optimization-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/odere-pro/claude-aws-architect/aws-waf-cost-optimization-skill"><img src="https://agentmods.dev/badge/skills/odere-pro/claude-aws-architect/aws-waf-cost-optimization-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00070 $0.02201
Opus 5 $0.00035 $0.01100
Sonnet 5 $0.00014 $0.00440
Haiku 4.5 $0.00007 $0.00220

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

Security

Grade A, and why

aws-waf-cost-optimization-skill 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.

skills/aws-waf-cost-optimization-skill/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use

Apply this skill any time an agent makes a decision that has a recurring AWS bill attached: instance family choice, storage class, scaling policy, region pairing, networking topology, or commitment-based pricing. Cost is a first-class design pillar, not a post-hoc audit.

Trigger conditions:

  • The orchestrator's solution-architect specialist is producing design.md and must record explicit cost trade-offs alongside the other pillars.
  • A component contract under .claude/specs/<feature>/contracts/<name>.md declares a long-running resource (anything not strictly request-driven) — the contract must record the chosen pricing model and the rationale.
  • The user requests a cost estimate, a Reserved-Instance / Savings-Plans review, or a "lower the bill" pass on an existing design.
  • The implementation specialist is selecting between equivalent AWS services (e.g. SQS vs Kinesis, RDS vs Aurora, ALB vs NLB) and the cost differential is material.
  • The discovery specialist is enumerating non-functional requirements and a cost ceiling, budget threshold, or unit-economics target is in scope.
  • The sustainability skill is recommending Graviton or scale-to-zero — verify the cost outcome is consistent with the user's commitment posture before agreeing.

Do not apply this skill to pricing decisions for non-AWS services, to one-shot operational expenses (e.g. a kms encrypt call inside a Lambda — covered by the per-invocation budget), or to per-request micro-optimisations that the workload's traffic pattern does not justify.

Procedure

  1. Get authoritative pricing. Issue a cost MCP call (the aws-pricing server) for every priced resource. Cite the result via the aws-spec-grounding skill's <server>:<short-key> format. Stale or pretrained pricing is forbidden — pricing changes quarterly and inference is a costly source of error.
  2. Pick the pricing model. Consult references/pricing-models.md. Default decision tree:
    • Steady-state, ≥12-month commitment tolerable → Compute Savings Plans (most flexible across instance family, region, OS). Record the commitment term and coverage target in the contract.
    • Steady-state, instance family stable for 1–3 years → Reserved Instances (Standard for max discount, Convertible for flexibility).
    • Fault-tolerant, interruption-tolerable → Spot, with Spot-Fleet diversification and a documented retry policy.
    • Bursty, sub-second wake → Lambda or Fargate (per-invocation pricing).
    • Default / not yet predictable → On-Demand, with an explicit "revisit at when usage data exists" item in tasks.
  3. Right-size before committing. Use Compute Optimizer recommendations (via the cw MCP) on existing workloads, or measured peak from load tests on new ones. The contract records the actual percentile used (e.g. "p99 over 14 days") and the chosen instance size. Coordinate with the sustainability skill — Graviton + right-sizing is the same lever for both pillars.
  4. Tier storage by access pattern. S3 lifecycle: Standard → Standard-IA after 30d → Glacier Instant Retrieval after 90d → Glacier Deep Archive after 180d, unless retrieval-time SLOs forbid. EBS gp3 over gp2 (separate IOPS/throughput billing eliminates over-provisioning waste). Apply CloudWatch Logs retention; never leave the default of "never expire". Each lifecycle policy is recorded in the contract's cost: block.
  5. Cap data-egress costs. Data leaving an AWS region or AWS as a whole is the largest hidden line item in many bills. Use VPC endpoints (Gateway endpoints for S3/DynamoDB are free; Interface endpoints have an hourly charge that almost always pays for itself versus NAT-Gateway egress). Co-locate data and compute in the same AZ where the workload's availability profile permits. Cache at the edge (CloudFront) instead of repeatedly serving from origin. Each cross-region or internet-egress data path is enumerated in the cost: block with an estimated monthly volume.
  6. Tag for allocation. Every component contract declares tags: Project, Environment, Owner, CostCenter, plus any workload-specific tag the customer's tagging policy demands. Cost allocation tags must be enabled at the account / Organizations level — note this in the design summary if not already configured.
  7. Set budget alarms. Each design declares at least one AWS Budgets alarm threshold (typically 80% of the projected monthly run-rate as the warning, 100% as the action threshold). The action is documented (notify owner; do not auto-shut-down without an explicit user opt-in).
  8. Record cost projection in the contract. The cost: block emits: chosen pricing model, monthly run-rate range (rough order of magnitude is acceptable when pricing API is degraded — use the cost-rom-only marker), commitment term and coverage if applicable, cost-allocation tags, and any deviation from the default decision tree with rationale. The orchestrator's merge step aggregates these into a system-level projection in the design summary.

Read the full file on GitHub · 77 lines

Files

What ships with it

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

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. 12d ago First seen · 77 lines · 70 tokens per session scan A 7dbc316aaa9b

Subscribe to this mod's changes

aws-waf-cost-optimization-skill is a skill published in the GitHub repository odere-pro/claude-aws-architect (1 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 2,201 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

deployment

Hosting, deployment, CI/CD, and going live. Activated when Claude works with deployment configs, Dockerfiles, Vercel/Netlify configs, or deployment-related commands.

wewpellex21/code-sensei · 37 tokens

ec2

AWS EC2 virtual machine management — instances, security groups, key pairs, AMIs, EBS volumes, Auto Scaling Groups, Spot Instances, Session Manager, placement groups, and instance lifecycle automation. Trigger on ANY of these, even when EC2 isn't named explicitly: - Launching or provisioning: "spin up a server"…

itsmostafa/aws-agent-skills · 320 tokens

ecs

AWS ECS container orchestration for running Docker containers. Use when deploying containerized applications, configuring task definitions, setting up services, managing clusters, or troubleshooting container issues.

itsmostafa/aws-agent-skills · 35 tokens

cloudformation

AWS CloudFormation infrastructure as code for stack management. Use when writing templates, deploying stacks, managing drift, troubleshooting deployments, or organizing infrastructure with nested stacks.

itsmostafa/aws-agent-skills · 34 tokens

cloudwatch

AWS CloudWatch monitoring for logs, metrics, alarms, and dashboards. Use when setting up monitoring, creating alarms, querying logs with Insights, configuring metric filters, building dashboards, or troubleshooting application issues.

itsmostafa/aws-agent-skills · 43 tokens

eks

AWS EKS Kubernetes management for clusters, node groups, and workloads. Use when creating clusters, configuring IRSA, managing node groups, deploying applications, or integrating with AWS services.

itsmostafa/aws-agent-skills · 38 tokens