long-document

long-document is a skill for Claude Code, Codex from hanmirage/deepdepcat. It costs 65 tokens per session (495 once invoked), scanned A, original, Apache-2.0.

A staged writing template for long documents such as reports or books. It requires an outline first, writes one chapter at a time, then checks the complete document for consistency and citation links.

In plain words
What is it for?
Use it to plan, draft and review documents with at least three chapters or about 1,500 Chinese characters, then export them as DOCX or PDF.
Why use it?
It reduces the chance that a long document becomes disorganized or exceeds the available working context. The final checks help find repeated text, missing sections, numbering errors and broken citations.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/hanmirage/deepdepcat/long-document
Any agent
npx skills add hanmirage/deepdepcat --skill long-document
Clone the repo
git clone --depth 1 https://github.com/hanmirage/deepdepcat

Made for: Claude Code, Codex.

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 long-document

README.md
[![agentmods](https://agentmods.dev/badge/skills/hanmirage/deepdepcat/long-document.svg)](https://agentmods.dev/skills/hanmirage/deepdepcat/long-document)
Your own site
<a href="https://agentmods.dev/skills/hanmirage/deepdepcat/long-document"><img src="https://agentmods.dev/badge/skills/hanmirage/deepdepcat/long-document.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00065 $0.00495
Opus 5 $0.00032 $0.00247
Sonnet 5 $0.00013 $0.00099
Haiku 4.5 $0.00006 $0.00049

Measured 5d ago against content hash 95a8effade2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

long-document 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 5d 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.

.deepdepcat/skills/long-document/SKILL.md · 29 lines

What it actually says

长文档分段写作模板

流程(三段式,缺一不可)

  1. 先大纲:用 todo_write 建立章节清单(标题 + 每章要点 + 预期来源);先给用户/自己确认结构,再动笔。
  2. 分章写:一次只写一章(≤800 字/章),每章结束用 docx_edit 或累计 docx_generate 追加;不要在一条回复里写完整个文档。
  3. 汇总校验:全部章节完成后,用 doc_consistency 跑跨章一致性校验(跨章重复段落/结构完整性/章节编号连续性),按报告修问题;引用用 citation_link 校验(0 断链);全部通过后再导出成品(docx/pdf)。

写作规则

  • 每章开头一句「本章目的」,结尾一句「小结」;
  • 数据与引用标注来源(资料夹条目/URL/访问日期);无法查证的写「未证实」;
  • 章节间逻辑递进,禁止复制粘贴前文;
  • 标题层级统一(一级/二级/三级),编号不跳号。

导出

  • 长文 → docx_generate(可用 template= 复用样式);
  • 样张/排版预览 → pdf_generate
  • 内容修正 → docx_edit(保留修订模式可用)。
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. 5d ago First seen · 29 lines · 65 tokens per session scan A 95a8effade2b

Subscribe to this mod's changes

long-document is a skill published in the GitHub repository hanmirage/deepdepcat (10 stars, last pushed 16d ago), licensed Apache-2.0. It adds 65 tokens to every session and 495 once invoked, about $0.0003 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 skills, from other repositories

obsidian

Read, search, and create Markdown notes inside an Obsidian vault on disk.

AtomicBot-ai/Atomic-Chat · 20 tokens

pdf

Manipulate PDF files — merge, split, extract pages/text, PDF↔images, OCR, info — via the qpdf / poppler / ocrmypdf CLIs. Use to combine, slice, convert, or OCR PDFs.

AtomicBot-ai/Atomic-Chat · 56 tokens

pandoc

Convert documents between formats (Markdown, DOCX, HTML, PDF, RST, EPUB, LaTeX) via the pandoc CLI. Use to transform a document from one format to another.

AtomicBot-ai/Atomic-Chat · 45 tokens

xlsx

Create and edit Excel .xlsx workbooks (sheets, cells, formulas, formatting) via Python openpyxl. Use to generate spreadsheets or write/update cells. Reading is via os.fs.readdocument.

AtomicBot-ai/Atomic-Chat · 44 tokens

notion

Read and write Notion pages, databases (data sources), and blocks via the Notion REST API.

AtomicBot-ai/Atomic-Chat · 24 tokens

tencent-docs

腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1) 创建各类在线文档(文档/Word/Excel/幻灯片/思维导图/流程图/智能表格/收集表)(2) 管理知识库空间(创建空间、查询空间列表)(3) 管理空间节点、文件夹结构 (4) 读取/搜索文档内容 (5) 编辑操作智能表 (6) 编辑操作在线文档 (7) 文件管理(重命名、移动、删除、复制、导入导出)(8) 网页剪藏、本地文件/html/文档上云。.

Pinvou/pinvou-agent · 210 tokens