github-metrics
/github-metrics
Liczy metryki kondycji społeczności GitHub przez gh CLI: pull requesty, zgłoszenia, średnie czasy scalania, najaktywniejsi autorzy i raporty błędów w wybranym okresie.
- Autor
- cxcscmu ↗
- Repozytorium
- SkillLearnBench ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 02.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 02.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Liczy metryki kondycji społeczności GitHub przez gh CLI: pull requesty, zgłoszenia, średnie czasy scalania, najaktywniejsi autorzy i raporty błędów w wybranym okresie.
Oryginalny opis (EN)
How to calculate GitHub community pulse metrics using the `gh` CLI. Use this skill whenever the user asks for pull request metrics, issue metrics, community pulse, average merge times, top contributors, or bug reports over a specific timeframe.
Jak działa
- Tools to use
- Fetching PR Metrics
- Fetching Issue Metrics
- Best Practices
Podgląd SKILL.md
--- name: github-metrics description: "How to calculate GitHub community pulse metrics using the `gh` CLI. Use this skill whenever the user asks for pull request metrics, issue metrics, community pulse, average merge times, top contributors, or bug reports over a specific timeframe." --- # GitHub Community Metrics (gh-pulse) Use this skill when you need to calculate metrics about GitHub repositories, such as PRs created, issues created, average merge times, and top contributors. ## Tools to use You should use the `gh` CLI for querying GitHub's API. To get raw data over a specific timeframe, you should leverage the `--search` flag with date queries. ## Fetching PR Metrics To fetch PRs created within a month (e.g., Dec 2024), use: ```bash gh pr list -R <owner>/<repo> --search "created:2024-12-01..2024-12-31" --state all --json number,state,createdAt,mergedAt,author --limit 1000 ``` This gives you a JSON array of PR objects. You can then process this JSON using tools like `jq` or a small Python script to calculate: - **Total**: Length of the array. - **Merged**: Count where `state` is "MERGED" (or where `mergedAt` is not null). Note that GitHub CLI's `state` field might say `MERGED` or it might just say `CLOSED` with a `mergedAt` timestamp depending on the query, so prefer using `mergedAt` or `state`. - **Closed**: Count where `state` is "CLOSED" and it's not merged. - **Average Time-to-Merge**: For each merged PR, parse `createdAt` and `mergedAt` (ISO 8601), compute the difference in days, sum them up, divide by merged count. Round to one decimal. - **Top Contributor**: Tally `author.login` of each PR, find the maximum. ## Fetching Issue Metrics To fetch Issues created within a timeframe, use: ```bash gh issue list -R <owner>/<repo> --search "created:2024-12-01..2024-12-31 is:issue" --state all --json number,state,labels --limit 1000 ``` - **Total**: Length of the array. - **Bugs**: Filter where at least one label's name contains "bug" (case-insensitive substring). - **Resolved/Closed Bugs**: Of those bugs, count how many have `state` as "CLOSED". ## Best Practices - Write a short Python script to orchestrate the `gh` calls and compute metrics. This is much more reliable and robust than attempting complex bash strings. - Always add `--limit` large enough to capture the month's activity (e.g., `--limit 1000`).
Wersje
W bazie nie ma innych skilli o nazwie github-metrics.
Migawka bazy z 13.11.2026 · wersja paczki e5e746f29b05 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100gh-activity-query
Pobiera przez gh CLI aktywność repozytorium GitHub (pull requesty, zgłoszenia) z wybranego zakresu dat i liczy statystyki, takie jak liczby, czasy scalania i najaktywniejsi współautorzy. - 100gh-pr-analysis
Pobiera i analizuje dane pull requestów repozytorium GitHub z wybranego okresu: liczby, odsetek scalonych, średni czas do scalenia i najaktywniejsi współautorzy. - 100evo-gh-report-generator
Liczy metryki aktywności społeczności z surowych danych o PR i issues i zapisuje raport report.json: liczba PR według stanu, średni czas do merge, najaktywniejszy kontrybutor i liczba błędów. - 100github-dashboard
Tworzy panel analityczny repozytorium GitHub: gwiazdki, forki, współautorzy, zgłoszenia, pull requesty, ostatnia aktywność i najaktywniejsi autorzy. - 100pulse-weekly
Tworzy tygodniowy raport HTML o społeczności z Discorda i WhatsAppa: aktywność, zaangażowanie, trendy nastrojów, najaktywniejsi autorzy, wnioski produktowe i luki w dokumentacji. - 90community-pulse
Bada nastroje społeczności, zgłoszenia błędów i prośby o funkcje dotyczące Claude Code przez wyszukiwanie Exa.