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 darellchua2/opencode-config-template --skill aws-iac-safety-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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/darellchua2/opencode-config-template/aws-iac-safety-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/aws-iac-safety-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/aws-iac-safety-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.
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/aws-iac-safety-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/aws-iac-safety-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00043 | $0.01393 |
| Opus 5.5 | $0.00017 | $0.00557 |
| Sonnet 5.5 | $0.00009 | $0.00279 |
| Haiku 4.5 | $0.00004 | $0.00139 |
Grade A, and why
aws-iac-safety-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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What I do
I provide safety patterns for AWS Infrastructure-as-Code (Terraform/OpenTofu) and GitHub Actions CI/CD, extracted from production incidents. Each pattern caused a real outage or security issue.
When to use me
Use this skill when:
- Writing or reviewing Terraform/OpenTofu modules managing GitHub or AWS resources
- Setting up multi-environment CI/CD with SSM parameters
- Managing ECR repositories across multiple modules
- Deploying the same Docker image to both EC2 and Lambda
- Auditing IaC for cross-module ownership violations
Related Skills
- opentofu-aws-explorer-skill: AWS resource discovery (Lambda Function URL CNAME pattern).
- opentofu-ecr-provision-skill: ECR provisioning (lowercase-safe naming pattern).
- security-audit-skill: Security auditing (Lambda public-without-auth, local Terraform state patterns).
- docker-containerization-skill: Docker patterns (no-rollback-on-deploy pattern).
A. GitHub Resource Management
A1. Repo-Level GitHub Resources Without Count Gating
GitHub repo-level variables/secrets are singular — one per name, shared across environments. Without count gating, non-dev environments attempt to create resources that already exist, triggering HTTP 422 conflicts.
# BAD — creates in ALL environments, 422 on non-dev
resource "github_actions_variable" "registry_token" {
repository = var.repo_name
variable_name = "REGISTRY_TOKEN"
variable_value = var.registry_token
}
# GOOD — only dev creates repo-level resources
resource "github_actions_variable" "registry_token" {
count = var.environment == "dev" ? 1 : 0
repository = var.repo_name
variable_name = "REGISTRY_TOKEN"
variable_value = var.registry_token
}
Gotcha: The CI cleanup-resources mechanism uses tofu state rm (not import). After state rm, OpenTofu sees no state for the resource and attempts CREATE on the next plan — triggering the 422 again. The fix is count-gating, not state manipulation.
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.
- 3mo ago First seen · 154 lines · 43 tokens per session scan A f32af33ca9d0
aws-iac-safety-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,393 once invoked, about $0.0002 per session on Opus 5.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.
aws-iac-safety-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aws-iac-safety-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 43 | Claude Code, Codex |
| mirrord-prev-envmetalbear-co/mirrord | Skill | 5.4k | today | MIT | A | 122 | Claude Code |
| mirrord-chaosmetalbear-co/mirrord | Skill | 5.4k | today | MIT | A | 119 | Claude Code |
| atmos-hookscloudposse/atmos | Skill | 1.4k | today | Apache-2.0 | A | 50 | Claude Code |
| atmos-modernizationcloudposse/atmos | Skill | 1.4k | today | Apache-2.0 | A | 36 | Claude Code |
| cost-regression-checkaws/agent-toolkit-for-aws | Skill | 3.8k | today | Apache-2.0 | A | 195 | Claude Code |
| atmos-procloudposse/atmos | Skill | 1.4k | today | Apache-2.0 | A | 38 | Claude Code |