opentofu-ecr-provision-skill

opentofu-ecr-provision-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 31 tokens per session (4,530 once invoked), scanned A, original, Apache-2.0.

A guide for provisioning Amazon ECR, AWS’s private registry for container images, with OpenTofu or Terraform.

In plain words
What is it for?
Use it to create ECR repositories, configure GitHub Actions with OIDC authentication, and apply reusable AWS infrastructure patterns.
Why use it?
It reduces setup mistakes around image storage, GitHub Actions access, IAM roles, and infrastructure state.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Good fit Use it to create ECR repositories, configure GitHub Actions with OIDC authentication, and apply reusable AWS infrastructure patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/opentofu-ecr-provision-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 darellchua2/opencode-config-template --skill opentofu-ecr-provision-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: OpenCode.

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 opentofu-ecr-provision-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opentofu-ecr-provision-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/opentofu-ecr-provision-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/opentofu-ecr-provision-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opentofu-ecr-provision-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 opentofu-ecr-provision-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/opentofu-ecr-provision-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opentofu-ecr-provision-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,530 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00031 $0.04530
Opus 5 $0.00015 $0.02265
Sonnet 5 $0.00006 $0.00906
Haiku 4.5 $0.00003 $0.00453

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

Security

Grade A, and why

opentofu-ecr-provision-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 6d 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.

opencode_app/.opencode/skills/opentofu-ecr-provision-skill/SKILL.md · 721 lines

How it starts

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

OpenTofu ECR Provisioning

What I do

I guide you through provisioning AWS Elastic Container Registry (ECR) repositories following BETEKK infrastructure standards:

  • ECR Repository Creation: Create ECR repositories with proper configuration and lifecycle policies
  • GitHub OIDC Integration: Setup IAM roles for GitHub Actions to push/pull images
  • State Management: Configure S3 backend for Terraform state management
  • IAM Role Patterns: Implement standardized IAM roles with OIDC trust relationships
  • Variable Naming: Follow BETEKK naming conventions for consistency
  • Modular Structure: Use reusable modules for ECR and IAM resources
  • Best Practices: Apply AWS Well-Architected Framework principles

When to use me

Use this skill when you need to:

  • Provision a new ECR repository for Docker container images
  • Setup GitHub Actions CI/CD for ECR integration
  • Create standardized AWS infrastructure following BETEKK patterns
  • Implement OIDC authentication for GitHub Actions
  • Migrate existing ECR repositories to BETEKK standards
  • Create reusable ECR infrastructure templates

Reference Implementation: ecr/betekk_probe_engine_main/

Prerequisites

  • OpenTofu CLI installed: Install from https://opentofu.org/docs/intro/install/
  • AWS Account: Valid AWS account with appropriate permissions
  • AWS Credentials: Access keys or IAM role for authentication
  • GitHub OIDC Provider: OIDC provider configured for GitHub Actions (optional, can be created as part of workflow)
  • Basic OpenTofu/Terraform Knowledge: Understanding of HCL syntax and provider concepts

Provider Setup: Complete the opentofu-provider-setup skill first for AWS provider authentication and state backend configuration. This skill focuses on ECR-specific provisioning, not provider setup.

BETEKK Standards

Variable Naming Convention

Follow these naming patterns for consistency:

variable "environment" {
  description = "Environment type (e.g., dev, prod, uat)"
  type        = string
  default     = ""
}

variable "project_prefix" {
  description = "Project Prefix"
  type        = string
  default     = "betekk"
}

variable "repo_name" {
  description = "ECR Repository Name Prefix"
  type        = string
  default     = "betekk-<service-name>"
}

variable "aws_region" {
  description = "AWS region"
  type        = string
  default     = "ap-southeast-1"
}

variable "state_management_bucket_name" {
  description = "State Management Bucket Name"
  type        = string
  default     = "betekk-state-management-bucket"
}

variable "github_organization_old" {
  description = "Github Organization Name (old) for migration support"
  type        = string
  default     = "nus-cee"
}

variable "github_organization_new" {
  description = "Github Organization Name (new)"
  type        = string
  default     = "betekk"
}

Read the full file on GitHub · 721 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. 6d ago First seen · 721 lines · 31 tokens per session scan A add17f3430be

Subscribe to this mod's changes

opentofu-ecr-provision-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 31 tokens to every session and 4,530 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-09-03.

Related

Other skills, from other repositories

scanning-containers-with-trivy-in-cicd

This skill covers integrating Aqua Security's Trivy scanner into CI/CD pipelines for comprehensive container image vulnerability detection. It addresses scanning Docker images for OS package and application dependency CVEs, detecting misconfigurations in Dockerfiles, scanning filesystem and git repositories, and…

xalgorix/xalgorix · 74 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens

devops

DevOps - Docker, CI/CD, cloud infra, monitoring.

sipyourdrink-ltd/bernstein · 16 tokens

devops-deployment

Use when setting up CI/CD pipelines, containerizing applications, deploying to Kubernetes, or writing infrastructure as code. DevOps & Deployment covers GitHub Actions, Docker, Helm, and Terraform patterns.

yonatangross/orchestkit · 44 tokens

devops-automator

Expert DevOps engineer for CI/CD, IaC, Kubernetes, and deployment automation. Activate on: CI/CD, GitHub Actions, Terraform, Docker, Kubernetes, Helm, ArgoCD, GitOps, deployment pipeline, infrastructure as code, container orchestration. NOT for: application code (use language skills), database schema (use…

curiositech/some_claude_skills · 87 tokens

devops-infrastructure

Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing Dockerfiles, configuring GitHub Actions, planning deployments, setting up monitoring, or when asked about containers, pipelines, Terraform, or production infrastructure.

CloudAI-X/claude-workflow-v2 · 57 tokens