用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Tracer-Cloud/opensre --skill github-star-velocity命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | github-star-velocity |
| description | Compute GitHub repository star velocity over a rolling time window using the stargazers API. |
| tools | ["execute_python_code"] |
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.
allow_network: true on execute_python_code.GITHUB_TOKEN from the subprocess environment (injected when GitHub
credentials are configured). Never print the token.owner/repo from the repository URL or user input.stargazers_count from GET /repos/{owner}/{repo}.GET /repos/{owner}/{repo}/stargazers?per_page=100 using
Accept: application/vnd.github.v3.star+json.starred_at. Count stars where starred_at is within
the requested window.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.
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
activitystargazers_count deltas when you have a
recent baselineWhen a result looks wrong, widen the scan (all pages), print the most recent
starred_at observed, and only then return the velocity.
Return:
starred_at in the window