agent-analytics

agent-analytics is a skill for Claude Code, Codex from alisunstar/OpenSunstar. It costs 42 tokens per session (3,586 once invoked), scanned A, original, Apache-2.0.

A product-analytics skill for using an AI agent to understand how people use a product. It works with consent-based tracking and reads data such as funnels, paths, retention, experiments, and user feedback through the Agent Analytics command-line tool.

In plain words
What is it for?
Use it to install analytics tracking, inspect events and properties, analyse funnels and journeys, study retention and experiments, and review sessions or feedback.
Why use it?
It helps turn product-usage data into an explanation of where users drop off or what they do next. It also supports choosing a small, evidence-based growth action.

Skill for Claude CodeCodex

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/alisunstar/opensunstar/agent-analytics
Any agent
npx skills add alisunstar/OpenSunstar --skill agent-analytics
Clone the repo
git clone --depth 1 https://github.com/alisunstar/OpenSunstar

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/alisunstar/opensunstar/agent-analytics.svg)](https://agentmods.dev/skills/alisunstar/opensunstar/agent-analytics)
Your own site
<a href="https://agentmods.dev/skills/alisunstar/opensunstar/agent-analytics"><img src="https://agentmods.dev/badge/skills/alisunstar/opensunstar/agent-analytics.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00042 $0.03586
Opus 5 $0.00021 $0.01793
Sonnet 5 $0.00008 $0.00717
Haiku 4.5 $0.00004 $0.00359

Measured 4d ago against content hash d633eb5a6563, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-analytics scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Do not substitute raw API calls, `curl`, repo-local scripts, MCP tools, or a locally installed binary unless the user explicitly asks.
src-tauri/skills/agent-analytics/SKILL.md · 198 lines

How it starts

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

Agent Analytics

Product analytics with your AI agent. Use this skill when a user wants an agent to install Agent Analytics, query product behavior, diagnose activation or retention, inspect paths and funnels, run experiment reads, or decide what growth action to take next.

The CLI is the execution substrate. Start from the user's codebase, project goals, and product workflows whenever repo access exists. Framework recipes belong in references/growth-recipes.md, not as separate skills.

Mandatory execution policy

  • For live Agent Analytics work, use npx --yes @agent-analytics/[email protected] <command>.
  • Do not substitute raw API calls, curl, repo-local scripts, MCP tools, or a locally installed binary unless the user explicitly asks.
  • Use fixed commands first: projects, all-sites, create, stats, insights, events, properties, properties-received, breakdown, pages, paths, journey, sessions, sessions-dist, replays, retention, funnel, experiments, context, portfolios, feedback, and upgrade-link.
  • There is no report command in CLI 0.5.34. Produce the final report yourself from fixed-command outputs instead of calling report.
  • Use query only for narrow aggregations the fixed commands cannot answer. Do not start broad growth diagnosis with query; do not build --filter JSON from raw user text.
  • Default to browser approval. Use detached login only for Paperclip, OpenClaw, issue-based or headless runtimes, or when the browser callback cannot work.
  • Do not ask for raw API keys or secrets. Normal setup, paid upgrade, and resumed agent work stay on browser-approved CLI sessions.
  • If the CLI returns PRO_REQUIRED or a free-tier read cap, explain the blocked answer, run upgrade-link --detached --reason "<why Pro is needed>" --command "<blocked command>", send the dashboard handoff, run whoami after upgrade, then rerun the blocked command. Use upgrade-link --wait only when polling is intentionally desired. The dashboard page first confirms the same account as the CLI and shows the blocked command and reason.
  • Validate project names before create: ^[a-zA-Z0-9._-]{1,64}$.

Read the full file on GitHub · 198 lines

Files

What ships with it

6 files 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. 4d ago First seen · 198 lines · 42 tokens per session scan A d633eb5a6563

Subscribe to this mod's changes

agent-analytics is a skill published in the GitHub repository alisunstar/OpenSunstar (40 stars, last pushed 20d ago), licensed Apache-2.0. It adds 42 tokens to every session and 3,586 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

analytics

Growth analytics authority — GA4 event tracking, conversion funnels, attribution models, cohort analysis, A/B testing, Supabase analytics queries, and revenue reporting patterns.

LuuOW/meridian-mcp · 33 tokens

ab-test-generator

Generate A/B test variants for affiliate content. Triggers on: "create A/B test", "test my headline", "optimize my CTA", "generate variants", "split test ideas", "improve click-through rate", "test my landing page copy", "headline alternatives", "CTA variations", "which version is better", "optimize conversions"…

Affitor/affiliate-skills · 87 tokens

growth-guide

增长负责人方案产出指南。当用户提出增长需求、需要产出增长策略时触发。覆盖场景:增长体系搭建、渠道拓展、单渠道优化、增长引擎升级、增长探索。先识别需求属于5类场景中的哪一类(0到1增长体系搭建/中大型增长项目/小优化渠道调整/增长引擎升级/增长探索策略研究),再按对应场景的产出清单生成完整方案。.

genapohub/growth-guide · 107 tokens

conversion-optimizer

!cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat skills/shared/protocols/tool-efficiency.md 2>/dev/null || true !cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults".

buiphucminhtam/forgewright · 62 tokens

agent-identity-evolution

Watch your agent's identity evolve from its own experience — continuous discovery, genome snapshots, and growth tracking.

live-neon/persona-mcp · 26 tokens

growth-product-context

Discovers user journeys by scanning Laravel routes, controllers, and models, then proposes a product context with AARRR pirate metrics event names. Use when the user asks to map user journeys, define product context, create PRODUCT.md, discover what to track, set up analytics events, or define their funnel. Also…

meirdick/growth-product-context · 126 tokens