analytics

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

Queries local analytics across OrchestKit projects for agent usage, skill frequency, hook timing, team activity, session replay, cost estimation, and model delegation trends. Privacy-safe with hashed project IDs. Supports time-range filtering and comparative analysis. Use when reviewing performance, estimating costs…

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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.

agentmods
npx agentmods add skills/yonatangross/orchestkit/analytics
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, 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 analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/yonatangross/orchestkit/analytics.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00062 $0.02951
Opus 5 $0.00031 $0.01476
Sonnet 5 $0.00012 $0.00590
Haiku 4.5 $0.00006 $0.00295

Measured today against content hash 350318bdbcde, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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 ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/jq-queries.md
models Model delegation from token totals in stats-cache.json. Per-spawn attribution is unavailable (#3034) stats-cache.json ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/jq-queries.md
skills Top skills by invocation count skill-usage.jsonl ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/jq-queries.md
hooks Slowest hooks and failure rates hook-timing.jsonl ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/jq-queries.md
teams Team spawn counts, idle time, task completions team-activity.jsonl ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/jq-queries.md
session Replay a session timeline with tools, tokens, timing CC session JSONL ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/session-replay.md
cost Token cost estimation with cache savings stats-cache.json ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/cost-estimation.md
trends Daily activity, model delegation, peak hours stats-cache.json ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/trends-analysis.md
summary Unified view of all categories All files ${CLAUDE_PLUGIN_ROOT}/skills/analytics/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 ${CLAUDE_PLUGIN_ROOT}/skills/analytics/references/otel-fields.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. today First seen · 144 lines · 62 tokens per session scan A 350318bdbcde

Subscribe to this mod's changes

analytics is a skill published in the GitHub repository yonatangross/orchestkit (225 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 2,951 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

adapt-architecture

Execute structural metamorphosis using strangler fig migration, chrysalis phases, and interface preservation. Covers transformation planning, parallel running, progressive cutover, rollback design, and post-metamorphosis stabilization for system architecture evolution. Use when assess-form has classified the system as…

pjt222/agent-almanac · 96 tokens

adaptic

Master skill composing the 5-step synoptic cycle for panoramic synthesis across multiple domains. Orchestrates meditate, expand-awareness, observe, awareness, integrate-gestalt, and express-insight into a coherent process that produces unified understanding rather than sequential compromise. Use when a problem…

pjt222/agent-almanac · 96 tokens

add-puzzle-type

Scaffold a new puzzle type across all 10+ pipeline integration points in jigsawR. Creates the core puzzle module, wires it into the unified pipeline (generation, positioning, rendering, adjacency), adds ggpuzzle geom/stat layers, updates DESCRIPTION and config.yml, extends the Shiny app, and creates a comprehensive…

pjt222/agent-almanac · 100 tokens

add-rcpp-integration

Add Rcpp or RcppArmadillo integration to an R package for high-performance C++ code. Covers setup, writing C++ functions, RcppExports generation, testing compiled code, and debugging. Use when an R function is too slow and profiling confirms a bottleneck, when you need to interface with existing C/C++ libraries, or…

pjt222/agent-almanac · 93 tokens

aikido

Practice aikido as a defensive martial art emphasizing harmony, redirection, and controlled resolution. Covers centering and grounding, ukemi (safe falling and rolling), core techniques (irimi-nage, shiho-nage, kote-gaeshi, ikkyo), blending and tai sabaki (body movement), randori (multiple attacker practice), weapons…

pjt222/agent-almanac · 122 tokens

analyze-codebase-for-mcp

Analyze an arbitrary codebase to identify functions, APIs, and data sources suitable for exposure as MCP tools, producing a tool specification document. Use when planning an MCP server for an existing project, auditing a codebase before wrapping it as an AI-accessible tool surface, comparing what a codebase can do…

pjt222/agent-almanac · 90 tokens