Gh Chart — Git skill for Claude Code
Generate GitHub contribution chart images from the CLI.
How to install Gh Chart
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open griffinwork40/gh-chart and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Gh Chart does
Generate GitHub contribution chart images from the CLI. Dark/light themes, stats, JSON output. Includes an agent-afk skill.
Alternatives in Git
- Openclaude — Open Claude Is Open-source coding-agent CLI for OpenAI, Gemini, DeepSeek, Ollama, Codex, GitHub Models, and 20 22.5k ★
- Gh Address Comments — Address review and issue comments on open GitHub PRs via CLI 14.6k ★
- Cc Usage — by ryoppippi - Handy CLI tool for managing and analyzing Claude Code usage, based on analyzing local Claude Co 11.7k ★
README
gh-chart
Generate a GitHub contribution chart image from the command line.


Install
# Clone and install
git clone https://github.com/griffinwork40/gh-chart.git
cd gh-chart
pip install -e .
# Or just run directly
python3 gh_chart.py
Prerequisites
- GitHub CLI (
gh) authenticated (gh auth login) - Python 3.10+
- matplotlib, pillow (
pip install -r requirements.txt)
Usage
# Your own chart (uses authenticated gh user)
gh-chart
# Specific user
gh-chart torvalds
# Light theme
gh-chart --theme light
# Custom output path
gh-chart -o my-contributions.png
# Print stats
gh-chart --stats
# Stats as JSON (pipe to jq, post to APIs, etc.)
gh-chart --json
# Render and open immediately
gh-chart --open
Options
| Flag | Description |
|---|---|
username |
GitHub username (default: authenticated user) |
-o, --output PATH |
Output PNG path (default: gh-chart-.png) |
--theme dark|light |
Color theme (default: dark) |
--stats |
Print contribution stats to stdout |
--json |
Output stats as JSON |
--open |
Open image after rendering (macOS/Linux) |
Example JSON output
{
"username": "griffinwork40",
"total": 12245,
"max_day": 282,
"max_date": "2025-12-28",
"max_streak": 83,
"active_days": 354,
"daily_avg": 33.5
}
AFK Skill
This repo includes an [agent-afk](https://github.com/griffinwork40/agent-afk) skill. Install it:
# Symlink into your AFK skills directory
ln -s /path/to/gh-chart ~/.afk/skills/gh-chart
Then use it in any AFK session:
/gh-chart # your chart
/gh-chart torvalds # someone else's
License
MIT
Related Skills
Claude Devfleet
Multi-agent coding platform that dispatches Claude CLI agents to work on missions (coding tasks). Each agent r
CodeyBox
Runs CLI coding agents (Claude Code, Codex, Copilot, Cursor, Gemini, opencode) against a task queue. Each work
Claude Code Statusline
by rz1989s - Enhanced 4-line statusline for Claude Code with themes, cost tracking, and MCP server monitoring.
Skillsctl
Homebrew for agent skills — install, update, and remove skills from git repos, Claude plugins, and OCI images,
Claude Amit Mizrachi
Claude Code skills for unattended work: hand a session off (next-prompt), take a feature through the night as
Https://github.com/digitalocean/engineering Code Of Conduct
This project is committed to a welcoming and harassment-free experience for everyone. Be respectful. Be constr
Related Agents
CSS Engineer
CSS Engineer (Tier 3): implements design tokens and modern CSS — cascade layers, container queries, :has, nest
Visualizer
Builds the stacked bar chart (violation counts by class per zip) and the Class C trend line (over time, top zi
Style Sync
Checks that CSS custom properties defined in src/styles/main.css (like --accent, --bg, --text) are consistentl