Source profileQuality 89/100Review permissions

davepoon/buildwithclaude/plugins/all-skills/skills/agent-analytics/SKILL.md

agent-analytics

Analytics your AI agent can actually use. Track, analyze, run A/B experiments, and optimize across all your projects via CLI. Includes a growth playbook so your agent knows HOW to grow, not just what to track.

Source repository stars
3,251
Declared platforms
0
Static risk flags
2
Last source update
2026-08-02
Source checked
2026-08-04

Decision brief

What it does—and where it fits

You are adding analytics tracking using Agent Analytics — the analytics platform your AI agent can actually use. Built for developers who ship lots of projects and want their AI agent to track, analyze, experiment, and optimize across all of them.

Best for

  • User wants to add analytics tracking to a website or app
  • User wants to check how their projects are doing (traffic, conversions, engagement)
  • User wants to run A/B experiments on headlines, CTAs, or flows

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/davepoon/buildwithclaude --skill "plugins/all-skills/skills/agent-analytics"
Safe inspection promptEditorial

Inspect the Agent Skill "agent-analytics" from https://github.com/davepoon/buildwithclaude/blob/13c9cb58201c74e15f8eb51522795d388ac4fe1b/plugins/all-skills/skills/agent-analytics/SKILL.md at commit 13c9cb58201c74e15f8eb51522795d388ac4fe1b. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    First-time setup

    Get an API key: Sign up at agentanalytics.sh and generate a key from the dashboard. Alternatively, self-host the open-source version from GitHub.

    Get an API key: Sign up at agentanalytics.sh and generate a key from the dashboard. Alternatively, self-host the open-source version from GitHub.If the project doesn't have tracking yet:
  2. 02

    Step 1: Add the tracking snippet

    The create command returns a tracking snippet with your project token — add it before . It auto-tracks pageview events with path, referrer, browser, OS, device, screen size, and UTM params. You do NOT need to add custom pageview events.

    The create command returns a tracking snippet with your project token — add it before . It auto-tracks pageview events with path, referrer, browser, OS, device, screen size, and UTM params. You do NOT need to add custom…
  3. 03

    Step 1b: Discover existing events (existing projects)

    If tracking is already set up, check what events and property keys are already in use so you match the naming:

    If tracking is already set up, check what events and property keys are already in use so you match the naming:
  4. 04

    Step 2: Add custom events to important actions

    Use onclick handlers on the elements that matter:

    Every link or button (too noisy)Scroll depth (not actionable)Form field interactions (too granular)
  5. 05

    Step 2b: Run A/B experiments

    Experiments let you test which variant of a page element converts better. The full lifecycle is API-driven — no dashboard UI needed.

    Experiments let you test which variant of a page element converts better. The full lifecycle is API-driven — no dashboard UI needed.Declarative (recommended): Use data-aa-experiment and data-aa-variant-{key} HTML attributes. Original content is the control. The tracker swaps text for assigned variants automatically.Programmatic (complex cases): Use window.aa?.experiment(name, variants) — deterministic, same user always gets same variant.

Permission review

Static risk signals and limitations

Runs scripts

medium · line 32

The documentation asks the agent to run terminal commands or scripts.

npx @agent-analytics/cli login --token aak_YOUR_API_KEY

Network access

medium · line 35

The documentation includes network, browsing, or remote request actions.

npx @agent-analytics/cli create my-site --domain https://mysite.com

Runs scripts

medium · line 35

The documentation asks the agent to run terminal commands or scripts.

npx @agent-analytics/cli create my-site --domain https://mysite.com

Network access

medium · line 136

The documentation includes network, browsing, or remote request actions.

create my-site --domain https://... # Create project

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score89/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars3,251SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
davepoon/buildwithclaude
Skill path
plugins/all-skills/skills/agent-analytics/SKILL.md
Commit
13c9cb58201c74e15f8eb51522795d388ac4fe1b
License
MIT
Collected
2026-08-04
Default branch
main
View the original SKILL.md

Agent Analytics — Analytics your agent can actually use

You are adding analytics tracking using Agent Analytics — the analytics platform your AI agent can actually use. Built for developers who ship lots of projects and want their AI agent to track, analyze, experiment, and optimize across all of them.

Website: agentanalytics.sh GitHub: Agent-Analytics/agent-analytics Docs: docs.agentanalytics.sh

When to Use This Skill

  • User wants to add analytics tracking to a website or app
  • User wants to check how their projects are doing (traffic, conversions, engagement)
  • User wants to run A/B experiments on headlines, CTAs, or flows
  • User wants funnel analysis, retention cohorts, or traffic breakdowns
  • User asks "how's my site doing?" or "are people visiting?"

Philosophy

You are NOT Mixpanel. Don't track everything. Track only what answers: "Is this project alive and growing?"

For a typical site, that's 3-5 custom events max on top of automatic page views.

First-time setup

Get an API key: Sign up at agentanalytics.sh and generate a key from the dashboard. Alternatively, self-host the open-source version from GitHub.

If the project doesn't have tracking yet:

# 1. Login (one time — uses your API key)
npx @agent-analytics/cli login --token aak_YOUR_API_KEY

# 2. Create the project (returns a project write token)
npx @agent-analytics/cli create my-site --domain https://mysite.com

# 3. Add the snippet using the returned token
# 4. Deploy, click around, verify:
npx @agent-analytics/cli events my-site

The create command returns a project write token — use it as data-token in the snippet. This is separate from your API key (which is for reading/querying).

Step 1: Add the tracking snippet

The create command returns a tracking snippet with your project token — add it before </body>. It auto-tracks page_view events with path, referrer, browser, OS, device, screen size, and UTM params. You do NOT need to add custom page_view events.

Step 1b: Discover existing events (existing projects)

If tracking is already set up, check what events and property keys are already in use so you match the naming:

npx @agent-analytics/cli properties-received PROJECT_NAME

Step 2: Add custom events to important actions

Use onclick handlers on the elements that matter:

<a href="..." onclick="window.aa?.track('EVENT_NAME', {id: 'ELEMENT_ID'})">

Standard events for 80% of SaaS sites

Pick the ones that apply. Most sites need 2-4:

EventWhen to fireProperties
cta_clickUser clicks a call-to-action buttonid (which button)
signupUser creates an accountmethod (github/google/email)
loginUser returns and logs inmethod
feature_usedUser engages with a core featurefeature (which one)
checkoutUser starts a payment flowplan (free/pro/etc)
errorSomething went wrong visiblymessage, page

What NOT to track

  • Every link or button (too noisy)
  • Scroll depth (not actionable)
  • Form field interactions (too granular)
  • Footer links (low signal)

Property naming rules

  • Use snake_case: hero_get_started not heroGetStarted
  • The id property identifies WHICH element: short, descriptive
  • Name IDs as section_action: hero_signup, pricing_pro, nav_dashboard

Step 2b: Run A/B experiments

Experiments let you test which variant of a page element converts better. The full lifecycle is API-driven — no dashboard UI needed.

Creating an experiment

npx @agent-analytics/cli experiments create my-site \
  --name signup_cta --variants control,new_cta --goal signup

Implementing variants

Declarative (recommended): Use data-aa-experiment and data-aa-variant-{key} HTML attributes. Original content is the control. The tracker swaps text for assigned variants automatically.

<h1 data-aa-experiment="signup_cta" data-aa-variant-new_cta="Start Free Trial">Sign Up</h1>

Programmatic (complex cases): Use window.aa?.experiment(name, variants) — deterministic, same user always gets same variant.

Checking results

npx @agent-analytics/cli experiments get exp_abc123

Returns Bayesian probability_best, lift, and a recommendation. The system needs ~100 exposures per variant before results are significant.

Step 3: Test immediately

After adding tracking, verify it works:

# Click around, then check:
npx @agent-analytics/cli events PROJECT_NAME
# Events appear within seconds.

CLI Reference

All commands use npx @agent-analytics/cli:

# Setup
login --token aak_YOUR_KEY           # Save API key (one time)
projects                              # List all projects
create my-site --domain https://...   # Create project

# Real-time
live                                  # Live TUI dashboard across ALL projects
live my-site                          # Live view for one project

# Analytics
stats my-site --days 7                # Overview: events, users, daily trends
insights my-site --period 7d          # Period-over-period comparison
breakdown my-site --property path --event page_view --limit 10  # Top pages/referrers/UTM
pages my-site --type entry            # Landing page performance & bounce rates
sessions-dist my-site                 # Session engagement histogram
heatmap my-site                       # Peak hours & busiest days
events my-site --days 30              # Raw event log
sessions my-site                      # Individual session records
properties my-site                    # Discover event names & property keys
funnel my-site --steps "page_view,signup,purchase"  # Funnel drop-off
retention my-site --period week --cohorts 8         # Cohort retention

# A/B experiments
experiments list my-site
experiments create my-site --name signup_cta --variants control,new_cta --goal signup
experiments get exp_abc123
experiments complete exp_abc123 --winner new_cta

Which endpoint for which question

User asksCallWhy
"How's my site doing?"insights + breakdown + pages (parallel)Full weekly picture
"Is anyone visiting right now?"liveReal-time visitors across all projects
"What are my top pages?"breakdown --property path --event page_viewRanked page list
"Where's my traffic coming from?"breakdown --property referrer --event page_viewReferrer sources
"Are people actually engaging?"sessions-distBounce vs engaged split
"When should I deploy?"heatmapFind low-traffic windows
"Where do users drop off?"funnel --steps "page_view,signup,purchase"Step-by-step conversion
"Are users coming back?"retention --period week --cohorts 8Cohort retention
"Which CTA converts better?"experiments create + experiments getA/B test lifecycle

For any "how is X doing" question, always call insights first — it's the single most useful endpoint.

Examples

Track custom events via window.aa?.track():

window.aa?.track('cta_click', {id: 'hero_get_started'});
window.aa?.track('signup', {method: 'github'});
window.aa?.track('feature_used', {feature: 'create_project'});
window.aa?.track('checkout', {plan: 'pro'});

What this skill does NOT do

  • No GUI dashboards — your agent IS the dashboard (or use live for a real-time TUI)
  • No user management or billing
  • No PII stored — IP addresses are not logged or retained. Privacy-first by design

Alternatives

Compare before choosing

Computed 100165

JasonColapietro/suede-creator-skills

suede-ab-testing

Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).

Computed 1007

narrative-io/narrative-skills-marketplace

design-analysis

Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "

Computed 9623,781

alirezarezvani/claude-skills

ab-test-setup

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

Computed 9682

aAAaqwq/AGI-Super-Team

ab-test-setup

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.