terraform-cc008-migration

terraform-cc008-migration is a skill for Claude Code, Codex from canonical/copilot-collections. It costs 68 tokens per session (4,285 once invoked), scanned A, original, Apache-2.0.

A migration guide and tooling workflow for bringing Terraform modules into compliance with the CC008 Charm Terraform Standards. Terraform is a configuration language for defining infrastructure such as servers and cloud resources.

In plain words
What is it for?
Use it to update older Terraform modules, create CC008-compliant modules, or fix failed compliance checks and release automation.
Why use it?
It removes the need to discover the required file layout, inputs, outputs, version markers, tests, and CI setup by trial and error.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to update older Terraform modules, create CC008-compliant modules, or fix failed compliance checks and release automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/canonical/copilot-collections/terraform-cc008-migration
About the project

Canonical Copilot Collections is a repository for organizing and distributing GitHub Copilot instructions, prompts, agents, and skills across Canonical repositories. Teams configure repositories to subscribe to shared collections, such as Python, documentation, or Juju development guidance, and keep those assets synchronized.

canonical/copilot-collections · 31 stars · on GitHub

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 canonical/copilot-collections --skill terraform-cc008-migration
Clone the repo
git clone --depth 1 https://github.com/canonical/copilot-collections

Made for: Claude Code, Codex.

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 terraform-cc008-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/canonical/copilot-collections/terraform-cc008-migration/github.svg)](https://agentmods.dev/skills/canonical/copilot-collections/terraform-cc008-migration)
Your own site
<a href="https://agentmods.dev/skills/canonical/copilot-collections/terraform-cc008-migration"><img src="https://agentmods.dev/badge/skills/canonical/copilot-collections/terraform-cc008-migration/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 terraform-cc008-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/canonical/copilot-collections/terraform-cc008-migration"><img src="https://agentmods.dev/badge/skills/canonical/copilot-collections/terraform-cc008-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00068 $0.04285
Opus 5.5 $0.00027 $0.01714
Sonnet 5.5 $0.00014 $0.00857
Haiku 4.5 $0.00007 $0.00428

Measured yesterday against content hash 59c5d36269a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

terraform-cc008-migration scanned grade A 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check_cc008.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL -o "$CC008_TMP/cc008.spec.md" "$CC008_BASE/assets/cc008.spec.md"
groups/platform-engineering/skills/terraform-cc008-migration/SKILL.md · 366 lines

How it starts

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

Terraform CC008 Migration

Overview

Bring every Terraform module in a repository up to the CC008 — Charm Terraform Standards specification, and wire the repository to the compliance, test and release automation provided by canonical/operator-workflows.

When To Use

  • A repository ships one or more Terraform modules that predate CC008 (CC006-era layout, versions.tf, combined endpoints output, unpinned module sources).
  • A new module must be authored so that it is CC008-compliant from the start.
  • A CC008 compliance check fails in CI and the module needs to be corrected.

Source Of Truth

assets/cc008.spec.md is the specification. Read the sections relevant to the modules you are migrating before editing anything, and resolve every question against it. This skill does not restate the spec; it only reinforces the parts that are most often missed and describes the repository plumbing the spec does not cover.

Fetching The Companion Files

This skill ships two companion files next to SKILL.md: assets/cc008.spec.md and scripts/check_cc008.sh. When the skill is installed as a directory — for example synced to .github/skills/terraform-cc008-migration/ — they are already on disk and the relative paths above resolve.

When only SKILL.md was fetched (copilot skill add <url> materializes a single file), download them first and use the downloaded copies wherever this document refers to them:

CC008_BASE="https://raw.githubusercontent.com/canonical/copilot-collections/main/groups/platform-engineering/skills/terraform-cc008-migration"
CC008_TMP="$(mktemp -d -t cc008.XXXXXXXX)"
curl -fsSL -o "$CC008_TMP/cc008.spec.md" "$CC008_BASE/assets/cc008.spec.md"
curl -fsSL -o "$CC008_TMP/check_cc008.sh" "$CC008_BASE/scripts/check_cc008.sh"
chmod +x "$CC008_TMP/check_cc008.sh"

mktemp -d creates a directory unique to this run (e.g. /tmp/cc008.a1B2c3D4), so concurrent migrations never collide. Delete $CC008_TMP once the migration is verified; it must never be committed.

Read the full file on GitHub · 366 lines

Files

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.

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. yesterday Changed · +46 lines 59c5d36269a4
  2. 14d ago Changed · +33 lines 13a048322c14
  3. 16d ago First seen · 287 lines · 68 tokens per session scan A dd5da91d4578

Subscribe to this mod's changes

terraform-cc008-migration is a skill published in the GitHub repository canonical/copilot-collections (31 stars, last pushed 2d ago), licensed Apache-2.0. It adds 68 tokens to every session and 4,285 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

Other skills, from other repositories

release-readiness-check

Verify all prerequisites are met before a release by checking PRs, CI/CD status, environment health, and blocking issues across GitHub, ArgoCD, and Jira. Use before cutting a release, deploying to production, or during release planning.

caipe-io/ai-platform-engineering · 54 tokens

integration-testing

Validate the entire OBS + PIPE + GitOps + K8s flow end-to-end, and full system behavior from user's perspective. Implements DORA AI Capabilities 4, 5, 6, 7.

paruff/uFawkesAI · 47 tokens

backstage-techdocs

Set up, debug, and CI-publish Backstage TechDocs — mkdocs.yml, techdocs-ref, builder/generator/publisher config, storage backends, and docs that are missing, stale, or fail to build.

bendaamerahmed/backstage-idp-plugin · 51 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

atmos-profiles

Atmos profiles: profile directories, --profile and ATMOSPROFILE activation, profile merge behavior, environment switching, and routing profile-specific auth/toolchain/config overrides.

cloudposse/atmos · 35 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens