Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

branch-stats

/branch-stats

Podsumowuje zmienione linie na gałęzi względem main: kategorie, największe pliki i podział na commity.

Repozytorium
quartermaster ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/branch-stats.sh

Co robi i kiedy

Podsumowuje zmienione linie na gałęzi względem main: kategorie, największe pliki i podział na commity.

Wyzwalacze z opisu

how big is this PRlines changed per commithow much of this is tests/generated code
Oryginalny opis (EN)

Rundown of lines changed on the current branch versus main - totals by category (backend, frontend, tests, generated, docs, ...), largest files, and a per-commit breakdown. Use when the user asks "how big is this PR", "lines changed per commit", "how much of this is tests/generated code", or invokes /branch-stats [base-ref].

Jak działa

  1. Categories
  2. After the tables
Sekcje z nagłówków SKILL.md, w oryginale · 38 linii, 262 słów
Podgląd SKILL.md
---
name: branch-stats
description: Rundown of lines changed on the current branch versus main - totals by category (backend, frontend, tests, generated, docs, ...), largest files, and a per-commit breakdown. Use when the user asks "how big is this PR", "lines changed per commit", "how much of this is tests/generated code", or invokes /branch-stats [base-ref].
---

# Branch stats

Run the bundled script from the repository root and relay its output verbatim as the answer.
It prints markdown that renders as-is in the terminal:

```bash
~/.claude/skills/branch-stats/scripts/branch-stats.sh [base-ref] [head-ref]
```

- `base-ref` defaults to `origin/main` (fetched first; falls back to `main`). Pass another ref
  for stacked branches, e.g. the parent branch of the stack.
- `head-ref` defaults to `HEAD`.
- Line counts are `git diff --numstat` against the merge base. Per-commit rows sum to more than
  the branch total when later commits rework files from earlier ones; the script says so in the
  table caption, do not re-explain it.

qm's diff pane (📊) runs the same script and parses its markdown, so keep its output format when
editing it.

## Categories

Classification is by path, in this priority order: generated (`__generated__/`, a generated API
client under `app/javascript/api/`, `*.generated.*`, `db/schema.rb`, lockfiles), tests (`spec/`,
`test/`, `__tests__/`, `*.spec.*`, `*.test.*`, `e2e/`), openapi (`docs/api/`), docs (`docs/`,
`*.md`), locales (`config/locales/`), migration (`db/migrate/`), frontend (`app/javascript/`,
`.erb`, `.tsx`, `.css`), config (Gemfile, package.json, lint/TS configs, `.github/`), everything
else backend. Edit the `cat()` function in the script to change this for a repository with a
different layout.

## After the tables

Add two or three sentences of what stands out, drawn from the numbers: which commit carries the
real change, whether a big commit is mostly generated fan-out (locale JSON, a generated API
client), and the approximate hand-written non-test surface (backend + frontend + docs + openapi +
locales). Do not restate the tables in prose, and do not editorialize about whether the PR is too
large unless asked.
Pliki w paczce (2)
  • SKILL.md 2 KB
  • scripts/branch-stats.sh 4 KB

Wersje

W bazie nie ma innych skilli o nazwie branch-stats.

Migawka bazy z 13.11.2026 · wersja paczki b274568ff439 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100load-branch-changes
    Wczytuje do kontekstu sesji zmiany bieżącej gałęzi git, czyli diff, commity i zmienione pliki względem gałęzi bazowej, aby je przejrzeć i zrozumieć.
  • 95reviews
    Przegląda zmiany w kodzie na bieżącej gałęzi, analizuje ostatnie commity i ocenia jakość kodu aktywnej gałęzi względem głównej.
  • 90commit-push-main
    Commituje i wypycha zmiany bezpośrednio do domyślnej gałęzi na wyraźną prośbę, bez gałęzi roboczej i pull requestu.
  • 90commit-push-current
    Commituje i wypycha zmiany do bieżącej gałęzi na prośbę człowieka, bez tworzenia gałęzi i pull requestu.
  • 100write-frontend-tests
    Planuje i pisze testy integracyjne dla zmienionych stron i komponentów frontendu, na podstawie różnicy gałęzi względem dev.
  • 100commit-push
    Zatwierdza zmiany i wypycha je na zdalną gałąź bieżącego repozytorium, z ochroną gałęzi main i master.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.