AGENT SKILL

实时数据仪表板构建

cast-dashboard

在团队的工作记录(任务、会话、支出、拉取请求、信号)和产品数据(指标、事件、PostHog、连接器)之上,构建一个作为发布页面呈现的实时仪表板。每张图表都会显示其查询语句和最近一次刷新时间,并自动刷新。当被要求制作仪表板、实时报告、指标页面,或跟踪某件事随时间的变化情况时使用。

适用职业数据分析师
License 许可
MIT
最近更新
2026-11-15
Stars
★ 49
Forks
6

01 前言 Front Matter

name
cast-dashboard
description
Build a live dashboard as a published page over the team's work record (tasks, sessions, spend, pull requests, signals) and its product data (metrics, events, PostHog, connectors). Every chart shows its query and when it last refreshed, and refreshes itself. Use when asked for a dashboard, a live report, a metrics page, or to track how something is going over time.
argument-hint
[the question the dashboard should answer]

03 SKILL.md 正文

A dashboard is worth building only around a question someone keeps asking: is the launch working, where does the spend go, are bugs closing faster than they arrive. Codecast's edge over a generic BI tool is that the product's numbers and the work behind them sit on one page, so look for the join: a spike in errors beside the sessions and pull requests that answered it, a signup metric beside what shipped that week.

Find the question

Start from what the person asked, and ask once if the question is unclear. Then look at what data exists before designing anything: cast sources ls, cast metrics ls, cast connector readers <source>, and the readers in cast guide publish (Dashboards). A chart over data the workspace does not have is a blank box; leave it out and say what would fill it.

Pick the queries

Each chart reads one named query in the bundle's cast-data.json. Choose the reader and window that answer the question directly, and the refresh interval the data actually moves at: spend and tasks change over hours, an error rate over minutes. Name the workspace when the page is for a team; otherwise it is the one this session works in, which the publish output names. Keep the set small: every query is a read that runs again on its interval while anyone has the page open.

Lay it out

Lead with the few numbers that answer the question (<cast-stat>), then the trends that explain them (<cast-chart> lines, areas, bars), then the detail someone drills into (tables). Give each a plain title that says what it measures. The page carries the codecast theme tokens, so style the layout with them and let the elements inherit; keep the page itself quiet, since the data is the point.

Publish and verify

Publish the directory with cast publish <dir>. Then check the data, not the picture: cast publish data <slug> --refresh runs every query now and prints its query text and rows, so an empty result, a wrong window or a reader error shows up before anyone else sees the page. Open the page in your browser tab and look at it, and fix what reads wrong before you share the link.

Team data on a page is visible to anyone holding the link. Say so when you share it, and gate it (--password, --email-gate) only when the person asks.

Steer by comments

Share the URL and invite the person to comment on the page where something should change. Read the comments (cast publish comments <slug>), revise the queries or the layout, republish to the same URL, and resolve what you addressed.

04 同仓库更多 Skills

codecast-sh
codecast-sh/codecast

名称与目录名不一致示例

something-else-entirely

一个 frontmatter 中的 name 与其目录名不一致的技能。

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

未知字段示例技能

unknown-field

携带一个既不属于规范六项字段、也不在 Claude Code 字段列表中的字段。

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

Remotion 视频创作最佳实践

remotion-best-practices

Remotion 的最佳实践——用 React 创作视频。

多媒体工程师视频生成与制作
★ 49
codecast-sh
codecast-sh/codecast

超长描述示例技能

overlength

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

无 Frontmatter 技能

no-frontmatter

暂无简介

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

代码库审计与改进规划

improve

以高级顾问的身份审视任意代码库,产出按优先级排序、自成体系的实施计划,供其他模型/智能体执行。对源代码严格只读——绝不亲自实现、修复或重构任何内容。当用户要求审计代码库、发现改进机会(缺陷、安全性、性能、测试覆盖率、技术债务、迁移、开发者体验 DX)、建议新功能或项目下一步方向(路线图、产品方向),或生成交接计划供其他智能体实施时使用。

软件开发工程师设计评审与架构优化
★ 49