跳到正文
Skillpedia
技术文档81k · #1620

doc-gen

它能做什么

这项技能为项目创建和更新文档,并检查“文档偏移”,即已写的文档与代码不再一致的情况。适合希望文档保持最新的团队。

适用场景

  • ✓当你要求为项目编写或更新文档时。
  • ✓当你想知道文档是否仍与代码一致时。
  • ✓当你希望按计划定期检查文档时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-docs/skills/doc-gen/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-docs/skills/doc-gen/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请更新我项目的文档,并告诉我哪些地方已经和代码不一致。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能把文档任务发送给 Ruflo 工作者,它可以处理 API 文档或整个项目。它会比较当前代码与已有文档,并能保存方法以便之后使用。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Generate docs via MCP worker dispatch: mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch({ trigger: "document" })

For continuous doc maintenance via CronCreate: CronCreate({ schedule: "0 */2 * * *", prompt: "Run document worker" })

Detect drift by comparing current code against existing docs and flagging inconsistencies.

Scoped generation:

  • API docs: npx @claude-flow/cli@latest hooks worker dispatch --trigger document --context api
  • Full project: npx @claude-flow/cli@latest hooks worker dispatch --trigger document --context full

Store the approach: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "doc-pattern", value: "APPROACH", namespace: "patterns" })

常见问题

它可以按计划运行吗?

可以。一个定时器可以运行文档任务,但只在会话保持打开时运行。

什么是文档偏移?

指已写的文档描述的代码已经发生变化,两者不再一致。

我能只针对项目的一部分吗?

可以。你可以把运行范围限制在 API 文档,或选择整个项目。

详情

作者的原始描述

Generate and maintain documentation with drift detection. Use when the user asks to write/update/refresh docs, detect doc drift against code, or schedule recurring documentation maintenance.

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1620
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能