Borrowing it
Nothing to install: this file belongs to Tianshang301/TianshangScribe. 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/Tianshang301/TianshangScribe/main/AGENTS.mdgit clone --depth 1 https://github.com/Tianshang301/TianshangScribeWrote 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/tianshang301/tianshangscribe/agents-md)<a href="https://agentmods.dev/instructions/tianshang301/tianshangscribe/agents-md"><img src="https://agentmods.dev/badge/instructions/tianshang301/tianshangscribe/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.
<a href="https://agentmods.dev/instructions/tianshang301/tianshangscribe/agents-md"><img src="https://agentmods.dev/badge/instructions/tianshang301/tianshangscribe/agents-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.10691 | $0.10691 |
| Opus 5.5 | $0.04276 | $0.04276 |
| Sonnet 5.5 | $0.02138 | $0.02138 |
| Haiku 4.5 | $0.01069 | $0.01069 |
Grade A, and why
TianshangScribe 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 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 — 372 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
项目名称:天殇·书契(TianshangScribe)
定位:跨平台命令行 Office 文档处理工具,支持 Word、Excel、PowerPoint 的创建、编辑、模板填充、格式转换,融入 LaTeX 风格排版标记。内置原生 OMML 数学公式渲染引擎与 MCP Server(AI Agent 集成)。
面向用户:开发者、运维人员、自动化脚本编写者、AI Agent 开发者。
开发原则:Unix 哲学(小而专、可组合)、管道友好、声明式排版、高性能。
一、项目愿景与命名
- 中文名:天殇·书契
“书契”出自《周易·系辞下》,指文书、契约,涵盖文字(Word)、簿记(Excel)、展示(PPT)三大 Office 文件类型。 - 英文名:
TianshangScribe
Scribe意为“文书、抄写员”,直接暗示文档处理功能,符合 CLI 工具定位,简洁易读。 - 包名建议:
tianshang-scribe(npm/pip/cargo 通用),命令入口tianshang-scribe或scribe。
二、核心功能矩阵
| 功能域 | 描述 | 优先级 |
|---|---|---|
| 基础 CRUD | 创建空白文档 / 打开文档 / 保存 / 另存 | P0 ✅ |
| 内容编辑 | 添加文本、表格、图片、分页符;删除指定元素;修改现有内容 | P0 ✅ |
| 样式与排版 | 字体、字号、颜色、加粗、斜体、对齐、行距、段落缩进、标题层级、LaTeX 风格标记、中西文分离字体 | P0 ✅ |
| 数学公式 | LaTeX → OMML 原生渲染,110+ 符号,\frac \sqrt \sum \int,AMS/Springer 字体规范,--math-font 可配置渲染字体(默认 Cambria Math,支持 Times New Roman 等 MathType 风格衬线),--math-mtef 以 MathType OLE 对象(MTEF)嵌入 |
P0 ✅ |
| 模板填充 | 用 JSON/CSV/YAML 数据源填充占位符 {{key}},保留原样式,支持 {{#each}} 循环、{{#if}} 条件 |
P0 ✅ |
| 格式转换 | Word ↔ PDF/Markdown/HTML;Excel ↔ CSV/JSON/HTML;PPT → PDF/图片序列PDF: office2pdf(主,~2MB)+ LibreOffice(回退) | P0 ✅ |
| MCP Server | stdio + SSE + Streamable HTTP 三传输,官方 mcp SDK 2.x,14 tools(7 统一:create/edit/fill/convert/extract/validate/compare + 5 专用:create_excel_workbook/edit_excel_workbook/create_presentation/edit_presentation/analyze_excel_data + 2 对比/检查:compare_excel_workbooks/extract_presentation_data),认证/限流/指标,Tool Search(SEP-1821,tools/list 支持 query 参数),Dify/Coze 可接入 |
P1 ✅ |
| 合并与拆分 | 多个文档合并为一个(Word/Excel/PPT 均支持);拆分:当前仅 Excel 支持 --split by-sheet 按工作表拆分,Word 按页 / PPT 按幻灯片拆分待实现 |
P1 ✅(合并 ✅;拆分仅 Excel) |
| 保护与元数据 | 设置/解除密码保护;读写作者、标题等文档属性 | P1 ✅ |
| 高级结构操作 | Excel 工作表增删重命名;PPT 幻灯片增删移动;Word 目录生成、分节 | P1 ✅ |
| 批量与管道 | 支持 stdin/stdout、退出码规范 | P1 ✅ |
| 批注与修订 | Word 添加批注(--comment)✅;PPT 演讲者备注(--notes)✅;开启修订(track changes)待实现 |
P2 🚧 |
| 图表与媒体 | Excel 创建图表;PPT 压缩媒体、动画设置 | P2 ✅ |
| 批量增强 | 通配符递归、--batch 模式 |
P2 ✅ |
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 · 372 lines · 10,691 tokens per session scan A fb1d883da7ae
TianshangScribe AGENTS.md is an instructions file published in the GitHub repository Tianshang301/TianshangScribe (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 10,691 tokens to every session, about $0.0428 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-31.
TianshangScribe AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| TianshangScribe AGENTS.mdTianshang301/TianshangScribe | Instructions file | 0 | 2mo ago | Apache-2.0 | A | 10,691 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |