code-copilot-team: Instructions file for Claude Code

adapters/github-copilot/.github/copilot-instructions.md

code-copilot-team copilot-instructions.md is an instructions file for Claude Code, GitHub Copilot from gosha70/code-copilot-team. It costs 6,264 tokens per session, scanned C, original, MIT.

A shared instruction file that tells a coding assistant which coding standards and checks to follow. It also lists patterns to avoid, such as unused code, magic values, and secrets stored in source files.

In plain words
What is it for?
It is for enforcing lint and test requirements, checking coverage, preventing secrets and dead code, and directing configuration values into separate files or environment variables.
Why use it?
It gives code generation and review a consistent baseline, helping catch quality, security, and verification problems before a change is committed or merged.

Instructions file for Claude CodeGitHub Copilot

Written for Claude Code and GitHub Copilot: PreToolUse hook event, but also a Copilot instructions file. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is gosha70/code-copilot-team's own configuration. It tells Claude Code and GitHub Copilot how to work on code-copilot-team 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 code-copilot-team configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gosha70/code-copilot-team. 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/gosha70/code-copilot-team/master/adapters/github-copilot/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/gosha70/code-copilot-team

Made for: Claude Code, 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 code-copilot-team copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gosha70/code-copilot-team/copilot-instructions.svg)](https://agentmods.dev/instructions/gosha70/code-copilot-team/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/gosha70/code-copilot-team/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/gosha70/code-copilot-team/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 6,264 This file is loaded in full into every session.
When invoked 6,264 The same file — it is already loaded in full.
Security scan C 2 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.06264 $0.06264
Opus 5 $0.03132 $0.03132
Sonnet 5 $0.01253 $0.01253
Haiku 4.5 $0.00626 $0.00626

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

Security

Grade C, and why

code-copilot-team copilot-instructions.md scanned grade C with 2 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Any destructive command: rm -rf, DROP TABLE, TRUNCATE, git reset --hard, git push --force.

Makes network callslowCapability

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

- **Execute your own test plan.** If you write test commands (curl, bash, docker, etc.) as part of a build summary, run every command yourself and report results before declaring done.
adapters/github-copilot/.github/copilot-instructions.md · 575 lines

How it starts

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

Copilot Instructions

Auto-generated from shared/skills/. Do not edit directly. Regenerate with: ./scripts/generate.sh

Coding Standards

Applied to all code generation and review sessions.

Quality Gates (enforce before merge/commit)

  • Lint errors: 0
  • Test coverage: >= 80% (critical paths >= 95%)
  • No commented-out code
  • No unused imports or dead code
  • No hard-coded secrets or credentials

Prohibited Patterns

  • No hard-coded structured data (JSON/XML literals) inside source — use config files or env vars. This includes default values on Python dataclasses/Pydantic models and equivalents in other languages — define only the schema in code; put actual defaults in config/defaults.yaml (or equivalent). A config loader reads the file and populates the schema; env vars or override files layer on top.
  • No magic numbers or strings — use named constants. When a string key crosses a module boundary (config key, variable name, prompt template name), define it as a constant in the lowest common ancestor package and import it everywhere. A hardcoded string in two modules is a silent breakage waiting to happen.
  • No secrets in source — use env vars or a secrets manager.
  • No print() debugging in committed code — use structured logging.
  • No wildcard imports.
  • No bare except / catch without specific exception types.
  • No SQL string concatenation — use parameterized queries.

Verification Discipline

  • Never suggest skipping a failing verification step. When a test, build, lint check, Docker build, or script execution fails, diagnose and fix the issue. Do not suggest workarounds that bypass the deliverable.
  • Execute your own test plan. If you write test commands (curl, bash, docker, etc.) as part of a build summary, run every command yourself and report results before declaring done.
  • Build it, run it. Any executable artifact you create (Dockerfile, shell script, CI workflow, launcher flag) must be executed at least once before committing. Syntax validity alone is not sufficient.
  • Re-review after fix. After applying a fix for a bug flagged in code review or a reviewer note, run the review process again (e.g., /team-review or the equivalent specialist agent) before declaring done. Do not just apply the fix and move on — the re-review may catch secondary issues exposed by the fix itself.
  • Confirm against origin before declaring done. Run scripts/check-origin-alignment.sh <feature-id> before presenting any feature for review. Exit ≥ 2 means the working artifact has drifted from the user's origin and you must surface the three-resolution escalation (rescope / restart / document divergence) — do not proceed. See shared/skills/origin-confirmation/SKILL.md for the full protocol.

Read the full file on GitHub · 575 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 Changed · +14 lines · +130 tokens per session b4df572dcbd0
  2. 3d ago First seen · 561 lines · 6,134 tokens per session scan C ba04d1cdbdee

Subscribe to this mod's changes

code-copilot-team copilot-instructions.md is an instructions file published in the GitHub repository gosha70/code-copilot-team (6 stars, last pushed yesterday), licensed MIT. It adds 6,264 tokens to every session, about $0.0313 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 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 · 6,785 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,296 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,469 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens