ScientificFigureLibrary: Instructions file for Claude Code

AGENTS.md

ScientificFigureLibrary AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from xuzhougeng/ScientificFigureLibrary. It costs 918 tokens per session, scanned A, original, MIT.

Repository instructions for ScientificFigureLibrary, a TypeScript project for storing, finding, previewing, selecting, importing, and publishing reusable scientific figure assets. They describe project boundaries, important folders, implementation rules, and validation commands.

In plain words
What is it for?
Use them when changing the library, its MCP service, interface, storage, providers, build process, or tests.
Why use it?
They provide project-specific rules that help an agent modify the right files, preserve storage and publishing behaviour, and run tests safely.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md. Also seen: mentions Codex.

This is xuzhougeng/ScientificFigureLibrary's own configuration. It tells Claude Code, Codex and OpenCode how to work on ScientificFigureLibrary itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ScientificFigureLibrary configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xuzhougeng/ScientificFigureLibrary. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xuzhougeng/ScientificFigureLibrary/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/xuzhougeng/ScientificFigureLibrary

Made for: Claude Code, Codex, OpenCode.

Wrote 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.

agentmods badge for ScientificFigureLibrary AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xuzhougeng/scientificfigurelibrary/agents-md/github.svg)](https://agentmods.dev/instructions/xuzhougeng/scientificfigurelibrary/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/xuzhougeng/scientificfigurelibrary/agents-md"><img src="https://agentmods.dev/badge/instructions/xuzhougeng/scientificfigurelibrary/agents-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.

agentmods 80×15 button for ScientificFigureLibrary AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xuzhougeng/scientificfigurelibrary/agents-md"><img src="https://agentmods.dev/badge/instructions/xuzhougeng/scientificfigurelibrary/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 918 This file is loaded in full into every session.
When invoked 918 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00918 $0.00918
Opus 5 $0.00459 $0.00459
Sonnet 5 $0.00184 $0.00184
Haiku 4.5 $0.00092 $0.00092

Measured yesterday against content hash 69dbb78167bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-14, from the pricing page.

Security

Grade A, and why

ScientificFigureLibrary 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 yesterday.

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.

AGENTS.md · 44 lines

What it actually says

Repository instructions

适用于整个仓库。保持本文件简短,只放日常开发约束和按需阅读入口;详细设计、决策依据和任务进度放在对应文档中。

产品边界

  • SFL 负责可复用科学图资产及其浏览、检索、预览、选择、导入、发布和材料化;具体研究任务的组织、执行与持续管理由宿主 Agent 负责。
  • 不将跨会话绘图偏好自动应用、研究项目归档/投稿打包、论文主图/子图编排新增为 SFL 原生职责。图库自身的资产身份、版本和来源管理仍属于核心能力。
  • 新需求先判断管理对象和责任归属。混合需求只在 SFL 中实现图库职责内的部分;涉及产品范围变更时参阅 产品原则,不要因功能与绘图有关就扩大职责。

仓库导航

  • src/:MCP 服务、图库存储、Provider 和材料化逻辑;入口为 src/index.tssrc/server.ts
  • app/:MCP App 界面。tests/:Node 测试。scripts/:构建、目录生成、版本和打包脚本。
  • skills/:随插件分发给宿主的绘图指导。.wisp-plugin/.codex-plugin/.claude-plugin/.cursor-plugin/:各宿主插件配置。
  • 修改工具契约前阅读 PROTOCOL;修改存储、身份或 Provider 前阅读 全局图库架构
  • 安装与用户流程见 QUICKSTART用户手册。历史 worktree spec 中的路径、版本和临时授权不作为当前任务的默认指令。

实现约束

  • 使用现有 TypeScript ESM、严格类型检查和模块划分;修改源文件,通过构建生成 dist/
  • SFL 不执行用户绘图或下载的模板代码;执行由宿主完成,不能将材料化成功描述为绘图已验证。
  • 保留用户显式选择的全局 Library、不可变 Published Release 和 Provider 限定的精确身份;不要从当前项目目录推断权威图库。
  • 修改写入流程时保留既有 plan/apply、过期状态检查和重放语义;修改材料化时保留精确预览与确认契约,具体要求查阅协议。
  • 测试使用隔离临时目录和配置,不读写真实用户图库或绑定状态。
  • 工具契约、用户可见行为或宿主调用方式变化时,同步相关协议、手册或分发 Skill;不要把规划能力写成已实现。

常用命令与验证

使用 Node.js 22+ 和 npm;首次安装依赖运行 npm ci。命令以 package.json 为准。

场景 命令
定向测试 node --test tests/<name>.test.ts
完整测试(含版本同步检查) npm test
类型检查及构建 npm run build
构建及 MCP smoke npm run test:smoke
完整开发检查 npm run check
Markdown 链接检查 npm run docs:check-links -- <文件路径>
  • 按改动范围运行相关测试;影响服务接入或构建时补充 smoke。纯文档改动检查相关链接即可,不要求重跑完整测试。
  • 版本调整使用 npm run version:set -- <版本>,再运行 npm run version:check;打包入口查阅 package.json 中的 package:*
  • 交付时说明改动、实际运行的验证及未验证项;不要将构建或 smoke 通过等同于真实宿主验收通过。
Changes

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.

  1. yesterday First seen · 44 lines · 918 tokens per session scan A 69dbb78167bd

Subscribe to this mod's changes

ScientificFigureLibrary AGENTS.md is an instructions file published in the GitHub repository xuzhougeng/ScientificFigureLibrary (71 stars, last pushed yesterday), licensed MIT. It adds 918 tokens to every session, about $0.0046 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-09-13.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

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.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens