setup
This skill creates an isolated Python environment for Mixpanel analysis, installs mixpanel-headless version 0.4.0 or newer along with data science libraries…
Identity proven by GitHub's verified organisation badge (mixpanel)
- Agents
- Claude Code
- License
- MIT (permissive)
- Pin
- fbed0c5pinned Oct 9, 2026
- Context cost
- about 1,100 tokenswhen the skill loads
- GitHub stars
- 18on mixpanel/mixpanel-headless
- Scripts
- 1 script
What it does
“Creates the plugin's own Python environment and installs or upgrades mixpanel_headless (0.4.0 or newer) with pandas, numpy, matplotlib, seaborn, networkx, anytree, scipy, and pyarrow (Python 3.11+ only) on Python 3.10+, then checks the imports, mp help, and the credentials. Use when setting up Mixpanel analysis, or when the plugin environment is missing or older than 0.4.0. Do not use for login or account changes (use auth).”
Generated summary from the skill's own text
This skill creates an isolated Python environment for Mixpanel analysis, installs mixpanel-headless version 0.4.0 or newer along with data science libraries (pandas, numpy, matplotlib, seaborn, networkx, scipy, pyarrow), and verifies the setup by checking imports, the built-in API reference, and stored credentials.
When to use it
- Initial setup of the Mixpanel plugin before analyzing data
- Environment is missing or older than version 0.4.0
- Verifying the plugin works after installation or update
When not to
- For account login or credential changes, use the auth skill instead
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add mixpanel/mixpanel-headless --skill setupInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install mixpanel/mixpanel-headless setup@fbed0c596f6856a705e54ef528c03e943527410dInstalls the commit we checked (fbed0c5).
Copy by hand
Download the folder at fbed0c5 and put it in .claude/skills/setup for Claude Code and in .agents/skills/setup for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "setup" by Mixpanel. Source, pinned to commit fbed0c596f6856a705e54ef528c03e943527410d: https://github.com/mixpanel/mixpanel-headless/tree/fbed0c596f6856a705e54ef528c03e943527410d/mixpanel-plugin/skills/setup 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/setup/ for Claude Code and .agents/skills/setup/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/mixpanel/setup
SKILL.md at the pin
---
name: setup
description: Creates the plugin's own Python environment and installs or upgrades mixpanel_headless (0.4.0 or newer) with pandas, numpy, matplotlib, seaborn, networkx, anytree, scipy, and pyarrow (Python 3.11+ only) on Python 3.10+, then checks the imports, mp help, and the credentials. Use when setting up Mixpanel analysis, or when the plugin environment is missing or older than 0.4.0. Do not use for login or account changes (use auth).
disable-model-invocation: true
allowed-tools: Bash(bash ${CLAUDE_SKILL_DIR}/scripts/setup.sh ${CLAUDE_PLUGIN_DATA}/venv) Bash(${CLAUDE_PLUGIN_DATA}/venv/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/auth/scripts/auth_manager.py *)
---
# mixpanel-headless setup
Create the plugin environment, install the library and its analysis stack into
it, then confirm that the plugin works.
The plugin environment is a virtual environment at `${CLAUDE_PLUGIN_DATA}/venv`.
The script installs nothing outside it, so it never changes the user's global
or system Python. The environment stays in place when the plugin updates. All
skills run Python as `${CLAUDE_PLUGIN_DATA}/venv/bin/python` and the CLI as
`${CLAUDE_PLUGIN_DATA}/venv/bin/mp`.
## 1. Run the setup script
Run this command exactly as written, because the pre-approved pattern matches
this text:
```bash
bash ${CLAUDE_SKILL_DIR}/scripts/setup.sh ${CLAUDE_PLUGIN_DATA}/venv
```
The script does these steps:
1. Creates the environment with `uv venv`, or with `python3 -m venv` when `uv` is not available. It reuses an environment that already works.
2. Installs `mixpanel-headless>=0.4.0` and the analysis packages into it. The version floor upgrades an older install, because the skills depend on `mp help`, which first shipped in 0.3.0, and on the saved-metric methods, which first shipped in 0.4.0.
3. Imports every package and prints its version.
4. Runs `mp help` once, offline, to confirm that the built-in API reference works and knows the saved-metric methods.
5. Checks the `mp` command inside the environment.
6. Reports which credentials it finds.
7. Prints the environment path.
The script is safe to run again. It does not prompt for input.
## 2. Read the result
Read these lines in the output:
| Line | Meaning |
| --- | --- |
| `✓ Plugin environment created` or `found` | The environment exists at the printed path. |
| `✓ mixpanel-headless INSTALLED <version>` | The library was not present. The script installed it. |
| `✓ mixpanel-headless UPGRADED <old> → <new>` | An older library was present. The script upgraded it. |
| `✓ mixpanel-headless OK <version>` | The library already met the 0.4.0 floor. |
| `✓ built-in help (mp help)` | The API reference works. The skills can look up API names. |
| `✓ mp CLI: <path>` | The `mp` command exists in the environment. |
| `✗ Usage: setup.sh <absolute-venv-path>` | The plugin data path was not filled in. Run `/mixpanel-headless:setup` again. |
| `✗ Python 3.10+ required but not found` | Tell the user to install Python 3.10 or newer, or `uv` (https://docs.astral.sh/uv/). |
| `✗ Could not create the virtual environment` | Show the explanation the script printed. On Debian and Ubuntu, the usual fix is `uv` or the `python3-venv` package. |
| `✗ ... is not a virtual environment` | Something else uses that path. Tell the user to move it away. |
| `✗ Package install failed` | Show the installer output. A network or package-index problem is the usual cause. |
| `✗ Import verification failed` | Show the error. A partial install is the usual cause. Run setup again. |
| `✗ built-in help (mp help) failed` | The install met the 0.4.0 floor, but `mp help` could not look up `Workspace.list_metrics`. Show the error above that line. A broken or partial install is the usual cause, so run setup again. |
If the script printed `UPGRADED`, tell the user to restart any Python kernel or
notebook that imported the old version.
Tell the user the environment path from the last lines. They can run their own
scripts with `${CLAUDE_PLUGIN_DATA}/venv/bin/python`.
## 3. Check the credentials
Run the auth helper. It prints one JSON object:
```bash
${CLAUDE_PLUGIN_DATA}/venv/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/auth/scripts/auth_manager.py session
```
Switch on the `state` field:
- **`ok`** — show "`account.name` → project `project.id`". Go to step 4.
- **`needs_account`**, **`needs_project`**, or **`error`** — hand the problem to the `auth` skill. Tell the user to run `/mixpanel-headless:auth`. That skill owns the login, account, project, and security flows. Do not repeat those flows here.
## 4. Verify the connection
Test the active account. Use `account.name` from step 3, because the script needs a name:
```bash
${CLAUDE_PLUGIN_DATA}/venv/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/auth/scripts/auth_manager.py account test <account.name>
```
The subcommand does not raise. Read `result.ok`:
- `result.ok: true` — setup is complete. The user can ask analytics questions. The `mixpanelyst` skill loads automatically for them.
- `result.ok: false` — show `result.error`. Hand the problem to the `auth` skill (`/mixpanel-headless:auth account test <name>`).
From mixpanel/mixpanel-headless at fbed0c5, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at fbed0c5Files
2 files, 14 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at fbed0c5More from Mixpanel
auth
Manages Mixpanel credentials, authentication, and account configuration for the mixpanel_headless library and mp CLI.
Contains scripts
Claude Code · about 3K tokens · pinned 6 days ago
dashboard-expert
This skill analyzes, builds, modifies, and adds explainer text to Mixpanel dashboards using the mixpanel_headless Python library.
Claude Code · about 2.8K tokens · pinned 6 days ago
mixpanelyst
The skill analyzes Mixpanel data by running Python code with the mixpanel_headless library and pandas.
Claude Code · about 4.3K tokens · pinned 6 days ago
session-replay
This skill retrieves and analyzes Mixpanel session replay recordings to show what a specific user did on screen, action by action.
Claude Code · about 2.6K tokens · pinned 6 days ago
analyze-report
Interprets existing Mixpanel reports and charts by re-running queries, identifying patterns, and summarizing what the data shows and what stands out.
Claude Code, Codex, Cursor +4 · about 1.9K tokens · pinned 6 days ago
create-dashboard
Creates cohesive Mixpanel dashboards by discovering event and property schemas, validating queries with real data, and arranging reports in a top-to-bottom…
Claude Code, Codex, Cursor +4 · about 1.1K tokens · pinned 6 days ago
Related in Data and databases
chdb-datastore
This skill enables working with tabular data using a pandas-compatible API backed by ClickHouse for faster execution.
by ClickHouseOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 1.2K tokens · pinned 6 days ago
chdb-sql
The skill enables running ClickHouse SQL queries on local files (parquet, csv, json), remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud), and cloud…
by ClickHouseOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 960 tokens · pinned 6 days ago
install
This skill sets up Mixpanel integration for a project by configuring one of three engines: Mixpanel MCP server, the headless Python SDK, or the user's own…
by MixpanelOfficial publisher
Claude Code · about 1.2K tokens · pinned 6 days ago
alphagenome-single-variant-analysis
Analyzes how genetic variants affect gene expression, chromatin accessibility, and splicing using the AlphaGenome API.
by GoogleOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 2.8K tokens · pinned 6 days ago
alphagenome-variant-impact-score
Score genetic variants using AlphaGenome Variant Impact models to assess functional impact through 18 biological feature attributions.
by GoogleOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 4.1K tokens · pinned 6 days ago
xlsx
Creates, edits, and analyzes Excel spreadsheets with formulas, formatting, and data validation.
by SnykOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 2.5K tokens · pinned 6 days ago
Open roles at Mixpanel
3 open roles on the jobs board
- Delivery Engineer
Singapore (Hybrid)
- Delivery Engineer, EMEA
London, UK (Hybrid)
- Engineering Manager, Query Service
San Francisco, US (Hybrid)