rosetta: Skill for Claude Code

.claude/skills/collect-github-stats/SKILL.md

collect-github-stats is a skill for Claude Code from griddynamics/rosetta. It costs 18 tokens per session (425 once invoked), scanned A, original, Apache-2.0.

A tool that gathers health and usage information for a GitHub repository and saves the combined data as JSON.

In plain words
What is it for?
Use it to update a repository statistics file with data such as traffic and usage information. It can optionally add company and location details for organizations associated with the repository.
Why use it?
It avoids manually collecting repository statistics and preserves existing historical data while adding new results. It also reports when required GitHub access is missing.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

This is griddynamics/rosetta's own configuration. It tells Claude Code how to work on rosetta itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rosetta configures →

Reuse

Borrowing it

Nothing to install: this file belongs to griddynamics/rosetta. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/griddynamics/rosetta/main/.claude/skills/collect-github-stats/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for collect-github-stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/griddynamics/rosetta/collect-github-stats/github.svg)](https://agentmods.dev/skills/griddynamics/rosetta/collect-github-stats)
Your own site
<a href="https://agentmods.dev/skills/griddynamics/rosetta/collect-github-stats"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/collect-github-stats/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for collect-github-stats

Your own site · 80×15
<a href="https://agentmods.dev/skills/griddynamics/rosetta/collect-github-stats"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/collect-github-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00425
Opus 5.5 $0.00007 $0.00170
Sonnet 5.5 $0.00004 $0.00085
Haiku 4.5 $0.00002 $0.00042

Measured 27d ago against content hash 6661a0a53249, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

collect-github-stats scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/collect_stats.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/collect-github-stats/SKILL.md · 40 lines

What it actually says

collect-github-stats

Runs one script: fetch GitHub stats for a repo, merge into docs/github-stats.json.

Run (MUST)

python3 <skill_dir>/scripts/collect_stats.py [--repo OWNER/NAME] [--out PATH] [--no-enrich]

Defaults: --repo griddynamics/rosetta, --out docs/github-stats.json. MUST run from repo root (or pass absolute --out). --no-enrich skips company/location lookups.

CRITICAL

  • NEVER DELETE OR OVERWRITE docs/github-stats.json. Script APPEND-MERGES. Traffic is a 14-DAY ROLLING WINDOW — deleted history is GONE FOREVER, unrecoverable from the API.
  • PUSH ACCESS REQUIRED. No push → traffic 403 → script FAILS LOUD with fix steps. MUST NOT accept a partial file.

Rules (MoSCoW)

  • MUST have gh authenticated, repo scope, push access to the target repo.
  • SHOULD relay the script's post-run summary to the user.
  • COULD normalize company variants when REPORTING; MUST NOT mutate stored raw values.
  • WON'T fabricate cloner identity (cloners are ANONYMOUS — counts only), store PII/secrets.

If you learned something new which is reusable, there are process efficiency improvements, you can prevent failures in the future, update ## Lessons learned below for self-improvement.

Lessons learned (self-improvement, keep updating, first line is template, keep template, follow "", high confidence only):

  • <key action item, less then 7 words> <concise/terse: what happened, why, root cause, reasoning, less then 25 words>.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago Changed 6661a0a53249
  2. 1mo ago First seen · 40 lines · 18 tokens per session scan A 5b0c4acfb9c4

Subscribe to this mod's changes

collect-github-stats is a skill published in the GitHub repository griddynamics/rosetta (360 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 425 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.