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/lightpaperorg/lightpaper/claude-mdgit clone --depth 1 https://github.com/lightpaperorg/lightpaperWhat 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.05450 | $0.05450 |
| Opus 5 | $0.02725 | $0.02725 |
| Sonnet 5 | $0.01090 | $0.01090 |
| Haiku 4.5 | $0.00545 | $0.00545 |
Grade A, and why
lightpaper CLAUDE.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 — 353 lines — stays where its author put it; the contents beside it link to each section on GitHub.
lightpaper.org — Claude Code Instructions
Architecture
FastAPI + async SQLAlchemy + PostgreSQL 16. Single-process async app deployed on Google Cloud Run.
Key Files
| File | Purpose |
|---|---|
app/main.py |
FastAPI app, middleware (CORS, security headers, body size, rate limiting) |
app/config.py |
Pydantic settings from env vars |
app/auth.py |
API key + email OTP + LinkedIn OAuth authentication |
app/models.py |
SQLAlchemy ORM models (18 tables) |
app/schemas.py |
Pydantic request/response schemas with size limits |
app/rate_limit.py |
slowapi limiter singleton |
app/utils.py |
get_client_ip() for Cloud Run proxy |
app/routes/publish.py |
POST /v1/publish — the core endpoint |
app/routes/search.py |
GET /v1/search — full-text + gravity ranking |
app/routes/documents.py |
CRUD /v1/documents/{id}, notifies search engines on update/delete |
app/routes/books.py |
Book publishing: POST /v1/books, chapter management |
app/routes/write.py |
Writing IDE API: sessions, chat, files, publish |
app/routes/ide.py |
Serves the React SPA at /write |
app/services/wave_engine.py |
Wave Method system prompts per wave |
app/ide/ |
React + Vite frontend for the Writing IDE |
app/routes/reading.py |
GET /{slug}, GET /books/{slug} — content negotiation (HTML/JSON) |
app/routes/discovery.py |
robots.txt, sitemap.xml, feed.xml, llms.txt, OG images, IndexNow + Google ping |
app/routes/auth.py |
Email OTP + LinkedIn OAuth login/signup endpoints |
app/routes/linkedin.py |
LinkedIn OAuth verification for existing accounts |
app/routes/verification.py |
Domain DNS, ORCID verification, gravity status |
app/routes/credentials.py |
Agent-driven credential verification |
app/routes/narration.py |
Audiobook narration: estimate, create, status, callback |
app/routes/print.py |
Print PDF export: preview, interior, cover, certificate |
app/services/narration.py |
ElevenLabs TTS, markdown→plaintext, GCS upload |
app/services/print_pdf.py |
WeasyPrint interior PDF + certificate generation |
app/services/print_cover.py |
Pillow cover PDF generation (300 DPI) |
app/services/licenses.py |
License info map, copyright notice generator |
app/services/renderer.py |
markdown-it-py + nh3 HTML sanitization |
app/services/quality.py |
Deterministic quality scoring (0-100) |
app/services/gravity.py |
Non-hierarchical author gravity (0-5) |
app/services/slug.py |
URL slug generation + reserved slug list |
app/services/og_image.py |
Pillow-based OG image generation |
app/services/api_keys.py |
API key generation utility |
app/services/email.py |
Resend API email delivery for OTP |
mcp/server.py |
MCP server with 25 tools + 3 prompts (stdio transport) |
app/routes/mcp_http.py |
Remote MCP endpoint (Streamable HTTP transport at /mcp) |
lightpaper_mcp/ |
Standalone PyPI package for MCP server distribution |
AGENTS.md |
OpenAI AGENTS.md standard — project-level agent instructions |
init.sql |
Database schema (13 tables) |
migrations/*.sql |
Idempotent SQL migrations (run at startup) |
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 · 353 lines · 5,450 tokens per session scan A 71917725e418
lightpaper CLAUDE.md is an instructions file published in the GitHub repository lightpaperorg/lightpaper (0 stars, last pushed 2mo ago), licensed MIT. It adds 5,450 tokens to every session, about $0.0272 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
notion-mcp CLAUDE.md
Instructions for shck-dev/notion-mcp, covering notion mcp server, package, architecture, auth and tools.
inkdex AGENTS.md
AGENTS.md instructions for antonlunden/inkdex, covering agents.md, general coding guidelines and development.
precis-mcp AGENTS.md
AGENTS.md instructions for retospect/precis-mcp, covering precis-mcp — agent context, identity, stack / toolkit, repository shape and workflow — plan first, always.
precis-mcp CLAUDE.md
Claude Code instructions for retospect/precis-mcp, covering claude code — project brief, ship workflow, orientation, conventions that bite (irreversible, or reddens the ship) and hook/gate-enforced — one-liners, detail on demand.
markitdown-mcp-server AGENTS.md
AGENTS.md instructions for RECTOR-LABS/markitdown-mcp-server, covering apify actors development guide, what are apify actors?, core concepts, do and don't.
markitdown-mcp-server CLAUDE.md
Claude Code instructions for RECTOR-LABS/markitdown-mcp-server, covering claude.md - markitdown mcp server, actor overview, technical architecture, core technology stack and repository structure.