Index of every page on this site: llms.txt
All skills
tracer-cloud avatar

/measuring-github-star-velocity

@df137ad
by Tracertracer-cloud/opensre15k stars
1,982
Run it yourself

Compute GitHub repository star velocity over a rolling time window using the stargazers API.

Use this Skill: https://skilld.dev/gh/tracer-cloud/opensre/measuring-github-star-velocity

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈31 tokens for metadata: the name and description. ≈557 when used: this file.

Description uses 1.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈125 characters, or 1.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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:

  • Total current stars
  • Stars gained in the window
  • Velocity (stars per hour and stars per day)
  • Window start timestamp (UTC)
  • Most recent starred_at in the window
  • Optional hourly breakdown for the last 24 hours

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts4d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    The skill calculates GitHub repository star velocity by executing Python code to query the GitHub API. It includes guidance on handling API pagination, environment-based credential management, and data validation.

  • Socket4d

    No alerts

  • Snyk4d

    Risk: LOW · No issues

Signed by skilld at df137ad. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 3 months ago
tools
[
  "execute_python_code"
]

README badge

README badge for tracer-cloud/opensre/measuring-github-star-velocity