Borrowing it
Nothing to install: this file belongs to ragmha/apple-books-mcp. 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/ragmha/apple-books-mcp/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/ragmha/apple-books-mcpWrote 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/ragmha/apple-books-mcp/copilot-instructions)<a href="https://agentmods.dev/instructions/ragmha/apple-books-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/ragmha/apple-books-mcp/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.00320 | $0.00320 |
| Opus 5 | $0.00160 | $0.00160 |
| Sonnet 5 | $0.00064 | $0.00064 |
| Haiku 4.5 | $0.00032 | $0.00032 |
Grade A, and why
apple-books-mcp 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 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.
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.
What it actually says
Copilot Instructions
This is a Bun/TypeScript MCP (Model Context Protocol) server for Apple Books.
Tech Stack
- Runtime: Bun
- Language: TypeScript
- Validation: Zod v4
- Protocol: MCP SDK (@modelcontextprotocol/sdk)
- Database: SQLite via bun:sqlite (Apple Books internal databases)
Project Structure
src/index.ts- Entry point, starts stdio transportsrc/server.ts- MCP server with tool definitionssrc/db/- Database layerconnection.ts- Database connectionsquery.ts- Fluent query builder with Zod validationschemas.ts- Zod schemas for books, collections, annotationsconstants.ts- Table names, paths, entity typesbooks.ts,collections.ts,annotations.ts- Domain queries
Conventions
- Use the fluent query builder (
createDb(db).selectFrom(table, schema)) for queries - Zod schemas handle row→presentation transformation
- Raw column names (e.g.,
ZTITLE,Z_PK) stay as strings in queries - Table names use constants from
constants.ts - Core Data timestamps need conversion via
coreDataToISO()
Important Notes
- This accesses Apple Books' internal SQLite databases (educational use only)
- Write operations create backups and restart Apple Books
- Core Data epoch is 2001-01-01 (not Unix epoch)
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 · 37 lines · 320 tokens per session scan A 40343769a9a1
apple-books-mcp copilot-instructions.md is an instructions file published in the GitHub repository ragmha/apple-books-mcp (0 stars, last pushed 3mo ago), licensed MIT. It adds 320 tokens to every session, about $0.0016 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
vibetags com-example-service-OrderService.instructions.md
Instructions for PIsberg/vibetags, covering copilot instructions for orderservice, rules for method calculatetax, rules for method processpayment, rules for method validateorder and context & focus.
vibetags com-example-security-SecurityConfig.instructions.md
Instructions for PIsberg/vibetags, covering copilot instructions for securityconfig, locked status, rules for method getencryptionalgorithm, rules for method getkeyrotationhours and rules for method getmaxloginattempts.
vibetags com-example-concurrent-SessionCache.instructions.md
Instructions for PIsberg/vibetags, covering copilot instructions for sessioncache and thread-safety guarantee.
vibetags com-example-config-AsyncTestConfig.instructions.md
Instructions for PIsberg/vibetags, covering copilot instructions for asynctestconfig and immutable type.
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.