Agent skill

Repo Stats Autoupdate

by stevesolun in stevesolun/ctx

Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory.

MITAuto-check passedDevelopment

Install Repo Stats Autoupdate

skills CLI
$ npx skills add stevesolun/ctx --skill repo-stats-autoupdate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install stevesolun/ctx repo-stats-autoupdate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/stevesolun/ctx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repo-stats-autoupdate .claude/skills/repo-stats-autoupdate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
repo-stats-autoupdate
GitHub stars
588
Token cost
~724 tokens
SKILL.md length
263 words
Files
1
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory.

  • The README drifts from reality
  • SKILL.md covers What this skill does, How to use it, When NOT to use it and Known gaps (intentionally out…, plus 1 more section
  • Calls python, git and pytest
  • Before publishing a release

What it does

Repo Stats Autoupdate is an agent skill from stevesolun/ctx. 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.

Its SKILL.md is about 720 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Technical documentation. It works with Git. The repository describes itself as: CTX Fit finds the cheapest AI coding setup that reliably works on your repository, then applies the winner as a reviewable change. The licence is MIT.

When your agent uses it

  • The README drifts from reality
  • Before publishing a release

Example prompts

  • “Use the repo-stats-autoupdate skill to keep README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges…”
  • “/repo-stats-autoupdate”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 11b582a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • git
    • pytest

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Repo Stats Autoupdate loads about 724 tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 263 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~724

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from stevesolun/ctx at commit 11b582a, republished under its MIT licence (© stevesolun). 263 words, ~724 tokens.

Download SKILL.mdSave it as .claude/skills/repo-stats-autoupdate/SKILL.md (or your agent's skills folder).
name
repo-stats-autoupdate
description
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.
type
maintenance
priority
30
always_load
false

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:

NumberSource of truth
Skills~/.claude/skill-wiki/graphify-out/graph.json — count nodes where type == "skill"
Agentssame file — count nodes where type == "agent"
Graph nodeslen(graph["nodes"])
Graph edgeslen(graph["edges"]), formatted as 642K / 1.2M
Communitiesgraph/communities.json → total_communities
Converted pipelines~/.claude/skill-wiki/converted/ subdir count
Testschecked-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):

bash
git 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:

bash
python 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

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.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.
  • Does not verify graph integrity. If graphify-out/graph.json is corrupt, you'll get junk numbers. Run the wiki health check (python src/wiki_orchestrator.py --check) separately.

© stevesolun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/repo-stats-autoupdate of stevesolun/ctx.

Open the folder on GitHubat commit 11b582a

Compare with similar skills

Repo Stats Autoupdate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Repo Stats Autoupdate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Repo Stats Autoupdate this skillstevesolun/ctx588—~724Automated safety check: PassMIT
Doc SyncJetBrains/ideavim10k2 repos~2.6kAutomated safety check: PassMIT
Mermaid Diagramsjjmartres/opencode1336 repos~1.9kAutomated safety check: PassMIT
Acquire Codebase Knowledgegithub/awesome-copilot40k1 repos~2.3kAutomated safety check: PassMIT
NeMo Curator Docs MaintenanceNVIDIA-NeMo/Curator1.8k—~4.3kAutomated safety check: PassApache-2.0
Releasejrswab/axe897—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Mermaid Diagrams

    jjmartres/opencode

    Helps an agent pick the right Mermaid diagram type and write the syntax for class, sequence, flow, ER, C4, state and other software diagrams.

    133 GitHub starsUsed in 6 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Adds, updates, moves and removes pages on the NeMo Curator Fern documentation site, keeping navigation entries, links and redirects in step.

    1.8k GitHub stars~4.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Release

    jrswab/axe

    Prepare code for release (version bumps, changelog, README updates) and create an annotated tag to trigger the GoReleaser workflow.

    897 GitHub stars~1.4k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Compares code changes since the last Git tag with the multilingual docs and CLAUDE.md, then updates them or only reports mismatches with --check-only.

    6.1k GitHub stars~4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from stevesolun/ctx

All 26 skills in this repo
  • Diagnosing Bugs

    stevesolun/ctx

    Diagnose hard bugs and performance regressions with reproducible evidence, focused hypotheses, and proportional instrumentation.

    588 GitHub stars~596 tokensUpdated 7 days ago
    Auto-check passed
  • Code Review

    stevesolun/ctx

    Review a Git diff against repository standards and its originating requirements.

    588 GitHub stars~466 tokensUpdated 7 days ago
    Auto-check passed
  • No Mistakes

    stevesolun/ctx

    Validate committed feature-branch changes through the no-mistakes pipeline: intent, rebase, review, test, docs, lint, push, PR, and CI.

    588 GitHub stars~458 tokensUpdated 7 days ago
    Auto-check passed
  • Skill Router

    stevesolun/ctx

    Repo-aware recommendation manager for ctx. An agent skill from stevesolun/ctx.

    588 GitHub stars~2.4k tokensUpdated 7 days ago
    Auto-check passed
  • Codebase Design

    stevesolun/ctx

    Design or improve module interfaces using deep-module heuristics.

    588 GitHub stars~662 tokensUpdated 7 days ago
    Auto-check passed
  • Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections.

    588 GitHub stars~466 tokensUpdated 7 days ago
    Auto-check passed

Works with

Categories

Questions about Repo Stats Autoupdate

What does Repo Stats Autoupdate do?

Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory. Repo Stats Autoupdate is an agent skill from stevesolun/ctx. Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory.

When should I use Repo Stats Autoupdate?

Repo Stats Autoupdate fits situations like: the README drifts from reality; before publishing a release.

How do I install Repo Stats Autoupdate in Claude Code?

Run `npx skills add stevesolun/ctx --skill repo-stats-autoupdate -a claude-code`. Or copy the skill folder (skills/repo-stats-autoupdate in stevesolun/ctx) into .claude/skills/repo-stats-autoupdate in your project. Claude Code loads it when a task matches its description.

How do I install Repo Stats Autoupdate in Codex?

Run `npx skills add stevesolun/ctx --skill repo-stats-autoupdate -a codex`. Or copy the skill folder (skills/repo-stats-autoupdate in stevesolun/ctx) into .agents/skills/repo-stats-autoupdate in your project. Codex loads it when a task matches its description.

Can I use Repo Stats Autoupdate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stevesolun/ctx --skill repo-stats-autoupdate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repo-stats-autoupdate, .gemini/skills/repo-stats-autoupdate, .github/skills/repo-stats-autoupdate and .opencode/skills/repo-stats-autoupdate in your project.

What does Repo Stats Autoupdate need to run?

Going by SKILL.md and its folder, Repo Stats Autoupdate needs the command-line tools its instructions call (python, git and pytest). Our summary lists: Python 3.

Does Repo Stats Autoupdate access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Repo Stats Autoupdate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Repo Stats Autoupdate use?

Repo Stats Autoupdate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Repo Stats Autoupdate use?

About 724 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Repo Stats Autoupdate?

Skills that share tags, products or a category with Repo Stats Autoupdate: Doc Sync (JetBrains/ideavim, 10k stars), Mermaid Diagrams (jjmartres/opencode, 133 stars), Acquire Codebase Knowledge (github/awesome-copilot, 40k stars) and NeMo Curator Docs Maintenance (NVIDIA-NeMo/Curator, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Repo Stats Autoupdate?

stevesolun (a GitHub user) maintains it in stevesolun/ctx, which has 588 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 4, 2026.

Source: stevesolun/ctx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.