TianshangScribe: Instructions file for Codex

AGENTS.md

TianshangScribe AGENTS.md is an instructions file for Codex, OpenCode from Tianshang301/TianshangScribe. It costs 10,691 tokens per session, scanned A, original, Apache-2.0.

Project instructions for TianshangScribe, a command-line tool for creating, editing, filling, and converting Word, Excel, and PowerPoint documents.

In plain words
What is it for?
Use them when developing or reviewing TianshangScribe, including document editing, templates, LaTeX-style math, format conversion, and its agent integration.
Why use it?
They give coding agents the project's goals, naming rules, feature priorities, command-line design, and technical structure so changes follow the project's intended direction.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is Tianshang301/TianshangScribe's own configuration. It tells Codex and OpenCode how to work on TianshangScribe 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 TianshangScribe configures →

Reuse

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.

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

Made for: 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 TianshangScribe AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tianshang301/tianshangscribe/agents-md.svg)](https://agentmods.dev/instructions/tianshang301/tianshangscribe/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tianshang301/tianshangscribe/agents-md"><img src="https://agentmods.dev/badge/instructions/tianshang301/tianshangscribe/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 10,691 This file is loaded in full into every session.
When invoked 10,691 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.10691 $0.10691
Opus 5 $0.05346 $0.05346
Sonnet 5 $0.02138 $0.02138
Haiku 4.5 $0.01069 $0.01069

Measured 7d ago against content hash fb1d883da7ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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

AGENTS.md · 372 lines

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-scribescribe

二、核心功能矩阵

功能域 描述 优先级
基础 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 ✅

Read the full file on GitHub · 372 lines

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. 7d ago First seen · 372 lines · 10,691 tokens per session scan A fb1d883da7ae

Subscribe to this mod's changes

TianshangScribe AGENTS.md is an instructions file published in the GitHub repository Tianshang301/TianshangScribe (0 stars, last pushed 13d ago), licensed Apache-2.0. It adds 10,691 tokens to every session, about $0.0535 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.

Related

Other instructions, from other repositories

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

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

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

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

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,104 tokens