Publish Insights Plugin
Publish Claude Code /insights reports to GitHub Pages for easy sharing.
Note: This plugin is maintained in the claude-usage-data repository.
Installation
# Add the marketplace
claude plugin marketplace add jtsternberg/claude-usage-data
# Install the plugin
claude plugin install publish-insights@jtsternberg/claude-usage-data
Prerequisites
- GitHub CLI (
gh): Must be installed and authenticated- Install:
brew install gh(macOS) or see GitHub CLI docs - Authenticate:
gh auth login
- Install:
- Git: Must be installed
Description
Automates the entire process of publishing your Claude Code insights report to GitHub Pages, making it easy to share usage statistics and analytics.
Usage
The skill triggers when you:
- “publish insights”
- “share my insights report”
- “put insights on GitHub Pages”
- Ask about publishing after generating an
/insightsreport
How It Works
- Locates your insights report at
~/.claude/usage-data/report.html - Detects your GitHub username
- Confirms repository settings (name, visibility)
- Creates GitHub repository
- Enables GitHub Pages
- Pushes report and README
- Monitors deployment
- Provides live URL
Example Session
User: "Publish my insights report"
Claude:
✓ Found report at ~/.claude/usage-data/report.html
✓ Detected GitHub user: jtsternberg
✓ Creating public repo: claude-insights
✓ Enabled GitHub Pages
✓ Deployed to: https://jtsternberg.github.io/claude-insights/
Your insights are now publicly accessible!
Configuration Options
During setup, you’ll be prompted for:
- Repository name (default:
claude-insights) - Visibility (public or private)
- GitHub Pages settings (branch, path)
Verification
The skill automatically verifies:
- Prerequisites (gh, git)
- File locations
- GitHub authentication
- Deployment status
- Live URL accessibility
Additional Documentation
- SKILL.md - Complete workflow and troubleshooting