mixpanel-auth
БесплатноБез исполняемых скриптовНе проверенManage Mixpanel Headless authentication: check session state, list/add/use accounts, run OAuth login, switch projects/workspaces, manage targets, and check…
от openai★ 8 494 звезды на GitHubОб этом скилле
Mixpanel Authentication Management
You manage Mixpanel credentials by shelling out to auth_manager.py. Every
subcommand emits exactly one JSON object to stdout — parse it and present the
result conversationally.
Before running bundled scripts, set PLUGIN_ROOT to the absolute path of the installed
mixpanel-headless plugin directory.
Script path: python3 $PLUGIN_ROOT/skills/mixpanelyst/scripts/auth_manager.py
Schema: Every response has schema_version: 1 and a discriminated state
of ok | needs_account | needs_project | error. Errors emit JSON to
stdout (exit 0) so you can json.loads unconditionally — no try/except needed.
Security Rules (NON-NEGOTIABLE)
- NEVER ask for secrets (passwords, API secrets) in conversation — they would be visible in history
- NEVER pass secrets as CLI arguments — visible in process list
- For account creation, guide the user to run
mp account add <name> --type service_account -u <username> -p <project_id> -r <region>themselves — this prompts for the secret with hidden input
Routing
Parse $ARGUMENTS and route to the appropriate subcommand. With no
arguments, run session.
"login"
For first-time setup, the frictionless one-shot path is mp login. It
runs the right auth flow for the environment, derives the account name
from /me, and pins a default project. Tell the user to run:
mp login
Region behavior is auth-type-specific:
service_accountandoauth_tokenpaths: probesus → eu → inand uses the first 200.oauth_browserpath (the bare-mp logindefault): commits tousunless the user passes--region euor--region in.
Optional flags they may want:
--name NAME— override the derived account name--region us|eu|in— set the region explicitly (required for EU / India browser users)--project ID— skip the project picker--service-account— force the SA path (requiresMP_USERNAME+MP_SECRETin env)--token-env VAR— force the static-bearer path (reads token from$VAR)--no-browser— print the authorization URL instead of launching a browser
After the user confirms they ran it, verify with account test:
python3 $PLUGIN_ROOT/skills/mixpanelyst/scripts/auth_manager.py account test
No arguments or "session"
Run: python3 $PLUGIN_ROOT/skills/mixpanelyst/scripts/auth_manager.py session
Switch on state:
ok— show one line: "Active:account.name→ projectproject.id" (add workspaceworkspace.idif non-null). Mention that the account-list and project-list workflows in this skill exist if the user wants to switch.needs_account— no account configured. Show the firstnext[0].commandas the recommended onboarding step (the frictionlessmp loginorchestrator); list the alternatives innext[1](explicit account add) andnext[2](MP_OAUTH_TOKENenv triple — best for non-interactive contexts like CI or agents).needs_project— account configured but no project pinned. Tell the user to runmp project listthenmp project use <id>.error— showerror.message. Iferror.actionableis true, the message names a concrete next command.
"account list"
Run: python3 $PLUGIN_ROOT/skills/mixpanelyst/scripts/auth_manager.py account list
Present items as a clean table: name, type, region, is_active.
Mark the active account with a star. If referenced_by_targets is non-empty
for any account, mention it ("team is referenced by targets: ecom").
If items is empty, show the next onboarding hints (same as needs_account).
"account add"
This is a guided wizard. Do NOT run any script that handles secrets.
- Ask for the account name (e.g., "personal", "team", "ci")
- Ask for the type —
oauth_browser(recommended for laptops),service_account(long-lived), oroauth_token(CI/agents) - Ask for the region (us, eu, or in — default us)
- For
service_account: ask for username and project ID (numeric). Foroauth_token: ask for project ID and the env-var name holding the bearer. Foroauth_browser: project ID is OPTIONAL —mp account loginwill backfill it after the PKCE flow. - Then instruct the user to run the appropriate command. For service accounts:
Now run this command — it will prompt for your service account secret with hidden input:
mp account add <NAME> --type service_account --username <USERNAME> --project <PROJECT_ID> --region <REGION>
For OAuth browser, prefer the one-shot mp login (covered by the "login"
branch above):
mp login --name <NAME> --region <REGION>
For full control over registration before the PKCE flow, the explicit two-step is still available:
mp account add <NAME> --type oauth_browser --region <REGION>
mp account login <NAME> # opens browser for PKCE flow
Replace placeholders with the values collected above.
- After the user confirms they ran it, verify with
Установить mixpanel-auth в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mixpanel-auth?
Manage Mixpanel Headless authentication: check session state, list/add/use accounts, run OAuth login, switch projects/workspaces, manage targets, and check bridge credentials.
Как установить скилл mixpanel-auth?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mixpanel-auth запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic