gitlytics-automation

Installation
SKILL.md

Gitlytics Automation & Archiving Skill

Automate indefinite GitHub traffic retention and secure local/self-hosted Gitlytics deployments without leaking tokens or exposing unauthenticated dashboards.

Security Rules

  1. Never hardcode tokens in workflow YAML, shell scripts, or committed files. Always use ${{ secrets.TRAFFIC_TOKEN }} in GitHub Actions or GITLYTICS_TOKEN in local environment variables.
  2. Dashboard loopback safety: gitlytics dashboard binds to 127.0.0.1 by default. Never pass --public-bind unless the user explicitly places it behind a trusted reverse proxy with authentication, and remind them that --token / GITLYTICS_TOKEN is intentionally disabled on non-loopback binds.
  3. Private repo hygiene: Default to --public-only / export_public_only=True when committing traffic CSVs or JSON exports to a public repository so private repository names never leak.

Workflow

Step 1: Choose the Right Archiving Strategy

Ask or infer which mode fits the user's setup:

  1. GitHub Action (recommended for zero-server archiving): Runs on the 1st, 8th, 15th, and 22nd of each month using ameyachopade/gitlytics-github-traffic-automation@v1.2.0 and commits deduplicated monthly CSVs (traffic_YYYY-MM.csv) into the repo.
  2. Local CLI Sync (gitlytics sync): Runs locally via Python (pip install gitlytics / uvx gitlytics sync --schedule-cron "0 23 * * *") or Node.js (npm install -g @gitlytics/cli / npx @gitlytics/cli sync --data-dir ./data). Both write the exact same interchangeable 22-column CSV vault and support --export-json.
  3. Gitlytics Cloud (https://dashboard.gitlytics.dev): Managed nightly archiving into Supabase with automatic MCP access via https://api.gitlytics.dev/mcp (OAuth 2.1 direct sign-in + glt_live_... API key fallback).
Installs
1
First Seen
Today