Borrowing it
Nothing to install: this file belongs to AndrewAltimit/template-repo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/AndrewAltimit/template-repo/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/AndrewAltimit/template-repoWrote 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.
[](https://agentmods.dev/instructions/andrewaltimit/template-repo/copilot-instructions)<a href="https://agentmods.dev/instructions/andrewaltimit/template-repo/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/andrewaltimit/template-repo/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01691 | $0.01691 |
| Opus 5 | $0.00846 | $0.00846 |
| Sonnet 5 | $0.00338 | $0.00338 |
| Haiku 4.5 | $0.00169 | $0.00169 |
Grade B, and why
template-repo copilot-instructions.md scanned grade B with 1 finding 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 7d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- No `chmod 777` or overly permissive operations How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project Context for AI Code Review
Project Overview
This is a container-first, self-hosted project template maintained by a single developer (@AndrewAltimit). It uses Model Context Protocol (MCP) tools with zero-cost infrastructure.
AI Agent Ecosystem
This project uses five AI agents:
- Claude Code - Primary development (architecture, implementation, docs)
- Gemini CLI - Automated PR reviews (you are reviewing as Gemini)
- GitHub Copilot - Code review suggestions in pull requests
- Issue Monitor - Automated issue response and implementation
- PR Review Monitor - Automated PR review response and fixes
As the PR reviewer, focus on security, containers, and project standards.
Core Design Principles
1. Container-First Philosophy
- Everything runs in Docker containers except Gemini CLI (needs Docker access)
- No local dependencies required beyond Docker itself
- All Python CI/CD operations are containerized (ruff, pytest, bandit, etc.)
- The
automation-cliRust binary provides a unified interface to all CI stages
2. Self-Hosted Infrastructure
- All GitHub Actions run on self-hosted runners - no cloud costs
- Docker images are cached locally for fast builds
- Designed for individual developer efficiency - no team coordination needed
3. Architecture
- MCP Server (FastAPI) runs on port 8005 in Docker container
- Python CI Container includes all development tools (Python 3.11)
- Docker Compose orchestrates all services
- No aggressive cleanup - Python cache prevention via environment variables
- Multi-stage CI/CD - format, lint-basic, lint-full, security, test stages
Review Focus Areas
PRIORITIZE reviewing
- Container configurations - Dockerfile correctness, security, user permissions
- Security concerns - No hardcoded secrets, no root containers, proper permissions
- Docker Compose changes - Service configs, port conflicts, volume mounts
- Script correctness - Shell scripts should use proper error handling (set -e)
- Python imports - Ensure compatibility with containerized environment
- MCP tool changes - Verify tools follow async patterns and error handling
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.
- 7d ago First seen · 197 lines · 1,691 tokens per session scan B 110b5f8dc2c8
template-repo copilot-instructions.md is an instructions file published in the GitHub repository AndrewAltimit/template-repo (131 stars, last pushed 2mo ago), licensed Unlicense. It adds 1,691 tokens to every session, about $0.0085 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
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.
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.
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).
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).
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.
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.