branch-stats
/branch-stats
Podsumowuje zmienione linie na gałęzi względem main: kategorie, największe pliki i podział na commity.
- Autor
- JellyPuddy ↗
- Repozytorium
- quartermaster ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 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
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
- Categories
- After the tables
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.