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 AlexK020908/infra-designer --skill ec2-instancegit clone --depth 1 https://github.com/AlexK020908/infra-designerWrote 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/alexk020908/infra-designer/ec2-instance)<a href="https://agentmods.dev/skills/alexk020908/infra-designer/ec2-instance"><img src="https://agentmods.dev/badge/skills/alexk020908/infra-designer/ec2-instance.svg" alt="Measured on agentmods" 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.00000 | $0.00537 |
| Opus 5 | $0.00000 | $0.00269 |
| Sonnet 5 | $0.00000 | $0.00107 |
| Haiku 4.5 | $0.00000 | $0.00054 |
Grade B, and why
ec2-instance scanned grade B with 1 finding 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 7d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Changing the image template parameter replaces the instance with one running the new image (1–3 min downtime); day-to-day, the user or their coding agent can `aws ssm start-session`, then `sudo docker pull` + restart. How it starts
The opening of the file, as written. The whole thing — 23 lines — stays where its author put it; the contents beside it link to each section on GitHub.
aws.ec2.instance (single VM — advanced)
One virtual machine that boots Docker (user-data) and runs the app's container. Cheapest fixed-cost compute: a t3.small is ~$15/mo flat, no per-request pricing — undercuts managed compute for steady hobby/MVP traffic.
When to use (opt-in only)
- OPT-IN ONLY: propose it only when interactionMode is collaborative/expert AND the user signals they can operate a server (or asks for EC2 by name). Guided users get
aws.apprunner.serviceinstead. The user owns the box: patching, restarts, manual updates, downtime on instance loss.
App compute only
- APP COMPUTE ONLY. Never self-host stateful infrastructure on it — no Postgres, Kafka, Redis, or Mongo in the container. A single-instance database or broker loses data when the instance dies. Use the managed equivalents (
aws.rds.postgres,aws.sqs.queue/aws.sns.topic,aws.elasticache.redis) and say why.
Single point of failure (no HA)
- Single point of failure by design: no autoscaling, no failover. If the user needs HA or more than one instance, that is
aws.alb→aws.ecs.service— do NOT stack multiple EC2 nodes or put EC2 behind an ALB (the v1 compiler doesn't wire instance target groups; the lint will warn).
What the v1 compiler emits
- Security group open on HTTP:80 to the world with the container port mapped to 80; wired env vars written to
/etc/app.env; least-privilege IAM instance role for S3/SQS/DynamoDB/SNS/Lambda/Secrets edges; SSM Session Manager access (shell viaaws ssm start-session— no SSH keys, no port 22); an Elastic IP as the stable public address. - TLS is not emitted (HTTP:80 only). Cheapest production path: put
aws.cloudfront.distributionin front, or run a reverse proxy with a certificate — note it in agentNotes either way.
Updates
- Changing the image template parameter replaces the instance with one running the new image (1–3 min downtime); day-to-day, the user or their coding agent can
aws ssm start-session, thensudo docker pull+ restart. Spell the chosen update path out in agentNotes.
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.
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.
- 7d ago First seen · 23 lines · 0 tokens per session scan B b7113282ee76
ec2-instance is a skill published in the GitHub repository AlexK020908/infra-designer (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 537 tokens. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
azure-kubernetes-service
Expert knowledge for Azure Kubernetes Service (AKS) development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when running AI/GPU workloads, Fleet multi-cluster setups…
azure-defender-for-cloud
Expert knowledge for Azure Defender For Cloud development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when securing VMs, containers/AKS, SQL, storage, multi‑cloud connectors, or…
azure-aks-edge-essentials
Expert knowledge for Azure Kubernetes Service Edge Essentials development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when managing AKS Edge/Arc on Azure Local, SDN VNets…
azure-container-apps
Expert knowledge for Azure Container Apps development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using Dapr, KEDA scaling, Java microservices, GPUs, or CI/CD to Azure…
azure-container-instances
Expert knowledge for Azure Container Instances development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, and deployment. Use when configuring ACI standby pools, static IP networking, GPU containers, secure ACR pulls, or GitHub…
azure-redhat-openshift
Expert knowledge for Azure Red Hat OpenShift development including troubleshooting, best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when creating ARO clusters, configuring networking/storage, securing Entra auth & CMK, or integrating…