关于 project-docs-maintainer
面向仓库维护者的文档维护 Skill,提供 Skills README 审查和路线图检查或限范围更新模式。流程要求先只读检查,再进行编辑,并规定报告格式与文件范围。
主要功能
- 01README 维护审查
- 02路线图验证与规范化
- 03编辑前先只读检查
- 04按模式限制更新范围
- 05生成 Markdown 和 JSON 报告
适用场景
- 01检查 Skills 仓库 README 的结构问题
- 02验证清单式 ROADMAP.md
- 03应用审查通过的文档修复
- 04确认文档修改后的状态
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ gaelic-ghost/ productivity-skills --skill project-docs-maintainer安装后在 Claude Code 中输入/project-docs-maintainer确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
agents/openai.yamlconfig/roadmap-customization.template.yamlreferences/checks-common.mdchecks-js-ts.mdchecks-python.mdchecks-rust.mdchecks-swift.mddiscoverability-rules.mdfix-policies.mdoutput-contract.mdprofile-model.mdroadmap-automation-prompts.mdroadmap-config-schema.mdroadmap-customization.mdsection-schema.mdseed-artifacts.mdskills-readme-maintenance-automation-prompts.mdstyle-rules.mdverification-checklist.mdscripts/roadmap_alignment_maintainer.pyskills_readme_maintenance.pytests/test_roadmap_alignment_maintainer.pytest_skills_readme_maintenance.py详细介绍
Project Docs Maintainer
使用一个规范的技能入口来维护文档,然后选择匹配的模式。
输入
mode=skills_readme_maintenance- 必需:
--workspace <path> - 可选:
--repo-glob <glob>、可重复使用的--exclude <path>、--apply-fixes
- 必需:
mode=roadmap_maintenance- 必需:
--project-root <path>、--run-mode <check-only|apply> - 可选:
--roadmap-path <path>
- 必需:
- 在所有新提示词中使用规范的模式名称。
- 将
skills_readme_alignment仅视为兼容用途。
工作流
- 根据用户请求选择规范的
mode。 - 首先运行只读模式:
skills_readme_maintenance:先审计roadmap_maintenance:先使用--run-mode check-only
- 检查发现的问题,并将修复范围限定在所选模式内。
- 如果用户要求编辑,则运行相应的受限写入路径:
skills_readme_maintenance:--apply-fixesroadmap_maintenance:--run-mode apply
- 重新运行相同模式,确认是否仍有问题。
- 返回该模式对应的 Markdown 和 JSON 报告结构。
skills_readme_maintenance
- 脚本:
scripts/skills_readme_maintenance.py - 范围:维护
*-skills仓库中的README.md - 参考资料:
references/output-contract.mdreferences/section-schema.mdreferences/discoverability-rules.mdreferences/profile-model.md
roadmap_maintenance
- 脚本:
scripts/roadmap_alignment_maintainer.py - 范围:验证、迁移并受限规范清单式
ROADMAP.md - 参考资料:
references/roadmap-customization.mdreferences/roadmap-config-schema.md
输出约定
skills_readme_maintenance- 返回 Markdown 和 JSON,包含:
run_contextrepos_scannedprofile_assignmentsschema_violationscommand_integrity_issuesfixes_appliedpost_fix_statuserrors
- 如果没有问题且没有错误,则准确输出
No findings.
- 返回 Markdown 和 JSON,包含:
roadmap_maintenance- 返回 Markdown 和 JSON,包含:
run_contextfindingsapply_actionserrors
- 如果没有发现问题、没有应用操作且没有错误,则准确输出
No findings.
- 返回 Markdown 和 JSON,包含:
防护措施
- 绝不自动提交、自动推送或创建 PR。
- 绝不编辑源代码、清单文件、锁文件或 CI 文件。
- 在
skills_readme_maintenance中,将编辑范围限定为README.md,以及明确获准插入到AGENTS.md的代码片段。 - 在
roadmap_maintenance中,apply模式只能编辑目标ROADMAP.md。 - 将已弃用的别名排除在主要流程之外;仅在处理旧版提示词时提及。
参考资料
references/output-contract.mdreferences/skills-readme-maintenance-automation-prompts.mdreferences/roadmap-automation-prompts.mdreferences/profile-model.mdreferences/section-schema.mdreferences/discoverability-rules.mdreferences/fix-policies.mdreferences/roadmap-customization.mdreferences/roadmap-config-schema.md
评论
支持 Markdown