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/tenglvjun/mktero/agents-mdgit clone --depth 1 https://github.com/tenglvjun/mkteroWhat 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.01711 | $0.01711 |
| Opus 5 | $0.00856 | $0.00856 |
| Sonnet 5 | $0.00342 | $0.00342 |
| Haiku 4.5 | $0.00171 | $0.00171 |
Grade A, and why
mktero AGENTS.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 3d 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 — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file applies to the entire repository.
Project overview
Mktero is a restartless Zotero extension for Zotero 7 through 10. It reads a local PDF attachment, sends the PDF to MinerU, and opens the returned Markdown and images in a read-only Zotero tab.
The project is plain JavaScript, not TypeScript. Source files use ES modules,
while esbuild bundles the two runtime entry points as browser IIFEs for
Firefox 115. Zotero supplies the privileged runtime globals used by the
extension, including Zotero, IOUtils, PathUtils, Components,
ChromeUtils, and Services.
Commands
Use the Node.js version in .node-version (currently 24.15.0); it is the
shared local and CI version source. Do not use Node.js 25, which is outside the
supported dependency engine range.
npm ci
npm run check
npm test
npm run build
- Run one test file with
node --test test/<name>.test.jswhile iterating. npm run checksyntax-checks every source module explicitly. Add new source files to thecheckscript inpackage.json.npm run buildrecreatesbuild/package, the reproduciblebuild/mktero-<version>.xpi, its.sha256checksum, andbuild/updates.json. Bothbuild/andnode_modules/are generated and ignored; never edit or commit them.scripts/build.mjshas an explicit list of copied runtime assets. Update it when adding a non-imported file required by the packaged extension.
Before handing off a change, run the narrow tests for the touched behavior,
then npm run check, npm test, and npm run build unless the change is
documentation-only. Report any command that could not be run.
Repository map
manifest.json: Zotero compatibility, extension ID, version, and update URL.prefs.js: defaults for every Zotero preference.src/bootstrap.js: extension lifecycle and dependency composition. It owns startup/shutdown, conversion cancellation, tabs, toolbar actions, context menus, preferences, and cache.src/config/: preference keys and preference-pane registration.src/core/: provider-independent conversion orchestration and progress.src/extractors/: adapters from Zotero items or MinerU results to the core document shape.src/mineru/: MinerU API client, parsing profile, ZIP extraction, binary helpers, and Markdown normalization.src/cache/: content-addressed Markdown and image cache under the active Zotero profile.src/platform/: Zotero/runtime adapters for aborting requests.src/markdown/: pure Markdown parsing, analysis, normalization, rendering, and safety logic.src/editor/: CodeMirror 6 read-only presentation, image previews, and citation/table/figure interactions.src/ui/: Zotero toolbar, item menu, tab presenter/view, loading state, and preference controller.ui/: packaged XHTML, CSS, and icons.test/: Node test runner coverage, with jsdom or linkedom where DOM behavior is needed.
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.
- 3d ago First seen · 152 lines · 1,711 tokens per session scan A 7bdf747e336d
mktero AGENTS.md is an instructions file published in the GitHub repository tenglvjun/mktero (26 stars, last pushed 3d ago), licensed MIT. It adds 1,711 tokens to every session, about $0.0086 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-30.
Other instructions, from other repositories
ailang-parse CLAUDE.md
Claude Code instructions for sunholo-data/ailang-parse, covering claude.md — ailang parse, project purpose, project structure, authoring documents in markdown and ailang language & toolchain reference.
go-docs-mcp CLAUDE.md
Instructions for drolosoft/go-docs-mcp, covering go-docs-mcp, build & run, architecture, key decisions and tools.
docsift CLAUDE.md
Instructions for anishmoncivarghese/docsift, covering docsift, key documents (read before making product decisions), commands, architecture (src layout, package docsift) and hard rules.
tablepack AGENTS.md
Instructions for kujiangmudao/tablepack, covering two user paths, multimodal requirement, environment, hard requirements (never skip) and qc checklist (every pdf).
vkr-builder CLAUDE.md
Instructions for maxbarsukov/vkr-builder, covering vkr-builder, как себя вести and основные команды.
cdxml-toolkit-community CLAUDE.md
Claude Code instructions for ZiChenWang114514/cdxml-toolkit-community, covering cdxml-toolkit — agent reference, what this is, key rules, mcp server and tool reference.