statistics-infographic
БесплатноЗапускает вложенные скриптыНе проверенGenerate an eight-panel repository statistics infographic with individual-PR diff histograms and human/agent comment and commit comparisons.
от github★ 5 758 звёзд на GitHubОб этом скилле
Repository statistics infographic
Use when asked to consolidate repository-statistics slides into one image, regenerate the infographic with updated data, or verify its calculations. This is a reusable eight-panel statistical template, not an arbitrary PowerPoint screenshot collage.
The panels cover inferred PR initiation, merge/closed outcomes, start-to-merge durations, community issue outcomes, Go/JavaScript code composition, and weekly first-parent code changes, plus overlapping histograms of lines added and removed for individual PRs, and mean comments/commits per PR for human versus agent/bot comment-writer and primary-commit-author accounts. Repository names, dates, counts, proportions, and weeks come from the input, never from this skill's original dataset.
Generate
Prefer already collected source evidence. Do not fetch repository data, trigger workflows, or invent missing statistics. Keep raw data and generated images out of the repository. Use a temporary or session artifact directory.
Create a Python 3.9+ virtual environment and install the runtime manifest:
python3 -m venv /tmp/statistics-infographic-venv
/tmp/statistics-infographic-venv/bin/python -m pip install \
-r .github/skills/statistics-infographic/requirements.txt
Supply either one JSON object following examples/example.json, or a directory of existing summaries:
/tmp/statistics-infographic-venv/bin/python \
.github/skills/statistics-infographic/scripts/render_infographic.py \
--input .github/skills/statistics-infographic/examples/example.json \
--output /tmp/statistics-infographic.png
For real data, replace --input with --data-dir /path/to/summaries.
See references/data-contract.md for schemas and
statistical definitions. The example is explicitly synthetic, not a gh-aw report.
Optional arguments: --title, --font-regular, and --font-bold. Supply both font
paths together. Automatic discovery supports Arial on macOS/Windows and Liberation
Sans or DejaVu Sans on Linux. Missing fonts fail explicitly; no bitmap fallback is
used.
The output is a static, RGB, 2560 x 5040 PNG with 300-DPI metadata. A successful render atomically replaces the explicit output path. Invalid data, unreadable layout, or invalid fonts leave an existing output intact. Counts too large for their slots, more than 10 duration bands, or more than 260 weeks require a different layout; do not silently truncate, rescale text to illegibility, or aggregate data.
Recompute individual PR change sizes
The seventh panel counts individual PRs, never weeks, commits, or files.
Each census PR contributes its GitHub additions value to one bin of the added
series and its deletions value to one bin of the removed series, including zeros.
The x-axis is lines per PR; the y-axis is number of PRs. Both series use the same
equal-width integer bins; bars overlap with transparency, not stacking or mirroring.
The population includes merged, closed-unmerged, and open census PRs across all
files, unlike the Go/JS-only weekly history panel.
To recompute pr-change-histogram.json and a standalone image from cached raw
records containing individual PR number, additions, deletions, state,
and createdAt fields:
/tmp/statistics-infographic-venv/bin/python \
.github/skills/statistics-infographic/scripts/compute_pr_changes.py \
--raw-dir /path/to/raw-records \
--census /path/to/summaries/pr-initiation-assumption-summary.json \
--output-dir /path/to/summaries
This writes pr-change-histogram.json and pr-change-histogram.png (2560 x 1180).
The summary is the required pr_changes section in the combined input, or the
sixth canonical file for --data-dir. Re-render the complete image with all seven
summaries. Missing per-PR additions/deletions fail explicitly; never substitute
weekly Git totals, merge-commit churn, or missing values as zero.
The command never fetches or refreshes API snapshots. If raw PR diff statistics
are unavailable, disclose that real-data recomputation is blocked. Keep any
rendered synthetic example clearly labelled and separate.
Compare human and agent PR activity
Panel 08 counts who wrote each comment and authored each commit, never who created the PR. Each PR can contain both human and agent/bot contributions. For each author group, divide its total comments and primary-authored commits by the same entire PR census, including PRs with no contributions in that group. Use exact-rational means rounded half up to one decimal. No human contributions means zero, not an undefined or excluded PR population.
/tmp/statistics-infographic-venv/bin/python \
.github/skills/statistics-infographic/scripts/compute_pr_activity.py \
--raw-dir /path/to/raw-records \
--census /path/to/summaries/pr-initiation-assumption-summary.json \
--output-dir /path/to/summaries
Raw PRs need fully paginated `comments { t
Установить statistics-infographic в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл statistics-infographic?
Generate an eight-panel repository statistics infographic with individual-PR diff histograms and human/agent comment and commit comparisons.
Как установить скилл statistics-infographic?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл statistics-infographic запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic