Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/AIGNE-io/doc-smith-skillsnpx agentmods add skills/aigne-io/doc-smith-skills/doc-smith-createWrote 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/skills/aigne-io/doc-smith-skills/doc-smith-create)<a href="https://agentmods.dev/skills/aigne-io/doc-smith-skills/doc-smith-create"><img src="https://agentmods.dev/badge/skills/aigne-io/doc-smith-skills/doc-smith-create/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/skills/aigne-io/doc-smith-skills/doc-smith-create"><img src="https://agentmods.dev/badge/skills/aigne-io/doc-smith-skills/doc-smith-create.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.00040 | $0.03409 |
| Opus 5.5 | $0.00016 | $0.01364 |
| Sonnet 5.5 | $0.00008 | $0.00682 |
| Haiku 4.5 | $0.00004 | $0.00341 |
Grade C, and why
doc-smith-create scanned grade C with 1 finding 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
1. `rm -rf .aigne/doc-smith/cache/task-status && mkdir -p .aigne/doc-smith/cache/task-status`(重建目录,清空旧状态) How it starts
The opening of the file, as written. The whole thing — 307 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DocSmith 文档生成
从工作区数据源生成和更新结构化文档。所有输出创建在 .aigne/doc-smith/ workspace 中。
约束
以下约束在任何操作中都必须满足。
1. Workspace 约束
- 所有操作前 workspace 必须存在且有效(config.yaml + sources)
- workspace 有独立 git 仓库,所有 git 操作在
.aigne/doc-smith/下执行 - workspace 不存在时按以下流程初始化:
mkdir -p .aigne/doc-smith/{intent,planning,docs,assets,cache}cd .aigne/doc-smith && git init- 创建 config.yaml(schema 见下方)
- 初始 commit
config.yaml schema:
workspaceVersion: "1.0"
createdAt: "2025-01-13T10:00:00Z" # ISO 8601
projectName: "my-project"
projectDesc: "项目描述"
locale: "zh" # 输出语言代码,初始化时必须向用户确认
projectLogo: ""
translateLanguages: []
sources:
- type: local-path
path: "../../" # 相对于 workspace
url: "" # 可选: git remote URL
branch: "" # 可选: 当前分支
commit: "" # 可选: 当前 commit
locale 确认规则:初始化 workspace 时,若用户未明确指定语言,必须用 AskUserQuestion 确认输出语言(如 zh、en、ja),不得默认写入。
2. 结构约束
document-structure.yaml必须符合下方 schema- 结构变更后必须通过
/doc-smith-check --structure - 结构变更后必须重建 nav.js:
node skills/doc-smith-build/scripts/build.mjs --nav --workspace .aigne/doc-smith --output .aigne/doc-smith/dist
document-structure.yaml schema:
project:
title: "项目名称"
description: "项目概述"
documents:
- title: "文档标题"
description: "简要摘要"
path: "/filename" # 必须以 / 开头
sourcePaths: ["src/main.py"] # 源文件路径(无 workspace: 前缀)
icon: "lucide:book-open" # 仅顶层文档必需
children: # 可选:嵌套文档
- title: "子文档"
description: "详细信息"
path: "/section/nested"
sourcePaths: ["src/utils.py"]
3. 内容约束
- 每篇文档必须有
docs/{path}/.meta.yaml(kind: doc, source, default) - HTML 必须生成在
dist/{lang}/docs/{path}.html docs/目录中不得残留.md文件(构建后删除)- 所有内部链接使用文档 path 格式(如
/overview/doc-gen),build.mjs 自动转换为相对 HTML 路径 - 资源引用使用
/assets/xxx绝对路径格式(build.mjs 自动转换为相对路径)
4. 人类确认约束
- 用户意图推断后必须经用户确认(使用 AskUserQuestion)
- 文档结构规划后必须经用户确认(使用 AskUserQuestion)
- 确认后若有变更需再次确认
What ships with it
1 file 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.
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 · 307 lines · 40 tokens per session scan C d9e39ee5d2f4
doc-smith-create is a skill published in the GitHub repository AIGNE-io/doc-smith-skills (9 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 40 tokens to every session and 3,409 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
doc-smith-create compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doc-smith-createAIGNE-io/doc-smith-skills | Skill | 9 | 7mo ago | Apache-2.0 | C | 40 | Claude Code |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 103 | Claude Code |