A straightforward tool for tracking GitHub repo traffic over time, which matters because GitHub only keeps the last 14 days and then tosses it. Fetches views, clones, referrers, and stars via the gh CLI, saves snapshots locally to build history, and generates PNG trend charts with matplotlib. Requires push access to the repo, so read-only collaborators are out of luck. The real value is in running it on a schedule to accumulate months of data you'd otherwise lose. Good for maintainers who want actual traffic insights beyond GitHub's tiny window, though you need to remember to snapshot regularly or set up a cron job.

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

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/zc277584121/marketing-skills
Categories
Git & Pull Requests, Marketing & SEO
First seen
May 16, 2026

More from zc277584121/marketing-skills

All 14
1everyinc avatarce-doc-revieweveryinc/compound-engineering-pluginReview requirements, plans, or specs with role-specific lenses. Use when the user wants to improve an existing planning document.3.8Kskills.sh installs
2wondelai avatarsteve-jobs-design-reviewwondelai/skillsReview designs, products, and features with Steve Jobs' standards: ruthless simplicity, focus, and end-to-end excellence. Use when the user mentions "Steve Jobs3.6Kskills.sh installs
3anthropics avatarperformance-reviewanthropics/knowledge-work-pluginsStructure a performance review with self-assessment, manager template, and calibration prep. Use when review season kicks off and you need a self-assessment tem3.4Kskills.sh installs
4tradermonty avatarkanchi-dividend-review-monitortradermonty/claude-trading-skillsMonitor dividend portfolios with Kanchi-style forced-review triggers (T1-T5) and convert anomalies into OK/WARN/REVIEW states without auto-selling. Use when use3.4Kskills.sh installs
5bencium avatarvanity-engineering-reviewbencium/bencium-marketplaceReviews codebases, architectures, PRs, and technical plans for vanity engineering — code and systems built for the developer's ego, resume, or intellectual plea3.3Kskills.sh installs
6anthropics avatarbrand-reviewanthropics/knowledge-work-pluginsReview content against your brand voice, style guide, and messaging pillars, flagging deviations by severity with specific before/after fixes. Use when checking3.3Kskills.sh installs