github-dashboard
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGitHub Dashboard Skill
GitHub Dashboard 技能
Create a single-screen GitHub repository analytics dashboard in the FlowAI / Soft Paper Workspace visual style: warm off-white canvas, white rounded panels, a fixed left sidebar, compact KPI cards, pastel pills, dense tables, and low-contrast hairlines.
创建一个单屏GitHub仓库分析仪表板,采用FlowAI / Soft Paper Workspace视觉风格:暖调米白色画布、白色圆角面板、固定左侧边栏、紧凑的KPI卡片、柔和的胶囊标签、高密度表格以及低对比度细边框。
Resource map
资源地图
github-dashboard/
├── SKILL.md
├── example.html ← rendered reference dashboard
└── references/
├── template.html ← live-artifact-compatible HTML template
├── example-data.json ← normalized public GitHub data shape
├── artifact-example.json ← minimal live-artifact create input
└── provenance-example.json ← safe source/provenance examplegithub-dashboard/
├── SKILL.md
├── example.html ← 渲染后的参考仪表板
└── references/
├── template.html ← 兼容实时工件的HTML模板
├── example-data.json ← 标准化的公开GitHub数据格式
├── artifact-example.json ← 最小化的实时工件创建输入
└── provenance-example.json ← 安全的来源/溯源示例When to use this skill
何时使用此技能
Use this when the user asks for a dashboard or report about a single GitHub repository, for example:
- repository growth dashboard
- open-source project health report
- GitHub stars / forks / contributors analytics
- issue and pull-request activity page
- maintainer / contributor dashboard
If the user asks for refreshability, source auditability, or scheduled updates, produce the live-artifact source set (, , , ) and follow the contract. If they only need a visual artifact, produce a self-contained .
template.htmldata.jsonartifact.jsonprovenance.jsonlive-artifactindex.html当用户请求关于单个GitHub仓库的仪表板或报告时使用,例如:
- 仓库增长仪表板
- 开源项目健康报告
- GitHub星标/复刻/贡献者分析
- 议题与拉取请求活动页面
- 维护者/贡献者仪表板
如果用户要求可刷新性、来源可审计性或定期更新,请生成实时工件源集合(、、、)并遵循约定。如果仅需要可视化工件,请生成独立的文件。
template.htmldata.jsonartifact.jsonprovenance.jsonlive-artifactindex.htmlWorkflow
工作流程
-
Resolve repository scope
- Parse from the brief.
owner/repo - This v1 skill is scoped to one repository. If multiple repositories are requested, ask the user to pick the primary repository or create one dashboard per repository.
- If the repo is missing, ask one concise question for the GitHub URL or .
owner/repo
- Parse
-
Collect public GitHub data
- Prefer GitHub CLI/API for public repository data when available.
- Current stars/forks/watchers/open issue count: (
GET /repos/{owner}/{repo},stargazers_count,forks_count,watchers_count).open_issues_count - Contributors: paginate , sort by
GET /repos/{owner}/{repo}/contributors?per_page=100&page=Ndescending, and take the top N used by the dashboard. If only page 1 is available, label totals as first-page estimates.contributions - Issues: use GitHub Search API () for total counts, or paginate
repo:{owner}/{repo} is:issueand filter out items with aGET /repos/{owner}/{repo}/issues?state=allfield.pull_request - Pull requests: use GitHub Search API () for total counts, or paginate
repo:{owner}/{repo} is:prand count pages via theGET /repos/{owner}/{repo}/pulls?state=allheader.Link - Recent activity: combine the newest issues and pull requests, normalize them into display-ready rows, and cap the preview list at 5–10 items.
- Growth/delta metrics: GitHub REST does not expose complete historical star/fork deltas. Use GraphQL, stargazer event snapshots, the Events API where available, or explicitly mark deltas as estimated/synthetic in .
provenance.json - Do not store auth tokens, raw HTTP envelopes, cookies, rate-limit headers, or private metadata.
-
Normalize into dashboard data
- Required :
repository,name,fullName,url,description,language,license,created.lastUpdated - Required : stars, forks, contributors, issues, pull requests. Store display-ready totals plus small deltas or growth notes.
metrics - Required : top 5–8 contributors with
contributors,login, andavatar.contributions - Required : display-ready rows with
recentActivity,title,typeText,typeClass,label,labelClass,author, andauthorAvatar. Do not rely on template conditionals for issue/PR switching.updated - Chart data can be synthetic only when GitHub does not expose the exact history; document the transformation in provenance.
- Required
-
Apply the visual system
- Use the active tokens when present.
DESIGN.md - If no design system is provided, use the Soft Paper defaults reflected in :
references/template.htmlcanvas, white cards,#F2F2F0borders,#ECECEAink, Geist/Inter typography, 256px sidebar, 48px topbar, and 16px card radius.#0A0A0A - Keep color small and semantic: green for healthy metrics, amber for warning, blue for feature/PR labels, red only for defects or risk.
- Use the active
-
Lay out the page
- Shell: 256px sidebar + main panel, both white, rounded 16px, 1px hairline border.
- Topbar: repo context on the left, refresh/export/action affordances on the right.
- Header: repository name, description, and date/settings/actions row.
- KPI strip: 5 compact cards for stars, forks, contributors, issues, PRs.
- Main grid: 2fr/1fr split with a growth chart or activity table on the left and top contributors/health cards on the right.
- Footer: provenance/last-updated note in small muted text.
-
Write the artifact
- For a static artifact, write one self-contained with inline CSS and no external JS libraries.
index.html - For a live artifact, write ,
template.html,data.json, andartifact.json;provenance.jsonis derived by the daemon.index.html - Tag major regions with stable values:
data-od-id,sidebar,topbar,repo-header,kpi-strip,growth-chart,contributors,activity.provenance
- For a static artifact, write one self-contained
-
确定仓库范围
- 从需求中解析格式的仓库标识。
owner/repo - 此v1版本技能仅针对单个仓库。若请求多个仓库,请让用户选择主仓库或为每个仓库创建一个仪表板。
- 若仓库信息缺失,请简洁询问GitHub URL或标识。
owner/repo
- 从需求中解析
-
收集公开GitHub数据
- 若可用,优先使用GitHub CLI/API获取公开仓库数据。
- 当前星标/复刻/关注者/开放议题数量:调用接口(字段
GET /repos/{owner}/{repo}、stargazers_count、forks_count、watchers_count)。open_issues_count - 贡献者:分页调用,按
GET /repos/{owner}/{repo}/contributors?per_page=100&page=N降序排序,选取仪表板所需的前N位贡献者。若仅能获取第一页数据,请将总数标注为第一页估算值。contributions - 议题:使用GitHub搜索API()获取总数,或分页调用
repo:{owner}/{repo} is:issue并过滤掉带有GET /repos/{owner}/{repo}/issues?state=all字段的条目。pull_request - 拉取请求:使用GitHub搜索API()获取总数,或分页调用
repo:{owner}/{repo} is:pr并通过GET /repos/{owner}/{repo}/pulls?state=all头信息统计页数。Link - 近期活动:合并最新的议题和拉取请求,标准化为可展示的行数据,并将预览列表限制为5-10条。
- 增长/增量指标:GitHub REST API不提供完整的历史星标/复刻增量数据。可使用GraphQL、星标事件快照、Events API(若可用),或在中明确标记增量为估算/合成数据。
provenance.json - 请勿存储认证令牌、原始HTTP包、Cookie、速率限制头信息或私有元数据。
-
标准化为仪表板数据
- 必填字段:
repository、name、fullName、url、description、language、license、created。lastUpdated - 必填字段:星标数、复刻数、贡献者数、议题数、拉取请求数。存储可直接展示的总数以及小增量或增长说明。
metrics - 必填字段:前5-8位贡献者,包含
contributors、login和avatar信息。contributions - 必填字段:可展示的行数据,包含
recentActivity、title、typeText、typeClass、label、labelClass、author和authorAvatar。请勿依赖模板条件判断来切换议题/拉取请求的展示。updated - 仅当GitHub未提供确切历史数据时,图表数据可使用合成数据;需在溯源文档中记录转换过程。
- 必填
-
应用视觉系统
- 若存在可用的设计令牌,请使用该令牌。
DESIGN.md - 若未提供设计系统,请使用中体现的Soft Paper默认样式:
references/template.html画布、白色卡片、#F2F2F0边框、#ECECEA文字、Geist/Inter字体、256px侧边栏、48px顶部栏、16px卡片圆角。#0A0A0A - 颜色使用需简洁且具有语义:绿色表示健康指标,琥珀色表示警告,蓝色表示功能/PR标签,红色仅用于缺陷或风险提示。
- 若存在可用的
-
页面布局
- 框架:256px侧边栏 + 主面板,均为白色、16px圆角、1px细边框。
- 顶部栏:左侧显示仓库上下文信息,右侧显示刷新/导出/操作功能入口。
- 头部:仓库名称、描述,以及日期/设置/操作行。
- KPI条:5个紧凑卡片,分别展示星标、复刻、贡献者、议题、PR数据。
- 主网格:2fr/1fr拆分布局,左侧为增长图表或活动表格,右侧为顶级贡献者/健康卡片。
- 页脚:小字号浅灰色文字显示溯源/最后更新说明。
-
生成工件
- 若为静态工件,生成一个独立的文件,包含内嵌CSS且无外部JS库依赖。
index.html - 若为实时工件,生成、
template.html、data.json和artifact.json;provenance.json由后台程序生成。index.html - 为主要区域添加稳定的属性值:
data-od-id、sidebar、topbar、repo-header、kpi-strip、growth-chart、contributors、activity。provenance
- 若为静态工件,生成一个独立的
Visual rules
视觉规则
- Light mode only.
- 256px fixed sidebar on desktop; stack on narrow screens.
- 4 or 5 KPI cards in the first row.
- Use tabular lining numerals for all counts.
- Avatars are circular, 28–32px in tables and contributor lists.
- Tables use 13px body text, 11px uppercase column labels, 1px row dividers.
- Cards use hairline borders and a barely visible shadow at most: .
0 1px 2px rgba(10,10,10,.04), 0 1px 1px rgba(10,10,10,.02) - Do not use gradients except tiny workflow/repo icon placeholders.
- Do not make the page look like GitHub itself. This is a custom operational dashboard, not a GitHub UI clone.
- 仅支持浅色模式。
- 桌面端为256px固定侧边栏;窄屏设备上堆叠布局。
- 第一行显示4或5个KPI卡片。
- 所有计数使用等宽数字字体。
- 头像为圆形,表格和贡献者列表中尺寸为28–32px。
- 表格使用13px正文字体、11px大写列标题、1px行分隔线。
- 卡片使用细边框,最多添加极淡阴影:。
0 1px 2px rgba(10,10,10,.04), 0 1px 1px rgba(10,10,10,.02) - 除极小的工作流/仓库图标占位符外,请勿使用渐变效果。
- 页面样式请勿模仿GitHub本身。这是一个自定义运营仪表板,而非GitHub UI克隆。
Self-check
自检清单
- Every metric has a source or a provenance note.
- No private data or credentials are persisted.
- Data labels are specific to the repository, not placeholders.
- The screen still reads clearly at 50% zoom.
- The dashboard uses at most one solid black primary action per area.
- Status labels and issue/PR chips are pastel pills, not saturated badges.
- 每个指标都有来源或溯源说明。
- 未保留任何私有数据或凭证。
- 数据标签针对特定仓库,而非占位符。
- 页面在50%缩放比例下仍清晰可读。
- 仪表板每个区域最多使用一个纯黑色主操作按钮。
- 状态标签和议题/PR胶囊为柔和色调,而非饱和徽章。