Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

statsig-dashboard统计仪表板

Agent Skill

statsig-dashboard 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

679

周安装

28

GitHub Stars

4

下载量

222
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:statsig-dashboard(统计仪表板)
来源仓库:https://github.com/statsig-io/agent-skills
仓库路径:skills/statsig-dashboard
安装命令:
npx skills add https://github.com/statsig-io/agent-skills --skill statsig-dashboard
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/statsig-io/agent-skills --skill statsig-dashboard

简介

statsig-dashboard 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态或协作事项进行整理时使用。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写。
  • 属于前端设计类技能,侧重数据可视化与仪表板构建。

SKILL.md

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

  • scripts/create_dashboard.py: create a new dashboard with POST /console/v1/dashboards
  • scripts/read_dashboard.py: fetch a dashboard and print a create-compatible shape by default using GET /console/v1/dashboards/{id}
  • scripts/add_dashboard_widgets.py: append widgets with POST /console/v1/dashboards/{id}/widgets
  • scripts/replace_dashboard_widgets.py: replace all widgets with PUT /console/v1/dashboards/{id}/widgets

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

  1. Build the matching request body for the chosen endpoint.
  2. Include only supported fields:

- name - description - defaults - widgets

  1. Map each requested widget to one of the supported widget types:

- header - text - timeseries - each widget may include optional width and height

  1. 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

  1. Execute the matching script.
  2. 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.

  • If __metric_type is present, treat the metric as OTEL-backed and prefer the matching OTEL aggregation family instead of the plain aggregation.
  • If __metric_type is absent on a representative sample, treat it as a non-OTEL metric and use the normal aggregation types.

Preferred mapping:

  • __metric_type = "gauge": use OTEL_GAUGE__AVG, OTEL_GAUGE__MAX, OTEL_GAUGE__MIN, or OTEL_GAUGE__SUM
  • __metric_type = "counter": use OTEL_COUNTER__SUM, OTEL_COUNTER__AVG, OTEL_COUNTER__MIN, or OTEL_COUNTER__MAX
  • __metric_type = "histogram": use the OTEL histogram aggregations documented in references/dashboard-api.md

Keep the aggregation intent the same when converting:

  • average-style widgets should become OTEL_GAUGE__AVG instead of AVG
  • max-style widgets should become OTEL_GAUGE__MAX instead of MAX

Guardrails

  • Do not invent unsupported widget types such as tables.
  • Do not include layout fields when creating a dashboard. The create endpoint does not accept widget positions.
  • Do not include row or column. The API currently supports widget sizing via width and height, not explicit placement.
  • Do not include id in the create request body.
  • If the user gives you a dashboard from GET /console/v1/dashboards/{id}, reuse that create-compatible shape but remove id.
  • Do not use the create endpoint when the user wants to mutate an existing dashboard.
  • Prefer markdown formatting in text widgets so the content is readable and structured.

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

  • All scripts read STATSIG_CONSOLE_API_KEY from the environment.
  • All scripts default STATSIG_API_VERSION to 20240601.
  • Pass --api-version or set STATSIG_API_VERSION to override that default.
  • All scripts default to https://api.statsig.com/console/v1/dashboards.
  • All scripts send the Console API key in the statsig-api-key header.
  • All scripts send the configured statsig-api-version header.
  • create_dashboard.py, add_dashboard_widgets.py, and replace_dashboard_widgets.py accept:

- --body-file - --body - stdin

  • read_dashboard.py, add_dashboard_widgets.py, and replace_dashboard_widgets.py require --dashboard-id.
  • All scripts support --dry-run.
  • All scripts support --raw.
  • read_dashboard.py prints the raw GET response only when --raw is set. Otherwise it unwraps data and removes id.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.26%
按下载量换算78

Claude

32.7%
按下载量换算73

Cursor

19.2%
按下载量换算43

Gemini CLI

8.78%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills