gopherstack: Instructions file for GitHub Copilot

.github/copilot-instructions.md

gopherstack copilot-instructions.md is an instructions file for GitHub Copilot from BlackbirdWorks/gopherstack. It costs 3,805 tokens per session, scanned A, a copy of gitlab-mcp-server go.instructions.md, MIT.

A set of instructions for an AI coding assistant working on the gopherstack Go repository. It defines coding style, testing, coverage, session checkpoints, and when to commit and push changes.

In plain words
What is it for?
It is for guiding Go development, running tests and lint checks, maintaining integration tests, and managing work across time-limited sessions.
Why use it?
It gives the assistant consistent project rules instead of making it guess how code should be written, tested, and delivered.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is BlackbirdWorks/gopherstack's own configuration. It tells GitHub Copilot how to work on gopherstack 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 gopherstack configures →

Reuse

Borrowing it

Nothing to install: this file belongs to BlackbirdWorks/gopherstack. 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/BlackbirdWorks/gopherstack/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/BlackbirdWorks/gopherstack

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/blackbirdworks/gopherstack/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/blackbirdworks/gopherstack/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,805 This file is loaded in full into every session.
When invoked 3,805 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 83% copy Near-identical to another mod 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.03805 $0.03805
Opus 5.5 $0.01522 $0.01522
Sonnet 5.5 $0.00761 $0.00761
Haiku 4.5 $0.00380 $0.00380

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

Security

Grade A, and why

gopherstack 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 2d 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.

Origin

This is a copy

83% identical to gitlab-mcp-server go.instructions.md — 368 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/copilot-instructions.md · 391 lines

How it starts

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

Session Management

  • Commit and push after completing each task.
  • Your max session is 1 hour — when approaching the limit, create checkpoint.md at the repo root (what is done, what remains, any blockers) and push. Remove checkpoint.md when the full issue is complete.
  • Run task test after each task before committing. Resolve all lint issues via task lint-fix.
  • Min test coverage is 85%.
  • Add integration tests in test/integration/ as you go for everything you implement.
  • Run task build before pushing.

Go Development Instructions

Follow idiomatic Go practices and community standards when writing Go code. These instructions are based on Effective Go, Go Code Review Comments, and Google's Go Style Guide.

General Instructions

  • Write simple, clear, and idiomatic Go code
  • Favor clarity and simplicity over cleverness
  • Follow the principle of least surprise
  • Keep the happy path left-aligned (minimize indentation)
  • Return early to reduce nesting
  • Prefer early return over if-else chains; use if condition { return } pattern to avoid else blocks
  • Make the zero value useful
  • Write self-documenting code with clear, descriptive names
  • Document exported types, functions, methods, and packages
  • Use Go modules for dependency management
  • Leverage the Go standard library instead of reinventing the wheel (e.g., use strings.Builder for string concatenation, filepath.Join for path construction)
  • Prefer standard library solutions over custom implementations when functionality exists
  • Write comments in English by default; translate only upon user request
  • Avoid using emoji in code and comments
  • Avoid break statements; any loop break should be factored into a separate function with a fast return
  • Logging MUST always be performed via log/slog and MUST always be pulled from the context (e.g. logger.Load(ctx))
  • Avoid nolint directives; removing rules is forbidden unless no other fix is available

Read the full file on GitHub · 391 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. 2d ago First seen · 391 lines · 3,805 tokens per session scan A 6bc238844641

Subscribe to this mod's changes

gopherstack copilot-instructions.md is an instructions file published in the GitHub repository BlackbirdWorks/gopherstack (18 stars, last pushed yesterday), licensed MIT. It adds 3,805 tokens to every session, about $0.0152 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 83% identical to gitlab-mcp-server go.instructions.md, differing in 368 lines, and is treated as a copy.

Related

gopherstack copilot-instructions.md compared with instructions from other repositories

gopherstack copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gopherstack copilot-instructions.mdBlackbirdWorks/gopherstackInstructions file18yesterdayMITA3,805GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot