swapnildahiphale/opensre/analytics-amplitude

Claude Code and agent skill by swapnildahiphale/opensre

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Amplitude product analytics. Use when querying user events, funnels, retention, or product usage data. Provides event segmentation, user activity lookup, and annotation queries.

Install

npx vskill@latest install swapnildahiphale/opensre/analytics-amplitude

SKILL.md

The same SKILL.md was published earlier as swapnildahiphale/opensre/analytics-amplitude.

Amplitude Analytics

Authentication

IMPORTANT: Credentials are injected automatically by a proxy layer. Do NOT check for AMPLITUDE_API_KEY or AMPLITUDE_SECRET_KEY in environment variables — they won't be visible to you. Just run the scripts directly; authentication is handled transparently.

Configuration environment variables you CAN check (non-secret):

  • AMPLITUDE_REGION — Region: US (default) or EU

Available Scripts

All scripts are in .claude/skills/analytics-amplitude/scripts/

query_events.py — Event Segmentation

Query event counts, uniques, averages over time. This is the primary analytics query.

bash
# Basic: count unique users who triggered an event
python .claude/skills/analytics-amplitude/scripts/query_events.py \
--event "Button Clicked" --start 2026-02-10 --end 2026-02-17
# Group by property
python .claude/skills/analytics-amplitude/scripts/query_events.py \
--event "Page Viewed" --start 2026-02-10 --end 2026-02-17 \
--group-by "platform"
# Daily interval with totals metric
python .claude/skills/analytics-amplitude/scripts/query_events.py \
--event "Error Occurred" --start 2026-02-10 --end 2026-02-17 \
--interval daily --metric totals
# With filters
python .claude/skills/analytics-amplitude/scripts/query_events.py \
--event "Purchase Completed" --start 2026-02-10 --end 2026-02-17 \
--filters '[{"subprop_type": "event", "subprop_key": "platform", "subprop_op": "is", "subprop_value": ["iOS"]}]'

Arguments:

  • --event (required): Event name exactly as tracked
  • --start / --end (required): Date range (YYYYMMDD or YYYY-MM-DD)
  • --interval: realtime, daily, weekly, monthly (default: realtime). Note: hourly is not available on all Amplitude plans.
  • --metric: uniques, totals, avg, pct_dau (default: uniques)
  • --group-by: Event property to segment by
  • --filters: JSON array of property filters
  • --raw: Output full JSON response
get_user_activity.py — User Activity Stream

Look up a specific user's event stream. Useful for debugging user-reported issues.

bash
# By user ID
python .claude/skills/analytics-amplitude/scripts/get_user_activity.py --user "12345"
# By email
python .claude/skills/analytics-amplitude/scripts/get_user_activity.py --user "user@example.com"
# With pagination
python .claude/skills/analytics-amplitude/scripts/get_user_activity.py --user "12345" --offset 100 --limit 50

Arguments:

  • --user (required): Amplitude user ID or email
  • --offset: Pagination offset (default: 0)
  • --limit: Max events (default: 100)
  • --raw: Output full JSON response
get_chart_annotations.py — Annotations

List chart annotations (deploy markers, releases, feature flags).

bash
python .claude/skills/analytics-amplitude/scripts/get_chart_annotations.py

Investigation Workflow

1. What happened?
└─→ query_events.py --event "Error Occurred" --interval daily
(see error trend over time)
2. Who was affected?
└─→ query_events.py --event "Error Occurred" --group-by "user_id"
(find impacted users)
3. What did the user see?
└─→ get_user_activity.py --user "<user_id>"
(trace the user's full event stream)
4. Was there a deploy?
└─→ get_chart_annotations.py
(check if a deploy correlates with the error spike)

Tips

  • Event names are case-sensitive and must match exactly as tracked in Amplitude
  • Date format: YYYYMMDD or YYYY-MM-DD (both work)
  • The --raw flag on any script gives you the full API response for deeper analysis
  • For time-series analysis, use --interval daily or --interval hourly
  • uniques counts distinct users; totals counts total event firings

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
70
Repository forks
18
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/swapnildahiphale/opensre/analytics-amplitude/badge)](https://verified-skill.com/skills/swapnildahiphale/opensre/analytics-amplitude)

Something wrong with this skill or its page? Tell us.