Aws Cost Operations

AWS-Kostenanalyse und CloudWatch-Alarmmuster; MCP-Server benötigen Plugin-Installation + Anmeldeinformationen

von zxkane · zxkane/aws-skills

Funktioniert mit Setup ★ 7.2/10

Aws Cost Operations — AWS-Kostenanalyse und CloudWatch-Alarmmuster; MCP-Server benötigen Plugin-Installation + Anmeldeinformationen

Was es kann

Leitet AWS-Kostenanalyse, CloudWatch-Monitoring und operative Audits an und liefert zwei Referenzdateien mit konkreten CDK-Alarm-Snippets und dienstspezifischen Schwellenwertrichtlinien für Lambda, API Gateway, SQS, DynamoDB, RDS, ECS und ALB. Wird bei Fragen zu AWS-Rechnungen, Ausgaben, Budgets, Preisschätzungen, CloudWatch-Alarmen, Log-Abfragen oder CloudTrail-Audits ausgelöst. Die Kostenanalyse- und Audit-Workflows rufen MCP-Server (pricing, billing, CloudWatch) und die AWS CLI auf, daher benötigen sie die Plugin-Installation plus AWS-Anmeldeinformationen; die Alarmreferenz funktioniert offline.

Testbericht

Das Repo geklont, den Installationsblock unter einem temporären HOME ausgeführt (SKILL.md landete unter ~/.claude/skills/aws-cost-operations/SKILL.md), das Frontmatter mit PyYAML geparst (name + 441-Zeichen-description + context/skills/allowed-tools/hooks-Schlüssel) und bestätigt, dass beide referenzierten Dateien plus die aws-mcp-setup-Abhängigkeit HTTP 200 zurückgaben; grep fand keine curl|sh, base64-Blobs, Anmeldeinformationslesungen oder Injektionstexte. Auslöser-Formulierungen beurteilt: "our AWS bill jumped 40% this month, find what's driving it" (laden), "set up CloudWatch alarms for our new Lambda + SQS pipeline in CDK" (laden), "estimate the monthly cost of this Fargate service in eu-west-1 before we deploy" (laden), "write a CDK construct for a VPC with private subnets and a NAT gateway" (nicht laden – Infra-Authoring, gehört zu aws-cdk-development), "our Stripe subscription costs are climbing, review our SaaS spend" (nicht laden – nicht AWS); 5/5 korrekt. Ausgabe-Test: zwei Artefakte geschrieben (BASELINE.md, SKILL_RUN.md) für dieselbe Aufgabe – Alarme für API Gateway → Lambda → SQS+DLQ → Worker Lambda → DynamoDB. Die Baseline erzeugte 8 einfache Alarme auf einem SNS-Thema mit fest codierten Schwellenwerten (`metricLatency({statistic:'Average'})`, Schwellenwert 3000; Dauer-Schwellenwert 10000ms); die Fähigkeit erzeugte ~13 Alarme mit `metricLatency({statistic:'p99'})` bei 2000ms, `fn.timeout.toMilliseconds() * 0.8` für die Dauer, einen ConcurrentExecutions-at-80%-of-reserved-Alarm und einen SQS ApproximateAgeOfOldestMessage-Alarm, den die Baseline vollständig übersehen hatte, `<service>-<metric>-<severity>`-Alarmnamen, getrennte kritische/Warnungs-SNS-Themen, treatMissingData, Runbook-Links in Beschreibungen und einen CompositeAlarm. Zwei echte Mängel: Das DynamoDB-"throttle"-Snippet in references/cloudwatch-alarms.md verwendet `table.metricUserErrors({ dimensions: { Operation: 'GetItem' } })` – UserErrors ist kein Throttling und `dimensions` ist keine gültige CDK-Eigenschaft (`dimensionsMap` ist es), daher ist die wörtliche Verwendung falsch, wo meine Baseline `metricThrottledRequests` richtig war; und die Referenz hat kein DLQ-Muster, sodass strikte Einhaltung den von der Baseline enthaltenen DLQ-not-empty-Alarm fallen lässt. Überhaupt nicht getestet: pricing/costexp/cw MCP-Tools und jeder `aws ce|cloudwatch|logs|budgets|cloudtrail`-Befehl (keine Server, keine Anmeldeinformationen), was die Schlagzeilenhälfte der Fähigkeit ist – daher "setup". Dokumentations-Fehler: SKILL.md sagt, die gebündelten Server seien pricing/costexp/cw und dass Billing "not bundled" sei, README sagt Pricing/Cost Explorer/CloudWatch, aber marketplace.json konfiguriert tatsächlich pricing/billing/cw – sodass `allowed-tools: mcp__costexp__*` nichts Installiertes findet, während das installierte `mcp__billing__*` in allowed-tools fehlt.

Getestet am: 2026-07-31 · Claude Code 2.x (agent harness)

Installation

git clone --depth 1 https://github.com/zxkane/aws-skills.git /tmp/aws-cost-operations-src
mkdir -p ~/.claude/skills
cp -R /tmp/aws-cost-operations-src/plugins/aws-cost-ops/skills/aws-cost-operations ~/.claude/skills/aws-cost-operations
# The copy above gives you SKILL.md + references/ (cloudwatch-alarms.md, operations-patterns.md) only.
# The 3 MCP servers the skill body relies on (pricing, billing, cw) are declared in the repo's
# marketplace.json, NOT in the skill dir. To get them, use the plugin route instead:
#   /plugin marketplace add zxkane/aws-skills
#   /plugin install aws-cost-ops@aws-skills
# Requires: uvx (from uv) on PATH, and AWS credentials with ce:*, cloudwatch:*, logs:*,
# budgets:*, cloudtrail:* read access. SKILL.md also declares a companion skill dependency:
#   cp -R /tmp/aws-cost-operations-src/plugins/aws-common/skills/aws-mcp-setup ~/.claude/skills/aws-mcp-setup
# A PreToolUse hook in the frontmatter runs `aws sts get-caller-identity` before any `aws ce` call.

Befehle & Beispiel-Prompts

  • /aws-cost-operationsAWS-Kostenanalyse und CloudWatch-Alarmmuster; MCP-Server benötigen Plugin-Installation + Anmeldeinformationen

Skills reagieren auf normale Anfragen — keine Slash-Befehle nötig. Nach der Installation aktivieren Prompts wie diese den Skill (auf Englisch):

  • Analyze last month's AWS bill for savings
  • Set up a CloudWatch alarm for high spend
  • Audit CloudTrail logs for suspicious activity