terraform-lsp copilot-instructions.md

terraform-lsp copilot-instructions.md is an instructions file for GitHub Copilot from zircote/terraform-lsp. It costs 203 tokens per session, scanned A, original, MIT.

Repository instructions for a Claude Code plugin that adds Terraform development support through terraform-ls, a language server that analyzes Terraform code. They define priorities, setup and validation commands, important files, and patterns for automated hooks.

In plain words
What is it for?
Use them when changing the Terraform plugin, its language-server configuration, commands, hooks, or documentation. They cover setup, validation, and safe hook implementation.
Why use it?
They keep changes small, make hooks fast, and prevent optional tools from blocking the workflow. They also show where configuration and slash commands live and how directory-specific hooks should run.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: reads .claude/ paths; mentions Claude Code.

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.

agentmods
npx agentmods add instructions/zircote/terraform-lsp/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/zircote/terraform-lsp

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zircote/terraform-lsp/copilot-instructions.svg)](https://agentmods.dev/instructions/zircote/terraform-lsp/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/zircote/terraform-lsp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/zircote/terraform-lsp/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 203 This file is loaded in full into every session.
When invoked 203 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00203 $0.00203
Opus 5 $0.00102 $0.00102
Sonnet 5 $0.00041 $0.00041
Haiku 4.5 $0.00020 $0.00020

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

Security

Grade A, and why

terraform-lsp copilot-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 5d 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/copilot-instructions.md · 27 lines

What it actually says

Copilot instructions

You are working in a Claude Code plugin for Terraform development with terraform-ls LSP integration.

Priorities

  1. Keep changes small and reviewable.
  2. Hooks must be fast - use head -N to limit output, || true to prevent blocking.
  3. Update documentation when you change developer-facing behavior.

Commands

  • Setup: /setup (installs terraform-ls, tflint, trivy, checkov)
  • Validate: /validate (verifies plugin installation)

Key Files

  • .lsp.json - terraform-ls LSP configuration
  • hooks/hooks.json - 17 automated hooks
  • .claude/commands/*.md - slash commands

Hook Patterns

  • Use command -v tool >/dev/null && for optional dependencies
  • Use cd "$(dirname "$CLAUDE_FILE_PATH")" for directory-scoped commands
  • All hooks trigger on afterWrite
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. 5d ago First seen · 27 lines · 203 tokens per session scan A c106c3c7124b

Subscribe to this mod's changes

terraform-lsp copilot-instructions.md is an instructions file published in the GitHub repository zircote/terraform-lsp (2 stars, last pushed 26d ago), licensed MIT. It adds 203 tokens to every session, about $0.0010 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.