analytics

analytics is a skill for Claude Code from yonatangross/orchestkit. It costs 36 tokens per session (2,692 once invoked), scanned A, original, MIT.

A tool for querying local records about coding-agent use across OrchestKit projects. It reports agent and skill usage, hook timing, team activity, session replays, token and cost totals, and model delegation trends using privacy-safe project identifiers.

In plain words
What is it for?
Use it to review agent or skill frequency, inspect hook performance and failures, compare team activity, examine sessions, and estimate token or model costs.
Why use it?
It replaces guesswork with counts from local analytics files and helps identify slow or failing hooks, usage patterns, and estimated costs. The data stays local and project IDs are hashed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Part of the ork plugin — 83 skills, 39 commands, 36 agents, 32 hooks shipped together

Good fit Use it to review agent or skill frequency, inspect hook performance and failures, compare team activity, examine sessions, and estimate token or model costs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yonatangross/orchestkit/analytics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yonatangross/orchestkit --skill analytics
Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 83 skills, 39 commands, 36 agents, 32 hooks.

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 analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/yonatangross/orchestkit/analytics/github.svg)](https://agentmods.dev/skills/yonatangross/orchestkit/analytics)
Your own site
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/analytics"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/analytics/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 analytics

Your own site · 80×15
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/analytics"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,692 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 16
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00036 $0.02692
Opus 5.5 $0.00014 $0.01077
Sonnet 5.5 $0.00007 $0.00538
Haiku 4.5 $0.00004 $0.00269

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

Security

Grade A, and why

analytics 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 6d 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.

plugins/ork/skills/analytics/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cross-Project Analytics

Query local analytics data from ~/.claude/analytics/. All data is local-only, privacy-safe (hashed project IDs, no PII).

Answer usage questions from the local files, never from guesswork: agent usage (which agents and how often — not which model, see the caveats) lives in ~/.claude/analytics/agent-usage.jsonl; hook performance and failures live in ~/.claude/analytics/hook-timing.jsonl; token and cost totals live in ~/.claude/stats-cache.json. Query them with jq one-liners (below) and present real counts, not pointers to dashboards.

Subcommands

Parse the user's argument to determine which report to show. If no argument provided, use AskUserQuestion to let them pick.

Subcommand Description Data Source Reference
agents Top agents by frequency and success rate (duration/model unavailable — #3034) agent-usage.jsonl references/jq-queries.md
models Model delegation from token totals in stats-cache.json. Per-spawn attribution is unavailable (#3034) stats-cache.json references/jq-queries.md
skills Top skills by invocation count skill-usage.jsonl references/jq-queries.md
hooks Slowest hooks and failure rates hook-timing.jsonl references/jq-queries.md
teams Team spawn counts, idle time, task completions team-activity.jsonl references/jq-queries.md
session Replay a session timeline with tools, tokens, timing CC session JSONL references/session-replay.md
cost Token cost estimation with cache savings stats-cache.json references/cost-estimation.md
trends Daily activity, model delegation, peak hours stats-cache.json references/trends-analysis.md
summary Unified view of all categories All files references/jq-queries.md
otel CC 2.1.117 + 2.1.122 + 2.1.126 OTEL enrichments: top slash commands (user vs model), per-effort cost, effort-vs-success correlation, skill activation by trigger type, most-mentioned @ targets ~/.claude/otel/*.jsonl, or user-named Loki + Prometheus endpoints after schema discovery references/otel-fields.md, references/otel-gateway-source.md

Read the full file on GitHub · 144 lines

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. 6d ago Changed cdef734f0832
  2. 8d ago Changed d140d1fe60fb
  3. 12d ago Changed 012851aed6ca
  4. 27d ago Changed · -26 tokens per session 9e7f3ecd8e6f
  5. 1mo ago Changed · +1 lines d22f1f488117
  6. 2mo ago Changed c5f082c181e7
  7. 2mo ago Changed · -1 lines 98e41961d307
  8. 2mo ago Changed 91d0aded81ec
  9. 2mo ago Changed 5e47aff7d25f
  10. 2mo ago First seen · 144 lines · 62 tokens per session scan A 29f6883c3d87

Subscribe to this mod's changes

analytics is a skill published in the GitHub repository yonatangross/orchestkit (312 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 2,692 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-09-03.

Related

analytics compared with skills from other repositories

analytics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyticsyonatangross/orchestkitSkill312todayMITA36Claude Code
Agent Workflow Buildereddiebelaval/squireSkill213mo agoMITA19Claude Code, Codex
implement-outlinehumanlayer/humanlayerSkill13k8d agoApache-2.0A15Claude Code, Codex
web-researchshibing624/agenticaSkill368yesterdayApache-2.0A24Claude Code, Codex
stall-resetSnowflake-Labs/cocoplusSkill72924d agoMITA14Claude Code, Codex
time-steppingHeshamFS/materials-simulation-skillsSkill9515d agoApache-2.0A108Claude Code
ai-multi-agent-systemsj4flmao/agent-skillsSkill4614d agoMITA88Claude Code, Codex