dashboard
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/dashboard
/dashboard
See everything. Find traction signals.
一览全局,发现业务增长信号。
What This Does
功能介绍
Aggregates metrics from all MistyStep products into a single view:
- Traffic: PostHog analytics per project (with MCP)
- Revenue: Stripe (subscriptions, one-time payments)
- Errors: Sentry error counts
- Changes: Week-over-week deltas with anomaly flags
将所有MistyStep产品的指标聚合到单一视图中:
- 流量:每个项目的PostHog分析数据(支持MCP)
- 收入:Stripe数据(订阅、一次性付款)
- 错误:Sentry错误计数
- 变化:周环比差异及异常标记
Output Format
输出格式
┌──────────────────────────────────────────────────────────────────┐
│ MISTYSTEP PORTFOLIO - Week of Jan 20 │
├──────────────────────────────────────────────────────────────────┤
│ Product │ Visits │ Δ │ Revenue │ Errors │ Status │
├──────────────────────────────────────────────────────────────────┤
│ Volume │ 892 │ ↑147%│ $45.00 │ 0 │ ⚠️ SIGNAL │
│ Heartbeat │ 234 │ ↑ 12%│ $0.00 │ 2 │ 🟢 │
│ Scry │ 45 │ ↓ 5%│ $0.00 │ 0 │ 🟢 │
│ Crondle │ 156 │ → 0%│ $0.00 │ 0 │ 🟢 │
│ ... │ │ │ │ │ │
├──────────────────────────────────────────────────────────────────┤
│ TOTAL │ 2,847 │ ↑ 34%│ $127.00 │ 3 │ │
└──────────────────────────────────────────────────────────────────┘
⚠️ Volume showing unusual growth (+147%)
Investigate: What's driving traffic?┌──────────────────────────────────────────────────────────────────┐
│ MISTYSTEP PORTFOLIO - Week of Jan 20 │
├──────────────────────────────────────────────────────────────────┤
│ Product │ Visits │ Δ │ Revenue │ Errors │ Status │
├──────────────────────────────────────────────────────────────────┤
│ Volume │ 892 │ ↑147%│ $45.00 │ 0 │ ⚠️ SIGNAL │
│ Heartbeat │ 234 │ ↑ 12%│ $0.00 │ 2 │ 🟢 │
│ Scry │ 45 │ ↓ 5%│ $0.00 │ 0 │ 🟢 │
│ Crondle │ 156 │ → 0%│ $0.00 │ 0 │ 🟢 │
│ ... │ │ │ │ │ │
├──────────────────────────────────────────────────────────────────┤
│ TOTAL │ 2,847 │ ↑ 34%│ $127.00 │ 3 │ │
└──────────────────────────────────────────────────────────────────┘
⚠️ Volume showing unusual growth (+147%)
Investigate: What's driving traffic?Process
执行流程
1. Load Product Registry
1. 加载产品注册表
Read for the list of products and their API identifiers:
products.yaml- PostHog project IDs
- Stripe account/product IDs
- Sentry project slugs
- Domain names
读取获取产品列表及其API标识符:
products.yaml- PostHog项目ID
- Stripe账户/产品ID
- Sentry项目别名
- 域名
2. Fetch Metrics
2. 获取指标数据
For each product, fetch:
Traffic (PostHog API / MCP)
bash
undefined为每个产品获取以下数据:
流量(PostHog API / MCP)
bash
undefinedVia PostHog MCP (preferred - Claude can query directly)
Via PostHog MCP (preferred - Claude can query directly)
Or via CLI:
Or via CLI:
curl -s "https://app.posthog.com/api/projects/${PROJECT_ID}/insights/trend/"
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "date_from": "-7d"}'
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "date_from": "-7d"}'
curl -s "https://app.posthog.com/api/projects/${PROJECT_ID}/insights/trend/"
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "date_from": "-7d"}'
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "date_from": "-7d"}'
For specific breakdown by referrer:
For specific breakdown by referrer:
curl -s "https://app.posthog.com/api/projects/${PROJECT_ID}/insights/trend/"
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "breakdown": "$referrer", "date_from": "-7d"}'
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "breakdown": "$referrer", "date_from": "-7d"}'
**Revenue (Stripe API)**
```bashcurl -s "https://app.posthog.com/api/projects/${PROJECT_ID}/insights/trend/"
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "breakdown": "$referrer", "date_from": "-7d"}'
-H "Authorization: Bearer $POSTHOG_API_KEY"
-d '{"events": [{"id": "$pageview"}], "breakdown": "$referrer", "date_from": "-7d"}'
**收入(Stripe API)**
```bashRequires STRIPE_SECRET_KEY env var
Requires STRIPE_SECRET_KEY env var
stripe balance_transactions list --created[gte]=$LAST_WEEK --limit=100
stripe balance_transactions list --created[gte]=$LAST_WEEK --limit=100
Or for specific product revenue:
Or for specific product revenue:
stripe invoices list --created[gte]=$LAST_WEEK --status=paid
**Errors (Sentry API)**
```bashstripe invoices list --created[gte]=$LAST_WEEK --status=paid
**错误(Sentry API)**
```bashRequires SENTRY_AUTH_TOKEN env var
Requires SENTRY_AUTH_TOKEN env var
curl -s "https://sentry.io/api/0/projects/${ORG}/${PROJECT}/stats/"
-H "Authorization: Bearer $SENTRY_AUTH_TOKEN"
-H "Authorization: Bearer $SENTRY_AUTH_TOKEN"
undefinedcurl -s "https://sentry.io/api/0/projects/${ORG}/${PROJECT}/stats/"
-H "Authorization: Bearer $SENTRY_AUTH_TOKEN"
-H "Authorization: Bearer $SENTRY_AUTH_TOKEN"
undefined3. Calculate Deltas
3. 计算变化差值
Compare this week vs last week:
- ↑ = increase > 5%
- ↓ = decrease > 5%
- → = stable (within 5%)
- ⚠️ SIGNAL = change > 50% (investigate!)
对比本周与上周的数据:
- ↑ = 增长超过5%
- ↓ = 下降超过5%
- → = 稳定(变化在5%以内)
- ⚠️ SIGNAL = 变化超过50%(需要调查!)
4. Display Results
4. 展示结果
Output formatted table to terminal.
Optional: flag exports to for browser viewing.
--html~/dashboard.html在终端输出格式化后的表格。
可选:使用参数可导出到,以便在浏览器中查看。
--html~/dashboard.htmlProduct Registry
产品注册表
Edit to configure products:
~/.claude/skills/dashboard/products.yamlyaml
products:
- name: Volume
domain: volume.app
posthog_project_id: 12345 # Changed from vercel_project_id
stripe_product_id: prod_xxx
sentry_project: volume
- name: Heartbeat
domain: heartbeat.app
posthog_project_id: 12345
stripe_product_id: prod_yyy
sentry_project: heartbeat
# ... more products编辑配置产品:
~/.claude/skills/dashboard/products.yamlyaml
products:
- name: Volume
domain: volume.app
posthog_project_id: 12345 # Changed from vercel_project_id
stripe_product_id: prod_xxx
sentry_project: volume
- name: Heartbeat
domain: heartbeat.app
posthog_project_id: 12345
stripe_product_id: prod_yyy
sentry_project: heartbeat
# ... more productsRequired Environment Variables
所需环境变量
bash
undefinedbash
undefinedPostHog - for traffic analytics (preferred)
PostHog - for traffic analytics (preferred)
POSTHOG_API_KEY=phx_xxx
POSTHOG_PROJECT_ID=12345
POSTHOG_API_KEY=phx_xxx
POSTHOG_PROJECT_ID=12345
Stripe - for revenue
Stripe - for revenue
STRIPE_SECRET_KEY=sk_live_xxx
STRIPE_SECRET_KEY=sk_live_xxx
Sentry - for errors (optional)
Sentry - for errors (optional)
SENTRY_AUTH_TOKEN=xxx
SENTRY_ORG=mistystep
**Note:** Vercel Analytics is NOT used because it lacks CLI/API access. PostHog provides equivalent traffic data with MCP integration.SENTRY_AUTH_TOKEN=xxx
SENTRY_ORG=mistystep
**注意**:不使用Vercel Analytics,因为它缺少CLI/API访问权限。PostHog通过MCP集成可提供等效的流量数据。Usage
使用方法
bash
undefinedbash
undefinedWeekly check (terminal output)
Weekly check (terminal output)
/dashboard
/dashboard
Export to HTML for browser
Export to HTML for browser
/dashboard --html
/dashboard --html
Check specific product only
Check specific product only
/dashboard volume
undefined/dashboard volume
undefinedWhen to Use
使用场景
- Weekly ritual: Every Monday, run to spot traction
/dashboard - After launch: Check if announcement drove traffic
- Investigating issues: See if errors spiked
- 每周例行检查:每周一运行,快速掌握业务增长情况
/dashboard - 产品发布后:检查公告是否带来流量增长
- 问题排查:查看错误数量是否激增
Traction Signals
业务增长信号
The dashboard flags products with >50% change as potential traction signals.
When you see ⚠️ SIGNAL:
- Investigate the source (referrer data)
- Is it sustainable or a one-time spike?
- If sustainable, consider
/double-down
仪表板会将变化超过50%的产品标记为潜在业务增长信号。
当看到⚠️ SIGNAL时:
- 调查流量来源(参考来源数据)
- 判断增长是可持续的还是一次性峰值
- 若增长可持续,考虑使用工具(待开发功能)
/double-down
Fallback: Browser Automation
备选方案:浏览器自动化
If APIs aren't configured, fall back to browser automation:
- Open PostHog dashboard in Chrome
- Navigate to each project's analytics
- Screenshot or extract numbers
- Repeat for Stripe and Sentry dashboards
This is slower but works without API setup.
若未配置API,可使用浏览器自动化方式:
- 在Chrome中打开PostHog仪表板
- 导航至每个项目的分析页面
- 截图或提取数据
- 对Stripe和Sentry仪表板重复上述步骤
此方法速度较慢,但无需配置API即可使用。
Related Skills
相关工具
- - Full monitoring setup (Sentry, PostHog, etc.)
/observability - - Marketing-focused metrics with PostHog MCP
/marketing-status - - Stripe integration audit
/stripe - - What to do when traction appears (future skill)
/double-down
- - 完整监控设置(Sentry、PostHog等)
/observability - - 基于PostHog MCP的营销聚焦指标
/marketing-status - - Stripe集成审计
/stripe - - 业务增长时的应对工具(待开发)
/double-down