Agent Skill · Statsig

statsig-dashboard

Create or read Statsig dashboards through the Console API. Use when building a valid `POST /console/v1/dashboards` body, reading `GET /console/v1/dashboards/{id}` into a create-compatible shape, or appending or replacing dashboard widgets through the related widget endpoints.

Provider: Statsig Path in repo: SKILL.md

Skill body

Create Statsig Dashboard

Build valid dashboard API requests for the console v1 dashboards API and execute them with the bundled scripts.

Read references/dashboard-api.md for the exact field-level schema, supported values, and ready-to-edit examples.

The command examples below assume you are running from this skill directory.

Quick Start

  1. Export the API key: export STATSIG_CONSOLE_API_KEY="..."
  2. Save the request body to a JSON file.
  3. Run the matching script:
python3 scripts/create_dashboard.py \
  --body-file /tmp/dashboard.json

Companion Scripts

Workflow

  1. Choose the correct endpoint:
    • create a dashboard: create_dashboard.py
    • read a dashboard in create-compatible shape: read_dashboard.py
    • append widgets: add_dashboard_widgets.py
    • replace all widgets: replace_dashboard_widgets.py
  2. Build the matching request body for the chosen endpoint.
  3. Include only supported fields:
    • name
    • description
    • defaults
    • widgets
  4. Map each requested widget to one of the supported widget types:
    • header
    • text
    • timeseries
    • each widget may include optional width and height
  5. For timeseries, enforce the query contract exactly:
    • include exactly one of source or sources
    • use type: "event" for each source
    • include aggregation
    • only use supported filter operators and chart types
    • if the user wants to group by or filter by event value, use !statsig_value rather than value
  6. Execute the matching script.
  7. Return the API response, or summarize the created dashboard ID or widget IDs if that is all the user needs.

Service Filters

When a widget needs to scope to a Statsig service, prefer filtering on:

{
  "property": {
    "key": "custom.service",
    "column": "user_object"
  },
  "operator": "EQ",
  "values": ["service-name"]
}

Do not default to bare service when building dashboard widgets. In Statsig event payloads this is commonly nested under user_object.custom, so custom.service is the safer default.

OTEL Aggregations

When a widget targets a metric that may come from OTEL, sample the metric first and inspect company_metadata.__metric_type.

Preferred mapping:

Keep the aggregation intent the same when converting:

Guardrails

Examples

Minimal dashboard:

cat > /tmp/dashboard.json <<'JSON'
{
  "name": "Checkout Overview"
}
JSON

python3 scripts/create_dashboard.py \
  --body-file /tmp/dashboard.json

Read an existing dashboard into a reusable create payload:

python3 scripts/read_dashboard.py \
  --dashboard-id dash_123

Append widgets to an existing dashboard:

python3 scripts/add_dashboard_widgets.py \
  --dashboard-id dash_123 \
  --body-file /tmp/add-widgets.json

Replace all widgets on an existing dashboard:

python3 scripts/replace_dashboard_widgets.py \
  --dashboard-id dash_123 \
  --body-file /tmp/replace-widgets.json

Script Notes

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/statsig-dashboard"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.