Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

proj-audit

/proj-audit

Sprawdza higienę repozytorium Git i GitHub: stare gałęzie, zapomniane worktree, nieaktywne pull requesty, duplikaty i koszty Actions, a potem bezpiecznie sprząta.

Licencja
MIT
Ostatnia zmiana repozytorium
28.10.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

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

Co robi i kiedy

Sprawdza higienę repozytorium Git i GitHub: stare gałęzie, zapomniane worktree, nieaktywne pull requesty, duplikaty i koszty Actions, a potem bezpiecznie sprząta.

Argumenty

/proj-audit [clean | ci]
Oryginalny opis (EN)

Git and GitHub repo hygiene check with the `proj` CLI - stale or merged branches, orphaned or forgotten git worktrees, idle or failing pull requests, duplicate issues, outdated dependencies, GitHub Actions minutes used and CI cost hotspots - then safe branch and worktree cleanup. Use for a repo health check, cleaning up old branches or worktrees, checking PR/CI state, or finding what wastes Actions minutes. Not for reviewing code quality.

Jak działa

  1. 1. Preconditions (stop at the first that fails, say why in one line)
  2. 2. Collect (skip what the argument excludes)
  3. 3. Act only when asked
  4. 4. Report (exactly this shape, nothing more)
Sekcje z nagłówków SKILL.md, w oryginale · 38 linii, 353 słów
Podgląd SKILL.md
---
name: proj-audit
description: Git and GitHub repo hygiene check with the `proj` CLI - stale or merged branches, orphaned or forgotten git worktrees, idle or failing pull requests, duplicate issues, outdated dependencies, GitHub Actions minutes used and CI cost hotspots - then safe branch and worktree cleanup. Use for a repo health check, cleaning up old branches or worktrees, checking PR/CI state, or finding what wastes Actions minutes. Not for reviewing code quality.
argument-hint: "[clean | ci]"
allowed-tools: Bash(proj version), Bash(proj doctor *), Bash(proj perf *), Bash(proj clean), Bash(git rev-parse *), Bash(gh auth status*), PowerShell(proj version), PowerShell(proj doctor *), PowerShell(proj perf *), PowerShell(proj clean), PowerShell(git rev-parse *), PowerShell(gh auth status*)
---

# proj audit

Arguments: `$ARGUMENTS` (empty = full audit; `clean` = also apply safe cleanup; `ci` = CI cost only).

## 1. Preconditions (stop at the first that fails, say why in one line)

1. `git rev-parse --show-toplevel` must succeed. Otherwise: "Not inside a git repository." Stop.
2. `proj version` must succeed. Otherwise tell the user it needs the `proj` CLI (Node 22+):
   `npm install -g github:trexchery/project-starter` — then stop. Do not install it yourself.
3. `gh auth status` decides the mode: if it fails, or the repo has no GitHub `origin`, add `--offline`
   to every `proj` command below and say once that GitHub checks (PRs, CI, issues, minutes) were skipped.

## 2. Collect (skip what the argument excludes)

- Health: `proj doctor --json --deps [--offline]`. Parse the JSON: `repos[].findings[]` with `sev`
  (`warn` > `info` > `ok`), `what`, `fix`; `starter` is non-null when proj itself has an update.
- CI cost (online only): `proj perf --runs 20 --json`. Use `ci.totalBilled`, `ci.duplicates`, `ci.cancelled`,
  `ci.jobStats`, and the first entries of `opportunities` (already ranked by minutes).
- Cleanup preview: `proj clean` (a dry run; lists only provably merged branches and finished worktrees).

If a command exits non-zero, report its last line verbatim and continue with the others.

## 3. Act only when asked

Only when the argument is `clean`, or the user explicitly asked to clean up: run `proj clean --apply`.
It archives every branch under `refs/proj-archive/` before deleting and never touches dirty, unmerged,
locked or recently active work. Never delete or reset anything any other way (no `git branch -D`,
no `--force`, no `git worktree remove`, no `git clean`).

## 4. Report (exactly this shape, nothing more)

- Line 1: the single most useful next action, as a runnable command.
- Up to 5 findings, `warn` before `info`, each as `what -> fix`. Omit `ok` items.
- One line: `Actions minutes this month: N/limit` (when known) plus the top CI saving from `proj perf`, if any.
- One line: what `proj clean` would remove, or "nothing to clean". After `--apply`, what was removed.
- If nothing needs attention: one line saying the repo is healthy.

Wersje

W bazie nie ma innych skilli o nazwie proj-audit.

Migawka bazy z 13.11.2026 · wersja paczki 4f50825a60b4 (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

  • 100worktree-cleanup
    Hurtowo sprząta wiele nieaktualnych worktree i osierocone gałęzie, z podglądem przed usunięciem.
  • 90git-cleanup
    Sprząta repozytorium: usuwa scalone i nieaktualne gałęzie, wykrywa osierocone obiekty i sprawdza kondycję repozytoriów.
  • 100branch-hygiene
    Klasyfikuje i czyści scalone, nieaktualne i osierocone gałęzie oraz worktree w git, w tym scalenia typu squash niewidoczne dla git branch --merged.
  • 100worktree-hygiene
    Bezpiecznie usuwa scalone worktree i gałęzie Git w harnessach Epicenter: sprzątanie git worktree list, osierocone lub odłączone worktree i ocena, czy można je usunąć.
  • 100cleanup-work
    Sprząta worktree i gałęzie lokalne oraz zdalne, których pull requesty zostały scalone, na prośbę lub po scaleniu PR.
  • 100cleanup-git
    Usuwa scalone lokalne gałęzie git i nieaktualne worktrees, porządkując lokalny stan repozytorium.

Uwagi i zgłoszenia

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