validate-indexes-hard
Executable validation for INDEX.md / AGENTS.md — implementation contract and invocation.
- License 许可
- MIT
- 所属仓库
- midyan/skissue
- 最近更新
- 2026-05-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- validate-indexes-hard
- description
- Executable validation for INDEX.md / AGENTS.md — implementation contract and invocation.
02 资源文件 4
- 脚本index-run.test.ts3.1 KB
- 参考文档INDEX.md678 B
- 脚本index.test.ts944 B
- 脚本index.ts4.6 KB
03 SKILL.md 正文
validate-indexes — hard component
TypeScript entrypoint index.ts walks the repo from ROOT (repo root) and reports:
- Directories with 2+ children (excluding
INDEX.mdfrom the count) that lackINDEX.md(orAGENTS.mdat repo root). - Unlisted filesystem children not present in the index table.
- Orphaned table links pointing at missing paths.
Excluded directories: node_modules, .git, coverage, dist, .cursor.
Invocation
npx tsx harness/validate-indexes/hard/index.ts
npm run check:indexes
Exit codes
| Code | Meaning |
|---|---|
0 |
All indexes complete and accurate |
1 |
Missing index, unlisted child, or orphaned link |
Format rules: docs/index-format.md.
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.