copilot-repo-template: Instructions file for GitHub Copilot

.github/instructions/terraform.instructions.md

copilot-repo-template terraform.instructions.md is an instructions file for GitHub Copilot from franklesniak/copilot-repo-template. It costs 30,680 tokens per session, scanned A, original, MIT.

Coding instructions for writing Terraform files, which describe cloud and other infrastructure as code. They cover structure, security, modules, state, providers, and testing.

In plain words
What is it for?
Use them when creating or editing Terraform configurations, variables, modules, state handling, provider settings, templates, or Terraform tests.
Why use it?
They give developers consistent rules for infrastructure changes that are easier to review, reuse, and maintain.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is franklesniak/copilot-repo-template's own configuration. It tells GitHub Copilot how to work on copilot-repo-template itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything copilot-repo-template configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is source = "../../modules/vpc".

Reuse

Borrowing it

Nothing to install: this file belongs to franklesniak/copilot-repo-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/franklesniak/copilot-repo-template/main/.github/instructions/terraform.instructions.md
Clone the repo
git clone --depth 1 https://github.com/franklesniak/copilot-repo-template

Made for: GitHub Copilot.

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 copilot-repo-template terraform.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/franklesniak/copilot-repo-template/terraform/github.svg)](https://agentmods.dev/instructions/franklesniak/copilot-repo-template/terraform)
Your own site
<a href="https://agentmods.dev/instructions/franklesniak/copilot-repo-template/terraform"><img src="https://agentmods.dev/badge/instructions/franklesniak/copilot-repo-template/terraform/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 copilot-repo-template terraform.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/franklesniak/copilot-repo-template/terraform"><img src="https://agentmods.dev/badge/instructions/franklesniak/copilot-repo-template/terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30,680 This file is loaded in full into every session.
When invoked 30,680 The same file — it is already loaded in full.
Security scan A 0 findings. 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.30680 $0.30680
Opus 5 $0.15340 $0.15340
Sonnet 5 $0.06136 $0.06136
Haiku 4.5 $0.03068 $0.03068

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

Security

Grade A, and why

copilot-repo-template terraform.instructions.md 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 10d 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.

.github/instructions/terraform.instructions.md · 4,110 lines

How it starts

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

Terraform Writing Style

Version: 2.5.20260623.0

Metadata

  • Status: Active
  • Owner: Repository Maintainers
  • Last Updated: 2026-06-23
  • Scope: Terraform coding standards for all .tf, .tfvars, .tftest.hcl, .tf.json, .tftpl, and .tfbackend files in this repository — style, formatting, naming, file organization, variable and output design, resource configuration, module design, state management, cross-stack data sharing, provider management, security, testing, and documentation.

Keywords

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL are defined in RFC 2119. Requirements apply when their scope is present (e.g., module rules apply only when modules exist).

Quick Reference Checklist

This checklist provides a quick reference for both human developers and LLMs (like GitHub Copilot) to follow the Terraform style guidelines. Each item includes a scope tag indicating applicability:

  • [All] — Applies to all Terraform files
  • [Module] — Applies when developing reusable modules
  • [Root] — Applies to root configurations (deployments)
  • [Test] — Applies to test files (.tftest.hcl)

Scope reminder: Items tagged [Module], [Root], or [Test] are mandatory when those constructs are present. If the construct does not exist in your repo, the requirement is not yet applicable.

Formatting and Style (Quick Reference)

  • [All] Code MUST pass terraform fmt without modifications
  • [All] Code MUST use 2 spaces for indentation, never tabs
  • [All] Files MUST use UTF-8 encoding
  • [All] Files MUST end with a single newline
  • [All] Lines SHOULD NOT exceed 120 characters except for long strings or URLs
  • [All] Blank lines MUST be completely empty (no whitespace)
  • [All] Comments MUST use # for single-line; /* */ MAY be used for multi-line

Read the full file on GitHub · 4,110 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. 10d ago First seen · 4,110 lines · 30,680 tokens per session scan A 5a52936098e4

Subscribe to this mod's changes

copilot-repo-template terraform.instructions.md is an instructions file published in the GitHub repository franklesniak/copilot-repo-template (8 stars, last pushed 24d ago), licensed MIT. It adds 30,680 tokens to every session, about $0.1534 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-31.