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,906 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,906 This file is loaded in full into every session.
When invoked 30,906 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.30906 $0.30906
Opus 5.5 $0.12362 $0.12362
Sonnet 5.5 $0.06181 $0.06181
Haiku 4.5 $0.03091 $0.03091

Measured 1mo ago against content hash 583521d586c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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,124 lines

How it starts

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

Terraform Writing Style

Version: 2.6.20260726.0

Metadata

  • Status: Active
  • Owner: Repository Maintainers
  • Last Updated: 2026-07-26
  • 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).

Applicability and Precedence

This guide is self-contained and applies within its stated Terraform scope whether or not an adopting repository defines broader repository-wide requirements. When broader repository-wide requirements are defined and applicable, they remain in force; nothing in this guide, including a recorded deviation, authorizes an exception to them.

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,124 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. 1mo ago Changed · +14 lines · +226 tokens per session 583521d586c8
  2. 2mo 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 (9 stars, last pushed 5d ago), licensed MIT. It adds 30,906 tokens to every session, about $0.1236 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.

Related

Other instructions, from other repositories

plan-forge naming.instructions.md

Azure naming conventions — Microsoft CAF abbreviations, constraints, uniqueness, tagging.

srnichols/plan-forge · 1,453 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens