ariadne: Skill for Claude Code

.claude/skills/mcp-analytics/SKILL.md

mcp-analytics is a skill for Claude Code from CRJFisher/ariadne. It costs 21 tokens per session (451 once invoked), scanned A, original, MIT.

A reporting skill for Ariadne MCP usage. MCP is a standard way for an AI agent to call external tools, and Ariadne stores usage records in JSONL files, which are line-by-line JSON logs.

In plain words
What is it for?
Use it to inspect total sessions, tool-call counts, per-tool performance and failures, recent sessions, or one session’s details.
Why use it?
It avoids manually counting sessions and tool calls or calculating durations and error rates from log files.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to CRJFisher/ariadne. 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/CRJFisher/ariadne/main/.claude/skills/mcp-analytics/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/CRJFisher/ariadne

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 mcp-analytics

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/crjfisher/ariadne/mcp-analytics"><img src="https://agentmods.dev/badge/skills/crjfisher/ariadne/mcp-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 451 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: 3 findings, 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 MCP Rug Pull · line 19
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 25
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 31
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00021 $0.00451
Opus 5 $0.00010 $0.00226
Sonnet 5 $0.00004 $0.00090
Haiku 4.5 $0.00002 $0.00045

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

Security

Grade A, and why

mcp-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 9d 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.

.claude/skills/mcp-analytics/SKILL.md · 55 lines

What it actually says

MCP Analytics

Query Ariadne MCP tool usage analytics from JSONL files.

When to Use

Use when the user asks about MCP tool usage, session history, or analytics (e.g., "check my MCP analytics", "how many tool calls today", "show recent MCP sessions").

How to Use

Run the analytics CLI:

npx tsx packages/mcp/src/scripts/ariadne_analytics.ts

For time-filtered results:

npx tsx packages/mcp/src/scripts/ariadne_analytics.ts --since 2026-02-17

For per-session detail:

npx tsx packages/mcp/src/scripts/ariadne_analytics.ts --session <session-id>

The data directory defaults to ~/.ariadne/analytics/. Override with ARIADNE_ANALYTICS_DIR env var.

Interpreting Results

  • Total sessions: Number of MCP server process startups with analytics enabled
  • Total tool calls: Aggregate count across all sessions
  • Calls by tool: Breakdown showing call count, average duration, and failure count per tool
  • Recent sessions: Last N sessions with client info, project path, and call count

High failure counts or increasing average durations indicate performance issues worth investigating.

Optional: SQLite Import

The JSONL files can be converted to CSV and imported into SQLite for ad-hoc queries:

cd ~/.ariadne/analytics
jq -r '[.session_id, .started_at, .project_path, .client_name, .client_version] | @csv' sessions.jsonl > sessions.csv
jq -r '[.session_id, .tool_name, .called_at, .duration_ms, .success, .error_message, .arguments, .request_id, .tool_use_id] | @csv' tool_calls.jsonl > tool_calls.csv
sqlite3 analytics.db ".mode csv" ".import sessions.csv sessions" ".import tool_calls.csv tool_calls"
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. 9d ago First seen · 55 lines · 21 tokens per session scan A 1c88641f9d04

Subscribe to this mod's changes

mcp-analytics is a skill published in the GitHub repository CRJFisher/ariadne (22 stars, last pushed 6d ago), licensed MIT. It adds 21 tokens to every session and 451 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-30.

Related

Other skills, from other repositories

sem

Use sem to get entity-level (function/class/method) semantic diffs, impact analysis, blame, and dependency context from any Git repo. Trigger this skill whenever the user asks what changed in a commit or PR, wants to understand the blast radius of a change, needs to know who last modified a function, wants to trace…

Ataraxy-Labs/sem · 112 tokens

sem

Semantic version control CLI. Entity-level diffs for Git (functions, classes, methods instead of lines).

Ataraxy-Labs/sem · 0 tokens

tree-sitter-language-pack

Parse and extract code intelligence from 371 programming languages using tree-sitter grammars. Use when writing code that parses source, extracts structure/imports/exports/symbols/docstrings/comments, detects a language, runs syntax diagnostics, or produces syntax-aware chunks for LLMs — in Rust, Python…

xberg-io/tree-sitter-language-pack · 95 tokens

extracting-code-structure

Use when the user wants structured code metadata from a source file — functions, classes, imports, exports, symbols, docstrings, comments, or syntax diagnostics. Covers ts-pack process feature flags, the JSON result shape, and the default feature set.

xberg-io/tree-sitter-language-pack · 58 tokens

chunking-for-llms

Use when the user wants to split source code into chunks for an LLM context window without breaking syntax mid-construct. Covers ts-pack process --chunk-size, why syntax-aware splits beat fixed-byte splits, picking a size, and the chunk JSON shape.

xberg-io/tree-sitter-language-pack · 59 tokens

detecting-languages

Use when the user wants to know which programming language a file or snippet is. Covers implicit detection in ts-pack parse/process, confirming support with ts-pack list/info, and the SDK detection functions for path, extension, and raw content.

xberg-io/tree-sitter-language-pack · 60 tokens