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.
npx agentmods add instructions/backendforth/next-sanity-starter/copilot-instructionsgit clone --depth 1 https://github.com/backendforth/next-sanity-starterWhat 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 | $0.00979 | $0.00979 |
| Opus 5 | $0.00490 | $0.00490 |
| Sonnet 5 | $0.00196 | $0.00196 |
| Haiku 4.5 | $0.00098 | $0.00098 |
Grade A, and why
next-sanity-starter 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.
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitHub Copilot — repository instructions
Full guardrails live in AGENTS.md at the repo root. This file is a condensed mirror for inline suggestions.
Repo at a glance
- pnpm monorepo:
web(Next.js 16 App Router),studio(Sanity v5), sharedpackages/*. - Editorial content is rendered via the module pattern: every content block is a paired
module.<name>Sanity object +Module<Name>.tsxReact component, wired in 8 places. - Multilingual content uses
@sanity/internationalized-array. Locale is resolved at render time viaweb/sanity/utils/sanityLocalizedText.ts, never inside GROQ.
Top rules
- Reuse before invention — check
studio/schemas/objects/modules/,web/src/components/modules/,web/sanity/queries/snippets/,web/sanity/utils/first. - New content block → it is a module. Touch all 8 wiring points or revert:
studio/schemas/objects/modules/module<Name>.tsstudio/schemas/index.tsstudio/schemas/objects/editors/richTextMedia.tsstudio/schemas/fields/modulesArrayField.tsweb/src/components/modules/Module<Name>.tsxweb/src/components/modules/index.ts(+ register inModulesRenderer.tsx)web/sanity/queries/components/modules/<name>.ts(+ barrel)web/sanity/types/modules/<name>.ts(+ barrel)
- After every schema edit:
pnpm studio:generate, thenpnpm typecheck, thenpnpm format. - Never edit
studio/sanity.types.gen.tsorstudio/schema.json— generated. web/sanity/types/*are hand-maintained — update them when schema fields change.- Locale-aware always: use
pickLocalizedString(field, locale, siteLocale)orparseLocalizedText({ value, locale, siteLocale, as }). Neverfield[0].valueorfield.find(t => t.language === locale). Nevercoalesce(field[language==$locale].value, ...)in GROQ. - Add a new language only via the
siteLanguageSettingsStudio singleton (offline fallback:web/src/i18n/fallbackSiteLocales.ts). No schema, query, or component change. - No hardcoded locale codes outside
web/src/i18n/. - No imports from
studio/insideweb/(or vice versa). Share viapackages/*.
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.
- 2d ago First seen · 60 lines · 979 tokens per session scan A 5b761512add1
next-sanity-starter copilot-instructions.md is an instructions file published in the GitHub repository backendforth/next-sanity-starter (4 stars, last pushed 26d ago), licensed ISC. It adds 979 tokens to every session, about $0.0049 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.
Other instructions, from other repositories
intlayer CLAUDE.md
Instructions for aymericzip/intlayer, covering repo layout, commands (run from root), content declaration flow, git and commit conventions.
fastapi-react-admin CLAUDE.md
Instructions for yilecoding/fastapi-react-admin, covering claude.md, 按任务导航, 让这套文档不腐烂:pnpm ctx:check, 这套文档怎么自己长大 and 结构.
flarestarter AGENTS.md
Instructions for FlareStarter/flarestarter, covering agents.md, what this is, structure, conventions and commands.
claude-code-zh-cn AGENTS.md
Instructions for taekchef/claude-code-zh-cn, covering claude-code-zh-cn, 项目结构, 数据流, 技术要点 and 维护流程规则.
flarestarter CLAUDE.md
Instructions for FlareStarter/flarestarter: This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
tolgee-platform AGENTS.md
AGENTS.md instructions for tolgee/tolgee-platform, covering agents.md, repository structure, backend development, database migrations and backend testing.