stevesolun/ctx/repo-stats-autoupdate
Claude Code and agent skill by stevesolun/ctx
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install stevesolun/ctx/repo-stats-autoupdateSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as stevesolun/ctx/repo-stats-autoupdate.
repo-stats-autoupdate
What this skill does
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.
How to use it
One-time install (per clone):
After that, every git commit runs .githooks/pre-commit which calls the updater and re-stages README.md if any number drifted.
Manual run:
When NOT to use it
- When you've deliberately phrased a number descriptively (e.g. "over 1,700 skills") — the regex patterns only match exact digits, so prose phrasings are safe, but double-check after big imports.
- When the wiki isn't deployed locally. The updater degrades gracefully: it prints a warning and skips fields it can't resolve. It does not invent numbers.
Known gaps (intentionally out of scope)
- Does not rebuild the graph or wiki. Rebuilding
graph/wiki-graph.tar.gztakes minutes and churns a large artifact — too heavy for per-commit. Runctx-wiki-graphify, thenpython src/validate_graph_artifacts.py --deep, and repack the tarball manually when the skill catalog changes materially. - Does not verify graph integrity. If
graphify-out/graph.jsonis corrupt, you'll get junk numbers. Run the wiki health check (python src/wiki_orchestrator.py --check) separately.
Related files
- src/update_repo_stats.py — the worker
- .githooks/pre-commit — the per-commit trigger
README.md— the target being kept in sync
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/repo-stats-autoupdate/SKILL.md
Popularity
- Repository stars
- 587
- Repository forks
- 69
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 14 Sep 2026, 2 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/stevesolun/ctx/repo-stats-autoupdate)