awesome-copilot-index: Instructions file for GitHub Copilot

.github/copilot-instructions.md

awesome-copilot-index copilot-instructions.md is an instructions file for GitHub Copilot from PEZ/awesome-copilot-index. It costs 2,119 tokens per session, scanned A, original, MIT.

Project instructions for Awesome Copilot Index, a pipeline that collects GitHub repository content and publishes it as searchable website data. It also covers the project's editor integration and development workflow.

In plain words
What is it for?
Use it when changing the build pipeline, Markdown parsing, generated JSON or EDN indexes, Jekyll site, or ClojureScript editor integration.
Why use it?
It gives an agent the project's architecture and the expected steps for downloading, parsing, indexing, and publishing content, reducing mistakes during development.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions Cursor.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pez/awesome-copilot-index/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/pez/awesome-copilot-index/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,119 This file is loaded in full into every session.
When invoked 2,119 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.02119 $0.02119
Opus 5.5 $0.00848 $0.00848
Sonnet 5.5 $0.00424 $0.00424
Haiku 4.5 $0.00212 $0.00212

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

Security

Grade A, and why

awesome-copilot-index 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 2mo 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 · 169 lines

How it starts

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

Copilot Instructions for Awesome Copilot Index

Project Architecture

This project is a multi-stage content indexing pipeline that downloads, parses, and publishes GitHub repository content. The architecture consists of:

  1. Content Extraction: Downloads GitHub repos as ZIP files (not git clones) to avoid history
  2. Markdown Parsing: Parses frontmatter and content using custom trimming logic for edge cases
  3. Index Generation: Transforms raw markdown into structured JSON/EDN for consumption
  4. Jekyll Publishing: Renders a searchable web interface with responsive CSS
  5. VS Code Integration: Provides ClojureScript-based Joyride script for in-editor access

Key Data Flow: GitHub ZIP → Babashka Parser → JSON/EDN Index → Jekyll Site → Joyride Menu

Always show what you evaluate in the repl to the user, using a codeblock that starts with the namespace in a (in-ns ...) form.

Critical Workflows

Main Build Pipeline

bb download-awesome        # Downloads awesome-copilot repo as ZIP
bb generate-index         # Parses markdown, generates site/awesome-copilot.{json,edn}
bb download-cursorrules   # Downloads awesome-cursorrules repo
bb generate-cursorrules-index  # Generates cursor rules index

Development REPL Workflow

(in-ns 'pez.index)
(require 'pez.index :reload)
;; Test parsing with problematic content
(def test-content "---\ntitle: test\n---  \n\n# Content")
(parse-markdown-file test-content)

Jekyll Site Generation

  • Templates use Selmer syntax: {{instruction-count}}, {{formatted-date}}
  • Site builds from site/ directory with generated JSON/EDN indices
  • CSS supports both ul (bullet) and ol (numbered) lists with blue styling

Development Template Workflow

When editing site/index-template.md during development:

  1. Edit the template file: Make changes to site/index-template.md
  2. Regenerate index: Run bb generate-index to process template with real data
  3. Jekyll auto-reload: Jekyll's live reload automatically picks up the generated index.md changes

Read the full file on GitHub · 169 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. 2mo ago First seen · 169 lines · 2,119 tokens per session scan A af5b199e1aef

Subscribe to this mod's changes

awesome-copilot-index copilot-instructions.md is an instructions file published in the GitHub repository PEZ/awesome-copilot-index (4 stars, last pushed 8mo ago), licensed MIT. It adds 2,119 tokens to every session, about $0.0085 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

awesome-copilot-index copilot-instructions.md compared with instructions from other repositories

awesome-copilot-index copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
awesome-copilot-index copilot-instructions.mdPEZ/awesome-copilot-indexInstructions file48mo agoMITA2,119GitHub Copilot
plan-forge dapr.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA4,975GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot