Borrowing it
Nothing to install: this file belongs to X1AOX1A/ZoFiles. 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/X1AOX1A/ZoFiles/main/CLAUDE.mdgit clone --depth 1 https://github.com/X1AOX1A/ZoFilesWrote 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/x1aox1a/zofiles/claude-md)<a href="https://agentmods.dev/instructions/x1aox1a/zofiles/claude-md"><img src="https://agentmods.dev/badge/instructions/x1aox1a/zofiles/claude-md/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.
<a href="https://agentmods.dev/instructions/x1aox1a/zofiles/claude-md"><img src="https://agentmods.dev/badge/instructions/x1aox1a/zofiles/claude-md.svg" alt="Reviewed on agentmods" width="80" 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.02420 | $0.02420 |
| Opus 5.5 | $0.00968 | $0.00968 |
| Sonnet 5.5 | $0.00484 | $0.00484 |
| Haiku 4.5 | $0.00242 | $0.00242 |
Grade A, and why
ZoFiles 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 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.
How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — Development Guide for ZoFiles
Quick Start
npm install
npm run build # → .scaffold/build/zo-files.xpi
npm start # dev mode with hot reload
What Is This
ZoFiles is a Zotero 7/8 plugin (TypeScript, esbuild) that mirrors Zotero's collection hierarchy as real filesystem directories, with per-paper folders containing PDF, Markdown, BibTeX, Kimi review, notes, and arXiv ID files.
Built on zotero-plugin-template by windingwind.
Architecture Overview
Zotero.Notifier events
↓
notifier.ts (dispatch + filter)
↓
exporter.ts (ExportQueue / incrementalRebuild / fullRebuild)
↓
tree-builder.ts (collection → directory mapping)
↓
content-providers/*.ts (pluggable per-file generators)
↓
filesystem (IOUtils / PathUtils)
Data Flow
- Notifier (
notifier.ts) listens toitem,collection,collection-itemevents - Exporter (
exporter.ts) orchestrates: resolves paths via tree-builder, runs providers, manages index - Tree Builder (
tree-builder.ts) maps Zotero collection hierarchy → filesystem directory tree- Each
CollectionNodehasitemIds(direct items) andallItemIds(direct + all descendant items) Allin/directory: created when a collection has subcollections andallItemIds.length > 0. Contains every paper from the collection and all its descendants — a flat view of the entire subtree. This means even if the parent collection has no direct items,Allin/is still created as long as subcollections have papers.
- Each
- Content Providers (
content-providers/*.ts) generate individual files (PDF, Markdown, etc.) - Index (
.zofiles-index.json) tracks exported items, paths, and files for incremental operations
Key Files
| File | Purpose | When to touch |
|---|---|---|
src/modules/exporter.ts |
Core export logic, queue, rebuild, index management | Export behavior, path resolution, cleanup |
src/modules/notifier.ts |
Event dispatch, progress notifications | Adding new event handlers |
src/modules/tree-builder.ts |
Collection → directory mapping, Allin/ logic |
Changing how collections map to folders |
src/modules/preferences.ts |
Settings panel wiring, rebuild buttons | Adding new preferences |
src/modules/content-providers/ |
Pluggable content generators | Adding new export file types |
src/modules/arxiv-id.ts |
arXiv ID extraction from multiple fields | Changing paper identification |
src/modules/utils.ts |
ensureDir, joinPath, removeDir, formatPaperFolder, getCachePath |
Filesystem operations |
src/hooks.ts |
Plugin lifecycle (startup, shutdown, window load) | Init/cleanup logic |
addon/prefs.js |
Default preference values | Adding new settings |
addon/content/preferences.xhtml |
Settings panel UI (XUL/XHTML) | Settings UI changes |
addon/locale/{en-US,zh-CN}/preferences.ftl |
Localization strings | Any user-facing text |
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.
- 2mo ago First seen · 197 lines · 2,420 tokens per session scan A 05809be05062
ZoFiles CLAUDE.md is an instructions file published in the GitHub repository X1AOX1A/ZoFiles (42 stars, last pushed 5mo ago), licensed MIT. It adds 2,420 tokens to every session, about $0.0097 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-30.
ZoFiles CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ZoFiles CLAUDE.mdX1AOX1A/ZoFiles | Instructions file | 42 | 5mo ago | MIT | A | 2,420 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |