Skip to main content
skill CX Codex

github-traffic — Claude Code skill: what it does, how to install

Pulls traffic metrics, visitor referrers, and clone counts from GitHub. Stores snapshots locally and generates trend charts.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add zc277584121/marketing-skills --skill github-traffic -a claude-code
Open on GitHub

What github-traffic does

The skill connects through the authenticated gh CLI to inspect traffic details: page visits, clone activity, referrer sources, and star counts. GitHub restricts traffic history to the previous 14 days. To bypass that window, the script appends records to persistent JSON files in ~/.github-traffic/. This accumulates data for 30-day or 90-day reports.

Visual reporting relies on matplotlib. It outputs PNG panels showing visitor volume, clones, and stars. If the library is missing, the tool generates plain ASCII charts inside the terminal.

Target repositories require write access. Read-only permissions trigger an HTTP 403 error from the GitHub API. Tracking third-party repositories will fail.

What it helps with

  • collect visitor views and clone activity for a repository
  • preserve traffic data beyond the standard 14-day limit
  • identify top external referral sources and popular paths
  • render visual trend charts as PNG images or ASCII text

Example prompts for the agent

  • Show traffic stats and clone counts for owner/repo
  • Generate a 30-day traffic trend chart for owner/repo
  • Run a silent snapshot of owner/repo to update history

How to install github-traffic

1Skills CLI (Vercel)

npx skills add zc277584121/marketing-skills --skill github-traffic -a claude-code

2Manually: put the files in place

~/.claude/skills/github-traffic/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/github-traffic/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about github-traffic

How to install github-traffic in Claude Code?

Run npx skills add zc277584121/marketing-skills --skill github-traffic -a claude-code in your terminal.

Why does the skill store local snapshots?

GitHub automatically discards traffic logs older than 14 days. Routine snapshots into ~/.github-traffic/ preserve continuity for quarterly reports.

Is matplotlib required to run github-traffic?

No. It is only needed for PNG images. Running with the --ascii flag outputs text charts without extra visualization libraries.

Similar skills

All skills for Git and GitHub →

From the same set9

remove-ai-style Rewrites English or Chinese prose to drop formulaic phrasing, stray dashes and exclamation marks. Useful before you publish an article or a doc. CX Codex +1 4,200installs browser-screenshot Captures one block of a page — a post, a tweet, a chart, a section of an article — instead of a full-page dump. Useful when you need a clean illustration. CX Codex +1 4,100installs image-generation This skill creates illustrations, diagrams, and other visuals for articles and docs. It chooses between Codex, OpenAI API, and Gemini paths. CX Codex +1 4,000installs chrome-automation Controls an active Chrome window via the agent-browser CLI. Useful for extracting web data, filling forms, and replaying DevTools recordings while keeping active login sessions intact. CX Codex +1 4,000installs content-rewrite Turns one article or announcement into versions for LinkedIn, X, Reddit, an English blog and WeChat. Useful when the same material has to go out in several places. CX Codex +1 4,000installs video-to-gif Turns one video into several GIFs at different settings and drops them in a folder, so you pick the one that looks right. CX Codex +1 3,900installs raw-video-processing Cleans up raw screen recordings by cutting silent pauses and speeding up the footage. Useful before publishing demos or tutorials. CX Codex +1 3,900installs screenshot-compression Shrinks PNG and JPEG screenshots without converting their format. Use it before adding images to documentation or committing them to a repository. CX Codex +1 3,800installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor