analytics
Skill by getsentry
Adds and finds analytics events in Sentry's frontend UI. It helps developers instrument buttons, pages and custom interactions, and answers questions about feature usage.
Install analytics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/getsentry/sentry /tmp/sentry && mkdir -p ~/.claude/skills && cp -r /tmp/sentry/.agents/skills/analytics ~/.claude/skills/analyticsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/getsentry/sentry /tmp/sentry && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sentry/.agents/skills/analytics ~/.gemini/antigravity-cli/skills/analyticsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an assistant through adding analytics events to Sentry's frontend UI. It tells the assistant to search existing events in static/app/utils/analytics/ before creating new ones, and to reuse them where possible. It covers route-level page views, button analytics props, and manual trackAnalytics() calls for custom interactions.
It is written for developers working on the Sentry codebase. It also covers usage questions, such as how many people use a feature, by searching Amplitude and querying the Amplitude MCP when it is connected. Events flow to Reload, Amplitude and Pendo, depending on whether an event name is set. The skill includes rules for type safety and for keeping personal data out of event parameters.
Written from the project's SKILL.md and checked against it.
What it can do
- Search existing eventsGreps the analytics folder for matching events before any new event is created.
- Track button clicksUses the Button analyticsEventKey prop to track clicks and links.
- Track page viewsUses route analytics hooks to record page views on route navigation.
- Track custom interactionsUses trackAnalytics() for toggles, drags, selects and modal open or close.
- Define new eventsGives step-by-step instructions for adding a new event definition.
- Answer usage questionsSearches Amplitude and reports usage counts when the Amplitude MCP is connected.
- Troubleshoot eventsLists common mistakes and debugging steps for events that do not fire or appear.
What you need
- Access to the Sentry frontend repository
- Amplitude MCP connection, for querying usage data directly
Try asking
- Add analytics tracking to the save button in the dashboard edit modal
- How many users clicked the feedback list item this month?
- Audit analytics coverage for the issue details page
Good to know
- Events with a null name are Reload-only and do not appear in Amplitude search.
- Direct usage data queries need the Amplitude MCP to be connected.
- Analytics SDKs must not be called directly. All events go through trackAnalytics() or built-in helpers.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/analytics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to analytics
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
analytics: common questions
Does this skill send events to Amplitude?
Events with a string eventName go to Reload, Amplitude and Pendo. Events with a null name go to Reload only.
Can it create duplicate analytics events?
The skill says to search for existing events first and reuse them, adding parameters if needed.
Does it ask before adding instrumentation?
For usage questions, it asks with AskUserQuestion before instrumenting an event that is not tracked yet.
How do I install analytics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is analytics free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is analytics safe to use?
It scores 80 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to analytics?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
