Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory. Runs automatically on every commit via a git pre-commit hook. Use when the README drifts from reality or before publishing a release.
.claude/skills/stevesolun-repo-stats-autoupdate/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -55% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -52% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 2% | 0% |
Reads the authoritative sources for the ctx repo's key numbers and patches README.md in place so badges and inline counts never drift:
| Number | Source of truth | |---|---| | Skills | ~/.claude/skill-wiki/graphify-out/graph.json — count nodes where type == "skill" | | Agents | same file — count nodes where type == "agent" | | Graph nodes | len(graph["nodes"]) | | Graph edges | len(graph["edges"]), formatted as 642K / 1.2M | | Communities | graph/communities.json → total_communities | | Converted pipelines | ~/.claude/skill-wiki/converted/ subdir count | | Tests | checked-in README/docs inventory by default; set CTX_UPDATE_REPO_STATS_LIVE_TESTS=1 to refresh from pytest --collect-only -q |
Fields that can't be resolved (e.g. wiki not deployed) are left untouched — the updater never blocks a commit.
One-time install (per clone):
bashgit config core.hooksPath .githooks
After that, every git commit runs .githooks/pre-commit which calls the updater and re-stages README.md if any number drifted.
Manual run:
bashpython src/update_repo_stats.py # patch README python src/update_repo_stats.py --check # exit 1 if stale (for CI) CTX_UPDATE_REPO_STATS_LIVE_TESTS=1 python src/update_repo_stats.py # refresh test inventory
graph/wiki-graph.tar.gz takes minutes and churns a large artifact — too heavy for per-commit. Run ctx-wiki-graphify, then python src/validate_graph_artifacts.py --deep, and repack the tarball manually when the skill catalog changes materially.graphify-out/graph.json is corrupt, you'll get junk numbers. Run the wiki health check (python src/wiki_orchestrator.py --check) separately.README.md — the target being kept in syncOther measured skills in the registry, with their headline benchmark lift.