New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Fetches and stores GitHub repository traffic history for trend charts beyond the API's 14-day window.

skills.sh installs
3.8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers views, clones, referrers, popular pages, and star growth, with a formatted terminal summary on each run
  • Persists each fetch to ~/.github-traffic/ and renders PNG trend charts or an ASCII fallback via --chart and --ascii
  • Requires push access to the target repository, since GitHub's Traffic API returns 403 for read-only users
  • Designed for maintainers who schedule --snapshot runs, such as cron, to build history for 30- and 90-day views

Install

$ npx -y skills add zc277584121/marketing-skills --skill github-traffic -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Skill: GitHub Traffic

Fetch and analyze GitHub repository traffic data — page views, git clones, referral sources, popular pages, and star growth. Optionally generate trend charts as PNG images.

Prerequisites:

  • gh CLI must be installed and authenticated
  • Push (write) access to the target repository is required — GitHub's Traffic API does not work with read-only access
  • matplotlib is optional (for PNG chart generation; falls back to ASCII if unavailable)

When to Use

  • The user asks about repository traffic, page views, clone counts, or where visitors come from
  • The user wants to see traffic trends over time (weekly, monthly, quarterly)
  • The user wants to generate traffic report charts for sharing or documentation
  • The user wants to periodically snapshot traffic data to build long-term history

Important: GitHub Traffic API Limitations

GitHub only provides the last 14 days of traffic data. To track trends over longer periods (30 days, 90 days, etc.), the script stores each fetch in a local history file (~/.github-traffic/<repo>_traffic.json). Regular snapshots are required to build up history.

Details

Repository
github.com/zc277584121/marketing-skills
Categories
Git & Releases, Data Science & Analytics
First seen
May 16, 2026

More from zc277584121/marketing-skills

All 14

Similar to Github Traffic

More Git & Releases