awesome-ai-rules copilot-instructions.md

awesome-ai-rules copilot-instructions.md is an instructions file for GitHub Copilot from shumatsumonobu/awesome-ai-rules. It costs 236 tokens per session, scanned A, original, MIT.

A set of instructions for GitHub Copilot when working in a Next.js 15 monorepo, a single repository containing several related packages. It defines coding, database, and file-handling rules for a TypeScript project.

In plain words
What is it for?
Guiding Copilot while editing the web, API, shared-type, and database parts of the repository.
Why use it?
It keeps Copilot's suggestions consistent across the frontend, backend, and shared code, while preventing listed patterns such as raw SQL, default exports, and committed environment files.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

Good fit Guiding Copilot while editing the web, API, shared-type, and database parts of the repository.

Compare 6 instructions from other repositories ↓
Install with agentmods
npx agentmods add instructions/shumatsumonobu/awesome-ai-rules/copilot-instructions
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.

Clone the repo
git clone --depth 1 https://github.com/shumatsumonobu/awesome-ai-rules

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/shumatsumonobu/awesome-ai-rules/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/shumatsumonobu/awesome-ai-rules/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 236 This file is loaded in full into every session.
When invoked 236 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. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review
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.00236 $0.00236
Opus 5 $0.00118 $0.00118
Sonnet 5 $0.00047 $0.00047
Haiku 4.5 $0.00024 $0.00024

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

Security

Grade A, and why

awesome-ai-rules 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 10d 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.

examples/nextjs-app/copilot/.github/copilot-instructions.md · 25 lines

What it actually says

Copilot Instructions

This is the main repo-level instruction file. Copilot reads it on every request. For file-type-specific rules, see .github/instructions/ -- those files use applyTo frontmatter to activate only on matching files.

Next.js 15 monorepo with TypeScript, Tailwind CSS, and Drizzle ORM. pnpm workspaces with packages/web (frontend), packages/api (backend logic), and packages/shared (types).

Code Style

  • TypeScript strict mode. No any, no @ts-ignore.
  • Named exports only. No default exports.
  • Use type for props, not interface.
  • Use @/ path aliases.

Database

  • All database access goes through packages/api/. The web package never imports drizzle-orm.
  • Use Drizzle's query builder, not raw SQL.
  • Services return plain objects, not ORM row types.

Don't

  • Don't use the Pages Router, axios, React.FC, or barrel files.
  • Don't commit .env files.
  • Don't comment on code style or formatting issues.
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. 10d ago First seen · 25 lines · 236 tokens per session scan A e5c4e2082e82

Subscribe to this mod's changes

awesome-ai-rules copilot-instructions.md is an instructions file published in the GitHub repository shumatsumonobu/awesome-ai-rules (1 stars, last pushed 1mo ago), licensed MIT. It adds 236 tokens to every session, about $0.0012 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.

Related

Other instructions, from other repositories