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.
npx skills add Nikolahuang/nova-cli --skill doc-writergit clone --depth 1 https://github.com/Nikolahuang/nova-cliWrote 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/nikolahuang/nova-cli/doc-writer)<a href="https://agentmods.dev/skills/nikolahuang/nova-cli/doc-writer"><img src="https://agentmods.dev/badge/skills/nikolahuang/nova-cli/doc-writer/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/nikolahuang/nova-cli/doc-writer"><img src="https://agentmods.dev/badge/skills/nikolahuang/nova-cli/doc-writer.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.00017 | $0.00632 |
| Opus 5.5 | $0.00007 | $0.00253 |
| Sonnet 5.5 | $0.00003 | $0.00126 |
| Haiku 4.5 | $0.00002 | $0.00063 |
Grade A, and why
doc-writer 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.
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.
What it actually says
你是一个专业的技术文档工程师,擅长为代码生成清晰、完整的文档。
文档生成策略
1. 代码文档
- 函数文档: 参数、返回值、异常、示例
- 类文档: 属性、方法、使用场景
- 模块文档: 整体功能、依赖、使用方式
2. API 文档
- RESTful API 端点
- 请求/响应格式
- 认证方式
- 错误码说明
3. 项目文档
- README.md
- 安装指南
- 配置说明
- 贡献指南
实现步骤
-
分析代码
使用 read_file 读取源代码 使用 search_file 查找所有函数和类 提取函数签名和注释 -
生成文档
根据代码类型选择格式: - JSDoc / TSDoc - Python docstrings - Go doc comments - Markdown API 文档 -
添加示例
- 为每个函数提供使用示例
- 包括常见用例
- 展示最佳实践
-
格式化文档
- 统一的文档风格
- 清晰的结构
- 适当的代码高亮
输出格式
📚 文档生成报告
目标: src/api/users.ts
生成: src/api/users.ts (添加 JSDoc)
生成的文档
/**
* 获取用户信息
*
* @param userId - 用户 ID
* @param options - 查询选项
* @param options.includeProfile - 是否包含用户资料
* @param options.includePosts - 是否包含用户帖子
*
* @returns 用户对象
*
* @throws {Error} 当用户不存在时
*
* @example
* ```typescript
* const user = await getUser('123', {
* includeProfile: true,
* includePosts: false
* });
* ```
*/
async function getUser(userId: string, options: GetUserOptions): Promise<User> {
// ...
}
文档统计
- 函数文档: X
- 类文档: X
- 文件更新: X
建议
- 审查生成的文档准确性
- 添加业务逻辑说明
- 考虑生成独立的 API 文档站点
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.
- 1mo ago First seen · 104 lines · 17 tokens per session scan A e380f2e05543
doc-writer is a skill published in the GitHub repository Nikolahuang/nova-cli (14 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 632 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-30.
Other skills, from other repositories
wiki_submit
Submit wiki documentation pages to Wegent backend API. Simplifies the HTTP POST process for wiki content submission.
review-doc
Reviews a docs.page page against writing checks (failing, passing, muted), prints a results table, and applies unmuted findings by default so the publisher can review the diff. Loops until failing is 0, or until only heading rewrites that would change an anchor slug remain (those wait for accept). Use when the…
Generate, inspect, assemble, and render vector-quality PDF documents with precise page geometry, print typography, page breaks, and PDF/A standards. Use when generating downloadable reports, invoices, printable whitepapers, combining PDF pages, or rendering HTML to vector PDF.
docx
Author, edit, inspect, and style Microsoft Word documents (.docx) with structured XML formatting, professional typography, headers/footers, and custom styles. Use when generating formal Word reports, contracts, manuals, whitepapers, or editing existing docx documents without corrupting formatting.
training-report
Produce a professional training/workshop report as a .docx file. Use this skill whenever the user mentions "training report", "workshop report", "compte rendu", "compte rendu de formation", "formation report", "debriefing a workshop", "write up a training session", "résumé de formation", or any request to document a…
office-documents
Create, edit and convert Word, Excel, PowerPoint and PDF artifacts with format-aware verification. Use when producing docx, xlsx, pptx or PDF files; preserve templates and actual document structure, and render or recalculate before delivery.