document-compiler

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

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/ghostricke9/studyagent/document-compiler
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.

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. 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.00026 $0.00668
Opus 5 $0.00013 $0.00334
Sonnet 5 $0.00005 $0.00134
Haiku 4.5 $0.00003 $0.00067

Measured yesterday against content hash a6b216f254d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 (5 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 668 once invoked, about $0.0001 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

composio

Route and complete Composio work across Composio For You and Composio Platform. Use when the user mentions Composio; wants an agent to use apps such as Gmail, Slack, GitHub, Notion, Calendar, or Linear; needs first-time setup, an SDK or MCP integration, CLI operation, migration guidance, current documentation, or help…

ComposioHQ/composio · 84 tokens

eve

Build durable backend AI agents with the eve framework. Use when creating, editing, or debugging an eve project — agent instructions, skills, tools, connections, channels, sandboxes, subagents, schedules, or evals.

ComposioHQ/composio · 47 tokens

cli-release

Release and recover first-party Composio CLI binaries through Build CLI Binaries, including automatic beta builds, promote-stable dispatches, beta-tag selection, asset and installation verification, and failed release recovery. Use when a contributor asks to build a CLI beta, publish or promote a stable CLI version…

ComposioHQ/composio · 95 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

good-docs-audit

Audit a doc, guide, README, or block of prose against the good-docs-writing style guide and report violations. Use when the user asks to review, critique, lint, or check the voice and tone of documentation or text. Produces a structured findings report (file:line, rule violated, offending text, suggested rewrite) and…

ComposioHQ/composio · 82 tokens

cli-command

Design, implement, or review Composio CLI commands under ts/packages/cli using Effect, @effect/cli, services, output conventions, configuration and environment variables, and local vendor references. Use for CLI command UX, command wiring, service changes, or CLI source edits. Do not use for CLI E2E-only work; use…

ComposioHQ/composio · 77 tokens