build-workspace-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBuild Workspace Docs
构建工作区文档
Goal
目标
Keep workspace documentation in sync with the skills catalog after adding, removing, or curating skills.
在新增、移除或整理技能后,保持工作区文档与技能目录同步。
Guardrails
注意事项
- Always use before regenerating docs to preview what will change.
--dry-run - Only run from inside an initialized library workspace (a directory with ).
.workspace.json - Never hand-edit the generated sections of README.md or WORK_AREAS.md. The CLI will overwrite them.
- Use to capture structured results for automation pipelines.
--format json
- 重新生成文档前务必使用预览即将变更的内容。
--dry-run - 仅在已初始化的库工作区(包含的目录)内运行该命令。
.workspace.json - 切勿手动编辑README.md或WORK_AREAS.md的生成部分,CLI会覆盖这些内容。
- 使用为自动化流水线捕获结构化结果。
--format json
Workflow
工作流程
- Preview what would change.
bash
npx ai-agent-skills build-docs --dry-run- Regenerate the docs.
bash
npx ai-agent-skills build-docs- Verify the output.
bash
npx ai-agent-skills build-docs --dry-run --format jsonThe JSON output includes to tell you whether docs were already up to date.
currentlyInSync- 预览即将发生的变更。
bash
npx ai-agent-skills build-docs --dry-run- 重新生成文档。
bash
npx ai-agent-skills build-docs- 验证输出。
bash
npx ai-agent-skills build-docs --dry-run --format jsonJSON输出包含字段,可告知你文档是否已经是最新版本。
currentlyInSyncWhen to Run
运行时机
- After ,
add,catalog, orvendorcommands that change the skills catalog.curate - After bulk imports from a remote library.
- Before committing workspace changes to git.
- 在执行了会修改技能目录的、
add、catalog或vendor命令之后。curate - 从远程库批量导入之后。
- 向git提交工作区变更之前。
Gotchas
注意要点
- Running outside a workspace will fail with a clear error. Use to create one first.
init-library - The generated docs use HTML comment markers () as boundaries. Do not remove these markers from the template sections.
<!-- GENERATED:...:start/end -->
- 在工作区外运行会报错且提示明确错误信息,可先使用创建工作区。
init-library - 生成的文档使用HTML注释标记()作为边界,请勿从模板部分删除这些标记。
<!-- GENERATED:...:start/end -->