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 3mo 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.
- 3mo 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 7mo 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.
doc-writer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doc-writerNikolahuang/nova-cli | Skill | 14 | 7mo ago | MIT | A | 17 | Claude Code, Codex |
| pandadoc-docsPandaDoc/mcp-server-guide | Skill | 3 | 2d ago | MIT | A | 55 | Claude Code |
| xlsxmudler/LocalAI | Skill | 51k | today | MIT | A | 37 | Claude Code, Codex |
| docxmudler/LocalAI | Skill | 51k | today | MIT | A | 39 | Claude Code, Codex |
| pptxmudler/LocalAI | Skill | 51k | today | MIT | A | 40 | Claude Code, Codex |
| pdfmudler/LocalAI | Skill | 51k | today | MIT | A | 35 | Claude Code, Codex |
| wiki_submitwecode-ai/Wegent | Skill | 897 | today | Apache-2.0 | A | 21 | Claude Code, Codex |