agentsclimarketplace

Generic docs

Skill Brothelmdzz/dev-harness/skills/generic-docs

通用文档更新 — 扫描代码变更自动更新 README 和 API 文档。From its SKILL.md

Install
npx -y skills add Brothelmdzz/dev-harness --skill generic-docs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

0.8 KB, as published. Nobody here has run it

通用文档更新

触发条件

本次代码变更涉及公开 API(Controller/路由/handler/导出函数)时执行,否则跳过。

执行流程

  1. 扫描变更: git diff --name-only $(git rev-parse --abbrev-ref origin/HEAD 2>/dev/null | sed 's|origin/||' || echo master)...HEAD 找到改动文件
  2. 识别 API 变更: 检查是否有路由/接口/导出的变化
  3. 更新文档:
    • 如果项目有 docs/ 目录 → 更新对应文档
    • 如果有 README.md 的 API 章节 → 更新
    • 如果有 OpenAPI/Swagger 文件 → 提示用户更新
  4. 产出变更说明: 列出更新了哪些文档

跳过条件

  • 纯内部重构(无 API 变更)
  • 只改了测试文件
  • 只改了配置文件

Keep looking

Skills are one crate of 609,689. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.