discover-infra

discover-infra is a skill for Claude Code, Codex from rand/cc-polymath. It costs 43 tokens per session (807 once invoked), scanned A, original, MIT.

A cloud and infrastructure topic guide that automatically brings in relevant skills for deploying and operating software.

In plain words
What is it for?
It helps with AWS, Google Cloud, Azure, serverless functions, Docker, Kubernetes, Terraform, infrastructure as code, CI/CD, deployment platforms, and cloud security.
Why use it?
It reduces the need to find separate guidance for cloud services, containers, deployment, security, or infrastructure configuration.

Skill for Claude CodeCodex

Part of the cc-polymath plugin — 26 skills, 1 command, 4 agents shipped together

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.

agentmods
npx agentmods add skills/rand/cc-polymath/discover-infra
Any agent
npx skills add rand/cc-polymath --skill discover-infra
Clone the repo
git clone --depth 1 https://github.com/rand/cc-polymath

Made for: Claude Code, Codex.

Or install cc-polymath, the plugin that ships this one along with the rest of its 26 skills, 1 command, 4 agents.

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 discover-infra

README.md
[![agentmods](https://agentmods.dev/badge/skills/rand/cc-polymath/discover-infra.svg)](https://agentmods.dev/skills/rand/cc-polymath/discover-infra)
Your own site
<a href="https://agentmods.dev/skills/rand/cc-polymath/discover-infra"><img src="https://agentmods.dev/badge/skills/rand/cc-polymath/discover-infra.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.00807
Opus 5 $0.00022 $0.00404
Sonnet 5 $0.00009 $0.00161
Haiku 4.5 $0.00004 $0.00081

Measured 4d ago against content hash 4f2954e3db3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

discover-infra 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 4d 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/discover-infra/SKILL.md · 75 lines

How it starts

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

Infrastructure & Cloud Skills Discovery

When This Skill Activates

  • Cloud platforms (AWS, GCP, Azure)
  • Serverless functions (Lambda, Cloud Functions, Modal)
  • Infrastructure as Code (Terraform, IaC)
  • Docker, containers, Kubernetes
  • Container security, networking, registries
  • Cloudflare Workers, edge computing
  • Deployment platforms (Netlify, Heroku)
  • Cost optimization, infrastructure security
  • CI/CD deployment strategies, rollbacks

Available Skills (30 total)

Cloud (13 skills)

  1. aws-lambda-functions - Lambda development, triggers, optimization
  2. aws-api-gateway - REST/HTTP/WebSocket APIs, authorization
  3. aws-databases - RDS, DynamoDB, ElastiCache, Aurora
  4. aws-iam-security - IAM, Cognito, Secrets Manager, KMS
  5. aws-storage - S3, EBS, EFS, Glacier, lifecycle policies
  6. aws-ec2-compute - EC2, Auto Scaling, Load Balancing
  7. aws-networking - VPC, security groups, Route53, CloudFront
  8. gcp-serverless - Cloud Functions, Cloud Run, App Engine
  9. gcp-compute - Compute Engine, GKE, autoscaling
  10. gcp-databases - Cloud SQL, Firestore, Bigtable, Spanner
  11. gcp-storage - Cloud Storage, Persistent Disk, Filestore
  12. gcp-iam-security - IAM, service accounts, Secret Manager
  13. gcp-networking - VPC, firewall, Cloud DNS, Cloud CDN

Infrastructure (6 skills)

  1. terraform-patterns - Modules, state, workspaces, best practices
  2. kubernetes-basics - Pods, deployments, services, configuration
  3. cloudflare-workers - Edge functions, KV storage, Durable Objects
  4. infrastructure-security - Network security, secrets, hardening
  5. cost-optimization - Cloud cost reduction strategies
  6. aws-serverless - Serverless architecture patterns

Deployment (6 skills)

  1. heroku-deployment - Deployment, dynos, buildpacks
  2. heroku-addons - Databases, caching, monitoring addons
  3. heroku-troubleshooting - Common issues and debugging
  4. netlify-deployment - Build, deploy, previews, CDN
  5. netlify-functions - Serverless functions on Netlify
  6. netlify-optimization - Performance, caching, edge

Read the full file on GitHub · 75 lines

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. 4d ago First seen · 75 lines · 43 tokens per session scan A 4f2954e3db3b

Subscribe to this mod's changes

discover-infra is a skill published in the GitHub repository rand/cc-polymath (140 stars, last pushed 6mo ago), licensed MIT. It adds 43 tokens to every session and 807 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

wrangler

Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over…

cloudflare/skills · 75 tokens

aws-cloudformation-ecs

Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS…

giuseppe-trisciuoglio/developer-kit · 101 tokens

pentest-cloud-infrastructure

Cloud security posture management and container security assessment for AWS, Azure, GCP, and Kubernetes.

jd-opensource/JoySafeter · 25 tokens

kubernetes-operations

Covers running workloads through Kubernetes's control loop — requests/limits, liveness/readiness/startup probes, reading describe/events to debug CrashLoopBackOff, OOMKilled, Pending, or empty endpoints, safe rollouts and undo, and guardrails like PodDisruptionBudgets. Use this whenever the user is debugging a pod…

arjunprabhulal/devops-skills · 113 tokens

aws-ecs-docs

Use when users ask how to create, configure, deploy, scale, network, secure, or troubleshoot Amazon ECS clusters, task definitions, services, and tasks, including Fargate, EC2 launch types, ECS Managed Instances, Service Connect, auto scaling, IAM roles, ECR integration, ECS Anywhere, or capacity providers, especially…

cookieMonsterDev/agents-skills · 90 tokens

helm-docs

Use when users ask how to install, search, deploy, upgrade, rollback, uninstall, template, lint, package, or troubleshoot Helm charts and releases on Kubernetes, including chart development, values, repositories, hooks, plugins, OCI registries, Helm 4 changes, or the Helm Go SDK, especially when they need official…

cookieMonsterDev/agents-skills · 81 tokens