openpanel

GitHub

用于查询 OpenBot 产品分析数据(事件、会话、漏斗等)及管理仪表板,辅助调试与增长决策。

.agents/skills/openpanel/SKILL.md nightly-labs/openbot

Trigger Scenarios

调试时验证事件触发或统计受影响用户数 回答产品或增长相关问题 构建或修改仪表板和报告

Install

npx skills add nightly-labs/openbot --skill openpanel -g -y
More Options

Non-standard path

npx skills add https://github.com/nightly-labs/openbot/tree/main/.agents/skills/openpanel -g -y

Use without installing

npx skills use nightly-labs/openbot@openpanel

指定 Agent (Claude Code)

npx skills add nightly-labs/openbot --skill openpanel -a claude-code -g -y

安装 repo 全部 skill

npx skills add nightly-labs/openbot --all -g -y

预览 repo 内 skill

npx skills add nightly-labs/openbot --list

SKILL.md

Frontmatter
{
    "name": "openpanel",
    "description": "Query OpenBot product analytics (events, sessions, profiles, funnels, retention, active users, Search Console) from the self-hosted OpenPanel server, and make or change its dashboards and reports. Use when debugging with real usage data, checking whether an event fires, counting affected users, answering a product or growth question, or building a dashboard."
}

OpenPanel analytics

scripts/openpanel.ts calls the OpenPanel MCP server at https://analytics.openbot.run/api/mcp. The token is a root client. It reads analytics and makes, changes and deletes dashboards and reports (create_dashboard, create_report, update_report_layout, delete_dashboard and others). apps/auth-api/.env.dev and apps/auth-api/.env.production hold the same token as OPENPANEL_MCP_TOKEN, so either key works.

Run

When DOTENV_PRIVATE_KEY_DEV is in the shell:

bun scripts/openpanel.ts tools                       # list the tools
bun scripts/openpanel.ts tools <tool>                # show the input schema of one tool
bun scripts/openpanel.ts call <tool> '<json args>'   # call a tool; the result is JSON

When the key is not in the shell, use the root .env.keys of the main checkout. A worktree has none:

MAIN="$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")"
bunx dotenvx run -q -f apps/auth-api/.env.dev -fk "$MAIN/.env.keys" -- bun scripts/openpanel.ts call list_event_names '{"projectId":"openbot"}'

If no key is available, stop and ask the developer. Never print the token, a key, or .env.keys.

Use

  • Every tool needs "projectId": "openbot". Nightly, Infeld and other products share the organization, and the token can change their dashboards too: do not touch them.
  • Event names and properties are in ANALYTICS.md. Call list_event_names or list_event_properties when a name is not there.
  • Read the schema with tools <tool> before the first call of a tool. Most query tools take startDate and endDate (YYYY-MM-DD) and use the last 30 days by default.
  • Before you change or delete a dashboard that you did not make in this task, ask the developer. Check a new report with get_report_data and send the developer the dashboard_url.
  • The server accepts 60 requests per minute from one IP address. Each command is one request, so do not loop over many profiles.
  • Profiles contain email addresses and account IDs. Do not copy them into issues, pull requests, commits or logs. Use counts, or an ID only when the developer asks for one.

Rotate the token

In OpenPanel, open the OpenBot project, then Settings, Clients. Make a new root client. Encrypt base64(<client id>:<client secret>) as OPENPANEL_MCP_TOKEN into both apps/auth-api/.env.dev and apps/auth-api/.env.production with dotenvx set ... -fk <main checkout>/.env.keys. Then delete the old client.

Version History

  • ac99196 Current 2026-11-02 08:39

Same Skill Collection

.agents/skills/babysit/SKILL.md
.agents/skills/biome-anti-slop/SKILL.md
.agents/skills/prototype/SKILL.md
.agents/skills/react-to-solid/SKILL.md
.agents/skills/release-upgrade-safety/SKILL.md
.agents/skills/ship/SKILL.md
.agents/skills/signal-deploy/SKILL.md
.agents/skills/smoke-and-ship/SKILL.md
.agents/skills/smoke/SKILL.md
.agents/skills/triage/SKILL.md
.agents/skills/zaidan/SKILL.md
marketplace/production-catalog/skills/acceptance-check/SKILL.md
marketplace/production-catalog/skills/accessibility-audit/SKILL.md
marketplace/production-catalog/skills/account-brief/SKILL.md
marketplace/production-catalog/skills/agent-chat-healthcheck/SKILL.md
marketplace/production-catalog/skills/agent-designer/SKILL.md
marketplace/production-catalog/skills/alt-text/SKILL.md
marketplace/production-catalog/skills/api-skill-builder/SKILL.md
marketplace/production-catalog/skills/bug-triage/SKILL.md
marketplace/production-catalog/skills/build-spec/SKILL.md
marketplace/production-catalog/skills/call-scorecard/SKILL.md
marketplace/production-catalog/skills/campaign-analysis/SKILL.md
marketplace/production-catalog/skills/care-log/SKILL.md
marketplace/production-catalog/skills/change-review/SKILL.md
marketplace/production-catalog/skills/competitor-comparison/SKILL.md
marketplace/production-catalog/skills/daily-brief/SKILL.md
marketplace/production-catalog/skills/data-quality-review/SKILL.md
marketplace/production-catalog/skills/decision-quality-check/SKILL.md
marketplace/production-catalog/skills/distinctive-frontend-design/SKILL.md
marketplace/production-catalog/skills/eggbot-getting-started/SKILL.md
marketplace/production-catalog/skills/evidence-brief/SKILL.md
marketplace/production-catalog/skills/hiring-scorecard/SKILL.md
marketplace/production-catalog/skills/interface-critique/SKILL.md
marketplace/production-catalog/skills/internal-communications/SKILL.md
marketplace/production-catalog/skills/launch-notes/SKILL.md
marketplace/production-catalog/skills/meeting-actions/SKILL.md
marketplace/production-catalog/skills/outreach-draft/SKILL.md
marketplace/production-catalog/skills/pr-follow-up/SKILL.md
marketplace/production-catalog/skills/project-plan/SKILL.md
marketplace/production-catalog/skills/prototype-build/SKILL.md
marketplace/production-catalog/skills/recurring-charges/SKILL.md
marketplace/production-catalog/skills/repository-threat-model/SKILL.md
marketplace/production-catalog/skills/request-scoring/SKILL.md
marketplace/production-catalog/skills/routine-healthcheck/SKILL.md
marketplace/production-catalog/skills/search-content-brief/SKILL.md
marketplace/production-catalog/skills/secure-code-guidance/SKILL.md
marketplace/production-catalog/skills/spend-audit/SKILL.md
marketplace/production-catalog/skills/support-reply/SKILL.md
marketplace/production-catalog/skills/voice-edit/SKILL.md

Metadata

Files
0
Version
ac99196
Hash
d7792a01
Indexed
2026-11-02 08:39

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-02 16:21
浙ICP备14020137号-1