skills/harness/project-docs-workflow/SKILL.md
项目 docs 维护编排器。用于非 trivial 的开发任务、功能开发、bug 修复、重构、API 变更、跨模块修改前后:先扫描 docs/OVERVIEW.md、feature-*、reference-*,把相关文档作为半可信上下文;判断是否需要升级使用 project-analysis 做深度分析;实现完成后判断哪些文档受影响,并先询问用户确认后再更新。看到用户要“实现/修改/开发/修复”项目代码时,应优先触发此技能,而不是等用户主动提及 docs。
npx skillsauth add escapewu/skills project-docs-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
这是一个薄编排层。
它不替代 AGENTS.md 的规则,也不替代 project-analysis 的深度分析。它负责把两者接起来。
在代码实施前后,把项目文档工作流跑完整:
docs/ 里的相关文档,同时扫描 tasks/ 中的活跃 taskBoard 获取当前执行上下文project-analysisdocs/(SSOT),taskBoard 移入 tasks/archive/遇到下面这些场景,应主动使用本技能:
下面这些场景通常不要触发:
先检查:
docs/OVERVIEW.mddocs/feature-*.mddocs/reference-*.md.agents/skills/harness/harness-engineering-plan/tasks/ — 当前活跃的 taskBoard(提供执行上下文,不是 SSOT)优先用 Glob 找文件,再用 Read 读取候选文档。
匹配时重点看:
如果找到相关文档:
如果没找到相关文档:
project-analysis只在下面情况升级:
如果只是普通功能开发或局部 bug 修复:
project-analysis如果升级到 project-analysis:
update-doc 还是 new-docupdate-docnew-docfeature-* / reference-* / OVERVIEW.md代码实施阶段:
代码完成后,主动判断是否有 docs 影响。
重点判断这四类:
feature-xxx.md
reference-xxx.md
docs/OVERVIEW.md
AGENTS.md 的“历史教训”
如果没有实质变化:
如果确认文档已过时、缺失或与实现不一致:
如果用户确认 patch:
feature-xxx.mdreference-xxx.mddocs/OVERVIEW.md当 tasks/<module>/taskBoard.md 所有 milestone gate 通过后:
tasks/archive/<module>/taskBoard-<phase>.mddocs/feature/<module>/:
data-model.mddocs/reference/interfaces.mdREADME.md 或 design.mddocs/feature/<module>/ 目录,先建目录和 READMEdocs/feature/INDEX.md 的路由表核心原则:taskBoard 是过程文件(WIP),docs 是事实来源(SSOT)。过程结束→蒸馏→更新事实。
默认只维护这一套长期文档:
docs/feature-*.mddocs/reference-*.mddocs/OVERVIEW.md不要默认再造长期并行文档体系。
如果 project-analysis 产出了时序图、数据流图、性能观察:
feature-* / reference-* / OVERVIEW.mdupdate-docnew-docanalysis-only 作为默认返回形态在实施前,如果找到了相关 docs,可以简短说明:
在实施后,如果发现 docs 可能过时,要明确指出:
project-analysis。development
Use when working with the news fetcher REST API at <news-fetcher-host> for supported-site lookup, domain article discovery, URL fetching, batch fetch/crawl workflows, fetch history queries, and Bearer-authenticated integration examples.
development
create and refresh repository-specific development standards for an existing local codebase. use when the user wants to analyze a local repository, extract coding conventions from real files, generate docs/ai-dev-standards, create code review checklists, or update existing agents.md or claude.md files so future coding agents load the right standards before development. do not use for generic programming advice detached from a repository.
documentation
analyze postgresql or mysql database schemas from ddl files, schema-only dumps, migration sql, or read-only database metadata. use when the user wants table structure summaries, primary keys, foreign keys, indexes, inferred table relationships, er diagrams, dbml, mermaid erd, schema documentation, or database relationship analysis for postgres/mysql schemas.
tools
Replace with description of the skill and when Claude should use it.