validate-counts
Original:🇺🇸 English
Translated
2 scripts
Validates hook, skill, and agent counts are consistent across CLAUDE.md, hooks.json, manifests, and source directories. Use when counts may be stale after adding or removing components, before releases, or when CLAUDE.md Project Overview looks wrong.
15installs
Sourceyonatangross/orchestkit
Added on
NPX Install
npx skill4agent add yonatangross/orchestkit validate-countsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Validate Counts
Checks that hook, skill, and agent counts are consistent across all authoritative sources in OrchestKit. Outputs a comparison table and flags drift with precise file references.
Quick Start
bash
# Full validation: counts src/ vs CLAUDE.md and manifests (run from repo root)
bash src/skills/validate-counts/scripts/validate-counts.sh
# Just get raw counts from src/
bash src/skills/validate-counts/scripts/count-all.shRules
| Category | Rule | Impact | Key Pattern |
|---|---|---|---|
| Count Sources | | HIGH | Filesystem is authoritative; derived sources must match |
| Drift Detection | | HIGH | Comparison table + flag with file:field references |
Total: 2 rules across 2 categories
Workflow
- Run for full validation (counts + drift comparison), or
scripts/validate-counts.shfor raw counts onlyscripts/count-all.sh - Read — extract counts from Project Overview and Version section
CLAUDE.md - Read — check skill/agent/hook array lengths
manifests/ork.json - Build the comparison table (see for format)
rules/drift-reporting.md - Flag any mismatches with file + field references; otherwise output "All counts consistent."
References
Load on demand with :
Read("${CLAUDE_SKILL_DIR}/references/<file>")| File | Content |
|---|---|
| Where every count lives and why drift happens |
Related Skills
- — Uses validate-counts as step 5 of the release gate
release-checklist - — Broader health check that includes count validation
doctor - — Quality audit for skill structure and completeness
audit-skills
Common Mistakes
- Counting from instead of
plugins/— plugins/ may be empty after an interrupted buildsrc/ - Comparing against deleted alias manifests — only exists in v7
manifests/ork.json - Forgetting the hook breakdown: global + agent-scoped + skill-scoped must sum to total