gitlytics-analytics
Installation
SKILL.md
Gitlytics Analytics Skill
Turn GitHub traffic snapshots, star trajectories, and AI health diagnostics into actionable engineering and distribution insights while protecting credentials and defeating GitHub's 14-day rolling data cliff.
Security Rules
- Never ask for raw GitHub PATs in chat.
- For Gitlytics Cloud MCP (
https://api.gitlytics.dev/mcp): public tools (list_widget_catalog,search_tech_logos,build_widget_embed,get_public_github_profile,get_public_star_history) require zero login. For private workspace tools, prefer OAuth 2.1 + PKCE direct sign-in in IDEs (zero config), or guide headless/CI users to mint a scopedglt_live_...key athttps://dashboard.gitlytics.dev/integrations(Authorization: Bearer ${GITLYTICS_API_KEY}). - For Local Stdio MCP (
uvx gitlytics mcpornpx -y @gitlytics/cli mcp --mode local): instruct the user to exportGITLYTICS_TOKENin their environment rather than passing secrets in prompts.
- For Gitlytics Cloud MCP (
- Respect least privilege. Request only
read:trafficandread:analysisunless the user explicitly asks to trigger on-demand syncs (write:refresh).
Workflow
Step 1: Identify Available Mode
- Cloud Workspace Mode (
gitlyticsHTTP MCP): Calllist_connected_reposto see tracked repositories andlast_synced_at.- If
401/auth_requiredis returned, explain that public tools (get_public_github_profile,get_public_star_history, widget/badge tools) work immediately with zero auth, and guide the user to sign in via OAuth 2.1 in their MCP client (or mint a scopedglt_live_...key onhttps://dashboard.gitlytics.dev/integrationsfor headless clients).
- If
- Local Vault Mode (
gitlytics-localstdio via Pythonuvx gitlytics mcpor Nodenpx -y @gitlytics/cli mcp --mode local): Calllocal_query_csv_vaultfirst (works 100% offline with zero token). Uselocal_fetch_trafficorlocal_sync_archiveonly when live GitHub refresh is needed.