GitHub Repo Insights
Collect current GitHub data first, then separate observed facts from interpretation. Do not reuse traffic numbers from an older conversation when live access is available.
Collect a snapshot
Run the bundled collector from this skill directory:
python3 scripts/collect_github_repo_insights.py OWNER/REPO --output /tmp/github-repo-insights.json
Require Python 3.10+ and an authenticated GitHub CLI (gh auth status).
Omit OWNER/REPO inside a local checkout to detect it with gh repo view.
The script uses authenticated gh access and collects:
- repository metadata and current stars, forks, watchers, issues, and latest release;
- the rolling 14-day views and unique visitors;
- the rolling 14-day clones and unique cloners;
- popular referrers and popular repository paths;
- recent daily star events through GitHub GraphQL;
- recent-seven-day versus previous-seven-day count comparisons.
Traffic endpoints require push access. Preserve access.traffic.status: "unavailable" as unavailable; never report it as zero. Public metadata and star momentum can still be analyzed.
Read references/metrics.md before interpreting traffic, attribution, conversion proxies, or missing data.
Analyze in this order
- Reach: Report 14-day views and unique visitors with the exact window and source.
- Usage intent: Report clones and unique cloners separately from views.
- Momentum: Compare the latest seven daily counts with the previous seven for views, clones, and stars. Name the peak dates.
- Acquisition: Rank referrers. Distinguish GitHub-internal, search, social, community, and direct/unknown traffic.
- Content demand: Explain which README, docs, releases, issues, or other paths received attention.
- Context: Connect releases, README changes, Trending appearances, posts, or launches only when dates align and evidence exists.
- Next action: Recommend one or two changes tied to the observed bottleneck, such as onboarding, localization, release packaging, search capture, or community follow-up.
Reporting rules
- Lead with the growth conclusion, then show the evidence.
- State that traffic data comes from GitHub's repository Traffic API and covers a rolling 14-day window.
- Never sum daily unique visitor or unique cloner values; GitHub's top-level unique count is the valid window total.
- Treat stars-per-view and clones-per-view only as directional ratios, not user conversion rates.
- Do not claim a referrer caused growth merely because dates overlap. Label causal explanations as inference.
- Separate unavailable, zero, and incomplete data.
- Compare publish dates with event dates when discussing launches, Trending, releases, or community posts.
- Avoid vanity-only summaries. Explain what changed, why it likely changed, and what to do next.
Default output
Use this compact structure unless the user requests a dashboard or historical report:
## Current momentum
One-sentence conclusion.
- 14-day views / unique visitors
- 14-day clones / unique cloners
- recent 7d vs previous 7d views, clones, and stars
- peak dates
## Where attention comes from
Ranked referrers and what they imply.
## What people inspect
Popular paths and onboarding/content implications.
## Interpretation
Proven facts, explicit inference, and important limitations.
## Next move
One or two evidence-linked actions.
For recurring monitoring, save each JSON snapshot outside the skill directory with an ISO-date filename. GitHub does not provide long-term Traffic history after the rolling window expires.
1---2name: github-repo-insights3description: Analyze a GitHub repository's current traffic, visitors, clones, star momentum, referrers, popular paths, releases, and community signals. Use when asked where repository growth data came from, how a repository is growing, which channels or README pages drive attention, whether a launch or community post changed momentum, or for a current GitHub repository growth/status report.4---56# GitHub Repo Insights78Collect current GitHub data first, then separate observed facts from interpretation. Do not reuse traffic numbers from an older conversation when live access is available.910## Collect a snapshot1112Run the bundled collector from this skill directory:1314```bash15python3 scripts/collect_github_repo_insights.py OWNER/REPO --output /tmp/github-repo-insights.json16```1718Require Python 3.10+ and an authenticated GitHub CLI (`gh auth status`).1920Omit `OWNER/REPO` inside a local checkout to detect it with `gh repo view`.2122The script uses authenticated `gh` access and collects:2324- repository metadata and current stars, forks, watchers, issues, and latest release;25- the rolling 14-day views and unique visitors;26- the rolling 14-day clones and unique cloners;27- popular referrers and popular repository paths;28- recent daily star events through GitHub GraphQL;29- recent-seven-day versus previous-seven-day count comparisons.3031Traffic endpoints require push access. Preserve `access.traffic.status: "unavailable"` as unavailable; never report it as zero. Public metadata and star momentum can still be analyzed.3233Read [references/metrics.md](references/metrics.md) before interpreting traffic, attribution, conversion proxies, or missing data.3435## Analyze in this order36371. **Reach:** Report 14-day views and unique visitors with the exact window and source.382. **Usage intent:** Report clones and unique cloners separately from views.393. **Momentum:** Compare the latest seven daily counts with the previous seven for views, clones, and stars. Name the peak dates.404. **Acquisition:** Rank referrers. Distinguish GitHub-internal, search, social, community, and direct/unknown traffic.415. **Content demand:** Explain which README, docs, releases, issues, or other paths received attention.426. **Context:** Connect releases, README changes, Trending appearances, posts, or launches only when dates align and evidence exists.437. **Next action:** Recommend one or two changes tied to the observed bottleneck, such as onboarding, localization, release packaging, search capture, or community follow-up.4445## Reporting rules4647- Lead with the growth conclusion, then show the evidence.48- State that traffic data comes from GitHub's repository Traffic API and covers a rolling 14-day window.49- Never sum daily unique visitor or unique cloner values; GitHub's top-level unique count is the valid window total.50- Treat stars-per-view and clones-per-view only as directional ratios, not user conversion rates.51- Do not claim a referrer caused growth merely because dates overlap. Label causal explanations as inference.52- Separate unavailable, zero, and incomplete data.53- Compare publish dates with event dates when discussing launches, Trending, releases, or community posts.54- Avoid vanity-only summaries. Explain what changed, why it likely changed, and what to do next.5556## Default output5758Use this compact structure unless the user requests a dashboard or historical report:5960```markdown61## Current momentum62One-sentence conclusion.6364- 14-day views / unique visitors65- 14-day clones / unique cloners66- recent 7d vs previous 7d views, clones, and stars67- peak dates6869## Where attention comes from70Ranked referrers and what they imply.7172## What people inspect73Popular paths and onboarding/content implications.7475## Interpretation76Proven facts, explicit inference, and important limitations.7778## Next move79One or two evidence-linked actions.80```8182For recurring monitoring, save each JSON snapshot outside the skill directory with an ISO-date filename. GitHub does not provide long-term Traffic history after the rolling window expires.