github-star-velocity

A tool for measuring how quickly a GitHub repository gains stars, using the repository's dated star history over a chosen rolling time period.

In plain words
What is it for?
Use it to count recent stars and calculate a repository's day-by-day or window-based star growth from its GitHub URL.
Why use it?
It avoids misleading results caused by GitHub's paginated star data, where the newest stars may be on later pages.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tracer-cloud/opensre/github-star-velocity
Any agent
npx skills add Tracer-Cloud/opensre --skill github-star-velocity
Clone the repo
git clone --depth 1 https://github.com/Tracer-Cloud/opensre

Made for: Claude Code, Codex.

Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00565
Opus 5 $0.00012 $0.00282
Sonnet 5 $0.00005 $0.00113
Haiku 4.5 $0.00002 $0.00056

Measured 3d ago against content hash dbea8168129e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

github-star-velocity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/system/python_execution_tool/skills/github-star-velocity/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Star Velocity

Use this skill only when the dedicated get_github_star_history tool is not available. When that tool is available, prefer it for GitHub star velocity, stars gained in a recent window, day-by-day stars, star growth rate, or similar metrics for a repository.

Prerequisites

  1. Set allow_network: true on execute_python_code.
  2. Read GITHUB_TOKEN from the subprocess environment (injected when GitHub credentials are configured). Never print the token.
  3. Parse owner/repo from the repository URL or user input.

API approach

  1. Fetch current stargazers_count from GET /repos/{owner}/{repo}.
  2. Fetch stargazers with timestamps from GET /repos/{owner}/{repo}/stargazers?per_page=100 using Accept: application/vnd.github.v3.star+json.
  3. Each entry includes starred_at. Count stars where starred_at is within the requested window.

Critical pagination trap

Stargazers are returned oldest first, not newest first. Do not stop after the first page when the newest entries on that page fall outside the window — that produces a false zero.

For responsiveness, compute the last page from stargazers_count and per_page=100, fetch newest pages by explicit page number in descending order, and stop once the oldest starred_at on a fetched page is before the window start. Only run a full historical scan when the user explicitly asks for all-time history or an audit-quality export.

Sanity check before reporting

Treat these results as suspicious and rerun with a full paginated scan before answering:

  • 0 stars in the last 24 hours for a repo with thousands of stars and recent activity
  • Velocity that implies losing stars without an explicit unstar request
  • Counts that disagree sharply with stargazers_count deltas when you have a recent baseline

When a result looks wrong, widen the scan (all pages), print the most recent starred_at observed, and only then return the velocity.

Output shape

Return:

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 67 lines · 23 tokens per session scan A dbea8168129e

Subscribe to this mod's changes

github-star-velocity is a skill published in the GitHub repository Tracer-Cloud/opensre (10,985 stars, last pushed yesterday), licensed Apache-2.0. It adds 23 tokens to every session and 565 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.