validate-registry-hard
Validates registry.json shape and that each skill path contains SKILL.md at the skill root.
- License 许可
- MIT
- 所属仓库
- midyan/skissue
- 最近更新
- 2026-05-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- validate-registry-hard
- description
- Validates registry.json shape and that each skill path contains SKILL.md at the skill root.
02 资源文件 3
- 参考文档INDEX.md469 B
- 脚本index.test.ts1.4 KB
- 脚本index.ts2.2 KB
03 SKILL.md 正文
validate-registry — hard component
index.ts reads registry.json at repo root and checks:
- Valid JSON and
{ "skills": { "<id>": "<path>" } }shape (via zod). - Each path exists and contains
SKILL.mdat the skill folder root (soft component).
Invocation
npx tsx registry/validate-registry/hard/index.ts
npm run check:registry
Exit codes
| Code | Meaning |
|---|---|
0 |
Registry file and paths are valid |
1 |
Missing file, bad JSON, or missing SKILL.md at skill root |
04 同仓库更多 Skills
validate-shell-exec
Restrict child_process.spawn/exec to approved modules (e.g. shell/tmux helpers) so subprocess usage stays centralized.
validate-registry-hard
Validates registry.json shape and that each skill path contains SKILL.md at the skill root.
validate-registry
Keep root registry.json consistent with on-disk skill folders so installs and docs do not drift.
validate-naming
Enforce kebab-case filenames and PascalCase type names under src/; reports naming drift for consistency.
validate-logging
Prefer structured logging over raw console.* outside approved CLI entrypoints; keeps observability consistent.
validate-links
Scan markdown for broken relative links across the repo. Run via npm run check:links or the harness hard skill.