document-compiler

document-compiler is a skill for Claude Code, Codex from Ghostricke9/StudyAgent. It costs 26 tokens per session (668 once invoked), scanned A, original, MIT.

A document-assembly skill that combines completed chapters and exercises into one Markdown textbook, with a cover, contents page, consistent formatting, and optional learning roadmap.

In plain words
What is it for?
Use it to review terminology and code style, add a standard cover, build a contents list, check chapter length, and save the finished textbook.
Why use it?
It removes the manual work of checking consistency and arranging many separate files into a readable book.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review terminology and code style, add a standard cover, build a contents list, check chapter length, and save the finished textbook.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ghostricke9/studyagent/document-compiler
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.

Any agent
npx skills add Ghostricke9/StudyAgent --skill document-compiler
Clone the repo
git clone --depth 1 https://github.com/Ghostricke9/StudyAgent

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ghostricke9/studyagent/document-compiler/github.svg)](https://agentmods.dev/skills/ghostricke9/studyagent/document-compiler)
Your own site
<a href="https://agentmods.dev/skills/ghostricke9/studyagent/document-compiler"><img src="https://agentmods.dev/badge/skills/ghostricke9/studyagent/document-compiler/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 document-compiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/ghostricke9/studyagent/document-compiler"><img src="https://agentmods.dev/badge/skills/ghostricke9/studyagent/document-compiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 668 The whole file, excluding the scripts and references it only reads on demand.
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.00026 $0.00668
Opus 5.5 $0.00010 $0.00267
Sonnet 5.5 $0.00005 $0.00134
Haiku 4.5 $0.00003 $0.00067

Measured 1mo ago against content hash a6b216f254d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

document-compiler 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/word_counter.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/document-compiler/SKILL.md · 86 lines

What it actually says

技能:汇编最终教材

何时使用

当你已经完成所有章节的编撰和练习题的生成,需要将它们组装成一本完整、排版精良的教学教材时,调用此技能。

子资源文件

本技能目录下附带辅助资源,可按需使用:

文件 用途 何时使用
templates/cover.md 教材封面模板 组装教材时引用,生成统一的封面页
templates/style_guide.md 排版风格指南 统稿时参考,确保全书风格一致
scripts/word_counter.py 字数统计脚本 执行 python {skill_dir}/scripts/word_counter.py <file> 检查篇幅

汇编步骤

  1. 统稿:阅读所有已生成的章节,检查术语一致性

    • 同一概念在不同章节是否用了相同叫法
    • 示例代码的变量命名风格是否一致
    • 参考 templates/style_guide.md 中的规范
  2. 生成封面:为教材添加标准封面

    • 使用 templates/cover.md 中的模板
    • 填入主题名称、章节数、生成日期
  3. 组装目录:为整本教材生成目录

    • 列出所有章节标题和对应页码(可用 Markdown 锚点替代)
  4. 编排顺序:按以下顺序组装最终教材:

    封面 → 目录 → 学习路线图(如有)→ 第1章 → 练习题1
    → 第2章 → 练习题2 → ... → 附录/参考资料
    
  5. 控制篇幅:统稿后如果某章过长或过短,可以用 scripts/word_counter.py 检查并调整

输出格式

最终教材使用以下 Markdown 结构:

# [教材名称]

> **编著**: StudyHelper Agent
> **日期**: YYYY-MM-DD
> **章节**: N章 | **配套练习**: N套

---

## 目录

1. [第1章: 标题](#第1章)
   - 练习题
2. [第2章: 标题](#第2章)
   - 练习题
...

---

## 第1章: [标题]

[正文内容]

---

## 练习题: [第1章名称]

[练习题内容]

---

## 第2章: [标题]

...

完成动作

汇编完成后,使用 save_document 将完整教材保存为 Markdown 文件。

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 86 lines · 26 tokens per session scan A a6b216f254d8

Subscribe to this mod's changes

document-compiler is a skill published in the GitHub repository Ghostricke9/StudyAgent (6 stars, last pushed 5mo ago), licensed MIT. It adds 26 tokens to every session and 668 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

stage-dsl

The map for reading and editing an OpenMAIC stage document with readstage, patchstage, and grepstage. Load it before patching a structure you have not patched before, when patchstage rejects an operation, or whenever the path from a stage, outline, scene, content object, or action to the field you need is uncertain.…

THU-MAIC/OpenMAIC · 104 tokens

pptx-import

A method for adding an uploaded PowerPoint presentation to an existing classroom as extra pages while keeping the slides' original layout. PowerPoint is Microsoft's presentation file format.

THU-MAIC/OpenMAIC · 125 tokens

good-docs-writing

Writing style guide derived from Modal's documentation voice. Apply when writing or editing docs, guides, tutorials, or technical prose that should read direct, second-person, confident, low-jargon, and example-first. Use to draft new docs in this voice or to revise existing prose toward it.

ComposioHQ/composio · 63 tokens

typescript-providers

Implement, modify, test, or document TypeScript provider packages under ts/packages/providers, including framework adapters for OpenAI, Anthropic, Google, LangChain, Mastra, Vercel, LlamaIndex, Cloudflare, Claude Agent SDK, and TypeSafe. Use for provider-specific TS work; do not use for core-only changes.

ComposioHQ/composio · 73 tokens

annotate-paper

Read the open paper and write study annotations into its PDF with zotero-cli - a context box on the title, a four-part summary on the abstract, role-coded abstract highlights, one box per figure panel with a teaching comment, colour-coded body highlights, and a reading note. Use when asked to "annotate", "read and…

54yyyu/zotero-mcp · 82 tokens

dev-camp-deck

Creates a professional PowerPoint presentation about a Copilot Dev Camp lab or topic. Researches Microsoft Learn documentation, organizes content into a slide structure, and generates a polished deck with speaker notes. Use when user asks to "create a presentation on", "make a deck about", "build a slideshow for"…

microsoft/copilot-camp · 91 tokens