4b6817381b
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
CI / coverage-report (push) Has been cancelled
CI / test-kubernetes (push) Has been cancelled
CI / should-run-thorough (push) Has been cancelled
CI / test-thorough (cloudwatch-demo) (push) Has been cancelled
CI / test-thorough (flink-ecs) (push) Has been cancelled
CI / test-thorough (upstream-lambda) (push) Has been cancelled
CI / test-thorough (prefect-ecs-fargate) (push) Has been cancelled
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Has been cancelled
Benchmark image — build + push to ECR (any adapter) / build + push (push) Has been cancelled
CI / quality (ubuntu-latest) (push) Has been cancelled
CI / test (tools-runtime) (push) Has been cancelled
CI / test (e2e-general) (push) Has been cancelled
CI / test (cli-runtime) (push) Has been cancelled
CI / test (e2e-provider-and-openclaw) (push) Has been cancelled
CI / test (integrations-and-misc) (push) Has been cancelled
Release / verify (push) Has been cancelled
Release / build-python-dist (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Has been cancelled
Release / publish-release (push) Has been cancelled
Release / publish-main-release (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Has been cancelled
Release / prepare (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Has been cancelled
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Has been cancelled
2.1 KiB
2.1 KiB
name, description, tools
| name | description | tools | |
|---|---|---|---|
| github-star-velocity | Compute GitHub repository star velocity over a rolling time window using the stargazers API. |
|
GitHub Star Velocity
Use this skill when the user asks for GitHub star velocity, stars gained in the last N hours, star growth rate, or similar metrics for a repository.
Prerequisites
- Set
allow_network: trueonexecute_python_code. - Read
GITHUB_TOKENfrom the subprocess environment (injected when GitHub credentials are configured). Never print the token. - Parse
owner/repofrom the repository URL or user input.
API approach
- Fetch current
stargazers_countfromGET /repos/{owner}/{repo}. - Fetch stargazers with timestamps from
GET /repos/{owner}/{repo}/stargazers?per_page=100usingAccept: application/vnd.github.v3.star+json. - Each entry includes
starred_at. Count stars wherestarred_atis within the requested window (for example, the last 24 hours).
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.
Instead, paginate through all pages (follow the Link response header
until there is no rel="next") and count every starred_at inside the window.
Sanity check before reporting
Treat these results as suspicious and rerun with a full paginated scan before answering:
0stars 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_countdeltas 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:
- Total current stars
- Stars gained in the window
- Velocity (stars per hour and stars per day)
- Window start timestamp (UTC)
- Most recent
starred_atin the window - Optional hourly breakdown for the last 24 hours