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
products.yaml
for the list of products and their API identifiers:
  • PostHog project IDs
  • Stripe account/product IDs
  • Sentry project slugs
  • Domain names
读取
products.yaml
获取产品列表及其API标识符:
  • PostHog项目ID
  • Stripe账户/产品ID
  • Sentry项目别名
  • 域名

2. Fetch Metrics

2. 获取指标数据

For each product, fetch:
Traffic (PostHog API / MCP)
bash
undefined
为每个产品获取以下数据:
流量(PostHog API / MCP)
bash
undefined

Via 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"}'
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"}'

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"}'

**Revenue (Stripe API)**
```bash
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"}'

**收入(Stripe API)**
```bash

Requires 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)**
```bash
stripe invoices list --created[gte]=$LAST_WEEK --status=paid

**错误(Sentry API)**
```bash

Requires 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"
undefined
curl -s "https://sentry.io/api/0/projects/${ORG}/${PROJECT}/stats/"
-H "Authorization: Bearer $SENTRY_AUTH_TOKEN"
undefined

3. 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:
--html
flag exports to
~/dashboard.html
for browser viewing.
在终端输出格式化后的表格。
可选:使用
--html
参数可导出到
~/dashboard.html
,以便在浏览器中查看。

Product Registry

产品注册表

Edit
~/.claude/skills/dashboard/products.yaml
to configure products:
yaml
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.yaml
配置产品:
yaml
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

Required Environment Variables

所需环境变量

bash
undefined
bash
undefined

PostHog - 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
undefined
bash
undefined

Weekly 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
undefined

When to Use

使用场景

  • Weekly ritual: Every Monday, run
    /dashboard
    to spot traction
  • 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:
  1. Investigate the source (referrer data)
  2. Is it sustainable or a one-time spike?
  3. If sustainable, consider
    /double-down
仪表板会将变化超过50%的产品标记为潜在业务增长信号。
当看到⚠️ SIGNAL时:
  1. 调查流量来源(参考来源数据)
  2. 判断增长是可持续的还是一次性峰值
  3. 若增长可持续,考虑使用
    /double-down
    工具(待开发功能)

Fallback: Browser Automation

备选方案:浏览器自动化

If APIs aren't configured, fall back to browser automation:
  1. Open PostHog dashboard in Chrome
  2. Navigate to each project's analytics
  3. Screenshot or extract numbers
  4. Repeat for Stripe and Sentry dashboards
This is slower but works without API setup.
若未配置API,可使用浏览器自动化方式:
  1. 在Chrome中打开PostHog仪表板
  2. 导航至每个项目的分析页面
  3. 截图或提取数据
  4. 对Stripe和Sentry仪表板重复上述步骤
此方法速度较慢,但无需配置API即可使用。

Related Skills

相关工具

  • /observability
    - Full monitoring setup (Sentry, PostHog, etc.)
  • /marketing-status
    - Marketing-focused metrics with PostHog MCP
  • /stripe
    - Stripe integration audit
  • /double-down
    - What to do when traction appears (future skill)
  • /observability
    - 完整监控设置(Sentry、PostHog等)
  • /marketing-status
    - 基于PostHog MCP的营销聚焦指标
  • /stripe
    - Stripe集成审计
  • /double-down
    - 业务增长时的应对工具(待开发)