RepoGrammar: Skill for Claude Code

.agents/skills/telemetry-and-metrics/SKILL.md

telemetry-and-metrics is a skill for Claude Code, Codex from SioYooo/RepoGrammar. It costs 27 tokens per session (402 once invoked), scanned A, original, MIT.

A set of project instructions for changing telemetry and measurement code. Telemetry is data a program reports about its use, while metrics are recorded measurements.

In plain words
What is it for?
Use it when changing telemetry schemas, consent handling, metric reporting, token measurement, research traces, or related verification and documentation.
Why use it?
It helps keep usage data privacy-preserving, obtain consent correctly, and distinguish measured results from estimates or derived claims.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is SioYooo/RepoGrammar's own configuration. It tells Claude Code and Codex how to work on RepoGrammar 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 RepoGrammar configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SioYooo/RepoGrammar. 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/SioYooo/RepoGrammar/main/.agents/skills/telemetry-and-metrics/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SioYooo/RepoGrammar

Made for: Claude Code, Codex.

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 telemetry-and-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/sioyooo/repogrammar/telemetry-and-metrics.svg)](https://agentmods.dev/skills/sioyooo/repogrammar/telemetry-and-metrics)
Your own site
<a href="https://agentmods.dev/skills/sioyooo/repogrammar/telemetry-and-metrics"><img src="https://agentmods.dev/badge/skills/sioyooo/repogrammar/telemetry-and-metrics.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 402 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.
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.00027 $0.00402
Opus 5 $0.00014 $0.00201
Sonnet 5 $0.00005 $0.00080
Haiku 4.5 $0.00003 $0.00040

Measured 7d ago against content hash 7b332862caf1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

telemetry-and-metrics 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 7d ago.

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.

.agents/skills/telemetry-and-metrics/SKILL.md · 61 lines

What it actually says

Purpose

Keep telemetry privacy-preserving and metric claims auditable.

Trigger conditions

Use when editing repogrammar stats, repogrammar telemetry, telemetry ports, anonymous telemetry schema, research trace collection, or token metrics.

Required reading

  • docs/specifications/telemetry.md
  • docs/specifications/metrics.md
  • docs/decisions/ADR-0007-safe-install-progress-telemetry.md

Preconditions

  • Separate anonymous product telemetry from research trace consent.
  • Confirm telemetry is disabled in CI and by environment opt-out.
  • Confirm metric kind is one of MEASURED, DERIVED, ESTIMATED, or CAUSAL_EXPERIMENT.

Step-by-step procedure

  1. Use the versioned allowlist schema.
  2. Reject code, paths, repository names, symbols, prompts, query text, evidence text, environment variables, credentials, and raw error messages.
  3. Use coarse buckets and typed error codes.
  4. Avoid telemetry latency on MCP calls.
  5. Honor REPOGRAMMAR_TELEMETRY=0 and DO_NOT_TRACK=1.
  6. Do not report derived context compression as actual token savings.
  7. Require a comparable baseline before reporting token savings.

Required verification

Run unit tests for consent, environment disablement, schema allowlist, and metric classification.

Documentation updates

Update telemetry and metrics specifications with any schema or claim change.

Commit requirements

Commit code, tests, and docs together. Do not commit local telemetry exports.

Completion report

Report schema version, consent behavior, metric kinds, and any disabled data collection paths.

Failure and rollback handling

If a telemetry field could reveal source, user, repository, or prompt content, remove it before merging.

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. 7d ago First seen · 61 lines · 27 tokens per session scan A 7b332862caf1

Subscribe to this mod's changes

telemetry-and-metrics is a skill published in the GitHub repository SioYooo/RepoGrammar (0 stars, last pushed 4d ago), licensed MIT. It adds 27 tokens to every session and 402 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

grape

Use Grape MCP for Codex context continuity in coding repositories. Use when a task needs repeated-turn context, omitted context restore, stale-context checks, invalidation checks, or safe continuity across branch and dirty-worktree changes.

gael55x/Grape · 48 tokens

rate-buildermark

Rate this Claude Code conversation (0-5 scale).

gelatinousdevelopment/buildermark · 15 tokens

contextlock

Safely inspect a repository through the ContextLock MCP server. Use when exploring, searching, reviewing, or auditing repository files with ContextLock, especially before reading unfamiliar code or when sensitive files and secrets may be present.

LutaElbert/contextlock · 46 tokens

clinical-case-report

Structured medical case presentation for clinical rounds, conferences, and documentation. Generates SOAP-format or narrative case reports with physiologically accurate vitals, labs, and evidence-based plans. Use when the brief mentions "case report", "case presentation", "SOAP note", "clinical case", "ward rounds"…

nexu-io/open-design · 73 tokens

dcf-valuation

Discounted cash flow valuation and intrinsic value analysis for public companies. Use when the brief asks for DCF, fair value, intrinsic value, price target, undervalued or overvalued analysis, or "what is this company worth?".

nexu-io/open-design · 55 tokens

digital-eguide

A two-spread digital e-guide preview — page 1 is a cover (display title, author, "What's inside" stats, table of contents teaser); page 2 is a spread (lesson body with pull-quote and a step list). Lifestyle / creator brand tone. Use when the brief asks for an "e-guide", "digital guide", "lookbook", "lead magnet"…

nexu-io/open-design · 103 tokens