Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

dashboard-build仪表板构建

Agent Skill

dashboard-build 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

808

周安装

33

GitHub Stars

3,665

下载量

261
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mckinsey/vizro --skill dashboard-build

简介

dashboard-build 基于前期设计阶段产出构建 Grafana 风格仪表板 JSON。

  • 要求先完成 dashboard-design 阶段以确保结构合理性,否则可能返工。
  • 可复制示例应用运行验证,但不得修改其数据或结构作为最终交付。
  • 执行脚本前应理解数据结构,尤其在自定义图表或选择器时使用原生工具辅助分析。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

CRITICAL Guidelines for Dashboard Building

  • Ideally, do NOT skip Phase 1 (dashboard-design skill) as that ensures a much smoother build process. If the user just wants to build it, explain the value of a design phase first. Check if there is any existing /spec directory from Phase 1. If yes, use that to guide your build.
  • Use your native tools to understand the data well, especially if you build custom charts or when you use specific selectors.
  • If the user asks for an example, simply copy the example app and run it. Do not include your own data or change the example.
  • When executing any script mentioned below for the first time, it may take a while to install dependencies. Plan accordingly before taking any rash actions.
  • When iterating on the dashboard after completing all steps, do not forget key points from below, especially regarding spec compliance and updating and terminal handling: always keep all specs up to date, and always check if terminal output is clean after each iteration.
  • Execute all scripts from this skill, and the app.py you will create, with uv run <script_name>.py or uv run app.py - this will ensure you use the correct dependencies and versions.
  • ABSOLUTELY NEVER type ANY commands (including sleep, echo, or anything else) in the terminal where the dashboard app is running, even if you started it with isBackground=true. This WILL kill the dashboard process. The dashboard startup takes time - be patient and let it run undisturbed.

Spec Files: Documenting Decisions

IMPORTANT: Each step produces a spec file in the spec/ directory to document reasoning, enable collaboration, and allow resumption in future sessions. Create the spec/ directory if it is not already present at the root of the project.

Step 1: Build dashboard

  1. You MUST ALWAYS copy the example app over, and modify it - this ensures less errors!
  2. Investigate about the Vizro model by executing the schema fetching script. ALWAYS DO this for all models that you need - do NOT assume you know it. Execute the script like so: uv run./scripts/get_model_json_schema.py <model_name> <model_name2>... where <model_name> is the name of the model you want to get the schema for. You can get an overview of what is available by calling the overview script like so: uv run./scripts/get_overview_vizro_models.py. This will print out all available models and their brief descriptions.
  3. Build the dashboard config by changing the copied example app. Important: Very often normal plotly express charts will not suffice as they are too simple. In that case, refer to the custom charts guide to create more complex charts. These MUST be added to the correct section in the python app. Call the custom chart function from the Graph model in your dashboard app.
  4. Run your dashboard app with uv run <your_dashboard_app>.py CRITICAL: After running this command, DO NOT run ANY other commands in that terminal. The dashboard takes time to start up (sometimes 10-30 seconds)
  5. You MUST read the terminal to check for any errors, but do not put commands like sleep in it. Fix any warnings and even more important errors you encounter. ONLY once you see the dashboard running, inform the user. NEVER run any commands in that terminal after starting the dashboard.
  6. When you iterate, no need to kill the dashboard, as we are using debug mode. Just save the file and it will reload automatically. Check the terminal occasionally for any failures. Once failed, you need to restart the dashboard.

Optimizations and common errors

  • Colors: Always respect color decisions from the design phase (spec/3_visual_design.yaml). Use Vizro palettes (from vizro.themes import palettes) instead of generic plotly colorscales. This is especially easy to get wrong in custom charts.
  • Data loading: For dashboards needing data refresh (databases, APIs) or performance optimization, see the data management guide for static vs dynamic data, caching, and best practices.
  • KPI cards: Use kpi_card() for simple metrics, kpi_card_reference() for comparisons. Use reverse_color=True when lower is better (costs, errors). NEVER put kpi_card or kpi_card_reference as a custom chart or re-build KPI cards as custom charts, use the built-in kpi_card and kpi_card_reference (imported from vizro.figures) in Figure model instead. Only accept exceptions for when the KPI card is strictly not possible, for example when dynamically showing text as a KPI card.

REQUIRED OUTPUT: spec/4_implementation.yaml

Save this file BEFORE proceeding to Step 2:

# spec/4_implementation.yaml
implementation:
  app_file: <name>.py
  data_files:
    - [list of data files used]
  data_type: static/dynamic  # static for DataFrames, dynamic for data_manager functions
  data_sources:
    - name: [data source name]
      type: csv/database/api/function
      caching: true/false
      refresh_strategy: [if dynamic: cache timeout or refresh trigger]

spec_compliance:
  followed_specs: true/false
  deviations:
    - spec_item: [What was specified]
      actual: [What was implemented]
      reason: [Why the deviation was necessary]

custom_charts:
  - name: [Function name]
    purpose: [What it does]

Validation Checklist

Before proceeding to Step 2, verify against spec files:

  • All specs from spec/1_information_architecture.yaml, spec/2_interaction_ux.yaml and spec/3_visual_design.yaml are implemented if specs exist
  • You have read the terminal output of the dashboard app for errors and warnings, you have not put any commands in the terminal after starting the app
  • Any deviations are documented in spec/4_implementation.yaml

Step 2: Testing (optional)

This requires the Playwright MCP server to be running. If not available, inform the user and skip this step. Look for mcp__*playwright__* tools.

When conducting the below tests, feel free to go back to Step 1 to fix any issues you find, then come back here.

Basic Testing Flow

  1. Navigate to dashboard URL
  2. Click through all pages
  3. Check console for errors
Use: playwright:browser_navigate(url="http://localhost:8050")
Use: playwright:browser_click(element="Page Name", ref="...")
Use: playwright:browser_console_messages()

Advanced Testing flow

  1. Take a screenshot of each page, compare to specs and especially wireframes
  2. Document any discrepancies

Important things to check:

  • Line charts are readable, and not a mess due to lack of aggregation
  • Graphs are legible and not squashed due to Layout

REQUIRED OUTPUT: spec/5_test_report.yaml

Save this file to complete the project:

# spec/5_test_report.yaml
testing:
  launch:
    successful: true/false
    url: http://localhost:8050
    errors: []

  navigation:
    all_pages_work: true/false
    issues: []

  console:
    no_errors: true/false
    errors_found: []

screenshot_tests:
    performed: true/false
    pages_tested: []
    discrepancies:
        - page: [Page name]
            issue: [Description of visual issue]
            fixed: true/false
            notes: [Fix details or reason not fixed]

requirements_met: true/false
dashboard_ready: true/false

Done When

  • Dashboard launches without errors, no console errors
  • User confirms requirements are met
  • All spec files from this Phase 2 saved in spec/ directory

Reference Files

FileWhen to Read
data_management.mdOptimizations: Data loading patterns, static vs dynamic, caching, databases, APIs
custom_charts_guide.mdStep 1: Creating complex custom charts when plotly express isn't enough
example_app.pyStep 1: Starting template for dashboard implementation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.37%
按下载量换算92

Claude

29.09%
按下载量换算76

Cursor

16.67%
按下载量换算44

Gemini CLI

9.51%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills