audit-library-health
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAudit Library Health
审核技能库健康度
Goal
目标
Verify that a skills library is consistent, up-to-date, and ready to share or install from.
验证技能库具备一致性、时效性,可直接用于共享或安装。
Guardrails
使用规范
- Always use for structured output when automating health checks.
--format json - Always use before running
--dry-runto check if docs are already in sync.build-docs - Never push a library to a shared repo without passing and
validatefirst.doctor - Use to limit output when inspecting large catalogs.
--fields
- 自动化执行健康检查时,始终搭配参数获取结构化输出。
--format json - 执行前始终先使用
build-docs参数检查文档是否已经同步。--dry-run - 未通过和
validate检查前,切勿将库推送到共享仓库。doctor - 检查大型目录时,使用参数限制输出内容。
--fields
Workflow
工作流程
- Run the validation script to check catalog integrity.
bash
npx ai-agent-skills validateThis checks: required fields, folder consistency, frontmatter validity, collection integrity, and generated doc sync.
- Run doctor to check installed skills health.
bash
npx ai-agent-skills doctor --format json- Check for skills that may need updates.
bash
npx ai-agent-skills check --format json- Verify generated docs are in sync.
bash
npx ai-agent-skills build-docs --dry-run --format jsonIf is false, regenerate:
currentlyInSyncbash
npx ai-agent-skills build-docs- Review the curation queue for skills needing attention.
bash
npx ai-agent-skills curate --review --format json- 运行验证脚本检查目录完整性。
bash
npx ai-agent-skills validate该命令会检查:必填字段、文件夹一致性、frontmatter有效性、集合完整性,以及生成文档的同步状态。
- 运行doctor检查已安装技能的健康状态。
bash
npx ai-agent-skills doctor --format json- 检查可能需要更新的技能。
bash
npx ai-agent-skills check --format json- 验证生成的文档是否同步。
bash
npx ai-agent-skills build-docs --dry-run --format json如果为false,重新生成文档:
currentlyInSyncbash
npx ai-agent-skills build-docs- 查看需要处理的技能编排队列。
bash
npx ai-agent-skills curate --review --format jsonHealth Checklist
健康检查清单
- passes with no errors
validate - reports no broken installs
doctor - shows docs are in sync
build-docs --dry-run - No skills with empty fields
whyHere - All house skills have matching folders in
skills/ - total matches actual skill count
skills.json
- 运行通过无错误
validate - 无损坏安装的报告
doctor - 显示文档已同步
build-docs --dry-run - 没有字段为空的技能
whyHere - 所有内部技能在目录下都有对应的文件夹
skills/ - 统计的总数与实际技能数量一致
skills.json
Gotchas
注意事项
- and
validateare read-only — they never mutate the library.doctor - makes network requests to verify upstream sources. It may be slow or timeout on unreachable repos.
check - The queue is derived from missing fields and stale verification dates — it is a heuristic, not a mandate.
curate --review
- 和
validate是只读命令——不会修改库的任何内容。doctor - 会发起网络请求验证上游源,访问不可达仓库时可能运行缓慢或超时。
check - 队列是基于缺失字段和过期验证日期生成的——仅作启发式参考,非强制要求。
curate --review