Skill · em Documentar e entregar

star-history-chart

Add a self-hosted "Stargazers over time" chart to any GitHub repo's README. GitHub now restricts the stargazers endpoint to a repo's own admins/collaborators, so third-party live services (star-history free tier, starchart.cc) return "Requires authentication" for everyone. This generates a static,…

Procedência

Antes de instalar

3 arquivos · 13,6 KB · inclui 1 script que executa: scripts/generate_star_history.py

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/skills/star-history-chart/.

d=".claude/skills/star-history-chart"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/git/star-history-chart"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/star-history.yml" "$u/assets/star-history.yml" \
  -o "$d/scripts/generate_star_history.py" "$u/scripts/generate_star_history.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/skills/star-history-chart/.

d="$HOME/.claude/skills/star-history-chart"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/git/star-history-chart"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/star-history.yml" "$u/assets/star-history.yml" \
  -o "$d/scripts/generate_star_history.py" "$u/scripts/generate_star_history.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: instala em .agents/skills/star-history-chart/.

d=".agents/skills/star-history-chart"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/git/star-history-chart"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/star-history.yml" "$u/assets/star-history.yml" \
  -o "$d/scripts/generate_star_history.py" "$u/scripts/generate_star_history.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.agents/skills/star-history-chart/.

d="$HOME/.agents/skills/star-history-chart"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/git/star-history-chart"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/star-history.yml" "$u/assets/star-history.yml" \
  -o "$d/scripts/generate_star_history.py" "$u/scripts/generate_star_history.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Antigravity

Neste projeto: instala em .agents/skills/star-history-chart/.

d=".agents/skills/star-history-chart"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/git/star-history-chart"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/star-history.yml" "$u/assets/star-history.yml" \
  -o "$d/scripts/generate_star_history.py" "$u/scripts/generate_star_history.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.gemini/antigravity-cli/skills/star-history-chart/.

d="$HOME/.gemini/antigravity-cli/skills/star-history-chart"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/git/star-history-chart"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/star-history.yml" "$u/assets/star-history.yml" \
  -o "$d/scripts/generate_star_history.py" "$u/scripts/generate_star_history.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Peça ao Rook

Já usa o Rook Labs? Cole no chat do Rook: instale a skill https://rooklabs.sh/marketplace/cct.star-history-chart

Prévia do SKILL.md

---
name: star-history-chart
description: Add a self-hosted "Stargazers over time" chart to any GitHub repo's README. GitHub now restricts the stargazers endpoint to a repo's own admins/collaborators, so third-party live services (star-history free tier, starchart.cc) return "Requires authentication" for everyone. This generates a static, theme-aw…
---

# Star History Chart (self-hosted, never breaks)

Add a "Stargazers over time" chart that renders from a static SVG committed to
the repo and refreshes itself weekly — no external chart service, no broken
images.

## Why this exists

GitHub now restricts the `/stargazers` endpoint to a repository's own admins and
collaborators. Unauthenticated requests return `{"message":"Requires
authentication"}`, which breaks every third-party live-chart service
(star-history.com free tier, starchart.cc, etc.) for **all** repos. The only
reliable fix is to generate the chart yourself with an authenticated token and
commit a static image. Inside GitHub Actions, the repo's own `GITHUB_TOKEN` can
read its own stargazers, so the whole thing runs with zero secrets to configure.

## What this skill sets up

1. `scripts/generate_star_history.py` — fetches stargazers (authenticated),
   renders a clean, light/dark-adaptive SVG.
2. `.github/workflows/star-history.yml` — weekly cron + manual trigger that
   regenerates and commits `docs/star-history.svg`.
3. A README section pointing at the local SVG.

## Workflow

### Step 1: Copy the script and workflow into the repo

```bash
mkdir -p scripts .github/workflows docs
cp skills/git/star-history-chart/scripts/generate_star_history.py scripts/generate_star_history.py
cp skills/git/star-history-chart/assets/star-history.yml .github/workflows/star-history.yml
```

> The script needs the `requests` package: `pip install requests`.
…

Ver todo o marketplace