agentleFS
kienbui1995kienbui1995/magic-powers/skills/amplitude/create-chart/SKILL.md

create-chart

Skill0 starsChanged 8 months agoMITView on GitHub

Build Amplitude charts from natural language descriptions. Uses mcp__Amplitude__get_event_properties, mcp__Amplitude__get_context, mcp__Amplitude__get_charts.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call mcp__Amplitude__get_context to understand the user's organization, active project, and available projects.

    line 19
  2. Very specific:

    Use mcp__Amplitude__get_event_properties to discover valid event and property names.

    line 33
  3. Very specific:

    Use mcp__Amplitude__get_charts to search for existing charts similar to what you are about to build.

    line 42
  4. Distinctive:

    Use the appropriate save tool to persist the chart.

    line 51
  5. Distinctive:

    If the chart could not be built (e.g., no matching events found), the output explains what was searched, what was found, and what the user …

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create Amplitude Chart

When to Use

  • A user describes a metric or question in plain language and wants a chart built
  • You need to visualize a KPI, funnel, retention cohort, or user journey
  • An existing chart doesn't exist and you need to create one from scratch
  • You want to save an ad-hoc analysis so others can revisit and share it
  • Building a dashboard and gaps exist in available charts

Core Jobs

1. Get Context

Call mcp__Amplitude__get_context to understand the user's organization, active project, and available projects. This returns the projectId (appId) you will need for all subsequent calls. Never guess or hardcode a projectId.

2. Decompose the Request into Chart Components

Break the natural language request into structured chart components before touching any tool:

  • Chart type: what kind of visualization is appropriate (see chart types below)
  • Metric: what is being measured (count, DAU, conversion rate, p50 latency, etc.)
  • Time range: last 7 days, last 30 days, custom range
  • Primary event: the core action being tracked
  • Filters: conditions that narrow the dataset (platform = iOS, plan = Pro, country = US)
  • Groupings: dimensions to break the metric down by (by platform, by cohort, by geography)
  • Secondary events: for funnels and retention — the sequence or return event

3. Search Events Broadly First

Use mcp__Amplitude__get_event_properties to discover valid event and property names. Search broadly — do not assume exact event names. Try multiple search terms if the first attempt returns no results. Event names are project-specific and must be discovered, never guessed.

4. Review All Results

Examine all returned events and properties. Look for naming conventions (snake_case, camelCase, verb-noun patterns). Understand the data model before selecting specific events.

5. Select Best Events with Rationale

Choose the most semantically appropriate events for the chart. If multiple candidates exist, select the one most likely to capture the user's intent. Document your selection rationale in the output so the user can validate.

6. Find Similar Existing Charts as Reference

Use mcp__Amplitude__get_charts to search for existing charts similar to what you are about to build. This serves two purposes: (a) avoid duplicating an existing chart, and (b) use an existing chart's structure as a template to ensure correctness.

7. Build the Chart Definition

Construct the chart definition object with all required fields based on the chart type. Use the existing chart structure as reference if found in step 6.

8. Query the Dataset

Execute the chart query to fetch real data and validate that the chart produces meaningful results. If the result is empty, revisit your event selection and filters.

9. Save the Result

Use the appropriate save tool to persist the chart. Return the chart URL so the user can view and share it.

Chart Types

  • eventsSegmentation: Most versatile type. Use for trends over time, KPI tracking, DAU/WAU/MAU, and single-metric analysis. Good default when unsure.
  • funnels: Multi-step conversion analysis. Measures how many users complete step A then step B (then step C...). Essential for onboarding, checkout, and signup flows.
  • retention: Cohort return analysis. Measures what percentage of users who did event A on day 0 return to do event B on day N. Use for stickiness and habit formation.
  • dataTableV2: Tabular breakdown across multiple metrics and dimensions. Use when the user wants to compare many metrics side-by-side in table form.
  • customerJourney: Path exploration. Shows what users do before and after a key event. Use when exploring unknown drop-off points or discovery patterns.
  • sessions: Session-level analysis — duration, frequency, depth. Use when the question is about how deeply users engage per visit rather than over time.

MCP Tools

  • mcp__Amplitude__get_context — get organization and project context (call first, always)
  • mcp__Amplitude__get_event_properties — discover valid event and property names for the project
  • mcp__Amplitude__get_charts — search for existing charts to use as templates or to avoid duplication
  • mcp__Amplitude__query_chart — execute a chart query to preview data before saving
  • mcp__Amplitude__save_chart_edits — persist the final chart definition

Key Concepts

  • projectId / appId: The numeric identifier for an Amplitude project. Required by all data tools. Get it from get_context.
  • eventsSegmentation: The default chart type for time-series trend analysis.
  • Sample Ratio Mismatch (SRM): An imbalance in traffic allocation that can invalidate results.
  • Grouping: Breaking a metric down by a dimension (e.g., by platform, country, plan).
  • Filter: Narrowing the dataset to a specific subset before computing the metric.
  • Cohort: A group of users who share a common attribute or behavior in a defined time window.
  • Event property: A key-value pair attached to an event at the time it fires (e.g., plan_type = "pro").
  • User property: A persistent attribute on a user profile that can change over time.

Output Format

The output includes:

  1. A brief explanation of which chart type was chosen and why
  2. The events selected and the rationale for each selection
  3. Any filters or groupings applied, with reasoning
  4. A link to the saved chart in Amplitude
  5. A 2-3 sentence interpretation of the data returned — what the chart shows at a high level

If the chart could not be built (e.g., no matching events found), the output explains what was searched, what was found, and what the user should do next (e.g., verify event names with their analytics team).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.