3.8 KiB
3.8 KiB
name, description, version, author, tags
| name | description | version | author | tags | |||||
|---|---|---|---|---|---|---|---|---|---|
| zhihu-hotlist-screen | Use when the user wants to turn collected Zhihu hotlist data into an ECharts dashboard, leadership demo screen, or new-tab HTML presentation artifact. | 0.1.0 | sgclaw |
|
Zhihu Hotlist Screen
Convert an already collected Zhihu hotlist artifact into a local ECharts .html dashboard for leadership demos. This skill is downstream-only: it consumes the structured artifact from zhihu-hotlist and hands it to screen_html_export.
When to Use
- The user asks for知乎热榜大屏、看板、dashboard、ECharts 演示页。
- The user wants a leadership demo artifact that can be opened in a 新标签页.
- An upstream collection step already produced ordered hotlist rows.
- The final deliverable should be a local
.htmlpage instead of Excel.
Do not use this skill for:
- recollecting Zhihu data from scratch when no hotlist artifact exists
- replacing
zhihu-hotlistas the browser collection skill - exporting Office files such as
.xlsx
Upstream Browser Contract
- Upstream Zhihu collection still belongs to
zhihu-hotlist, which usessuperrpa_browserinside the sgClaw browser host. - Upstream browser calls must keep
expected_domainas a bare hostname such aswww.zhihu.com. - Upstream selectors must remain valid CSS selectors only.
- This skill does not invent new browser steps. It transforms the collected artifact after upstream browser work is stable.
Required Input Artifact
Use the ordered artifact produced by zhihu-hotlist:
{
"source": "https://www.zhihu.com/hot",
"sheet_name": "知乎热榜",
"columns": ["rank", "title", "heat"],
"rows": [[1, "标题", "344万"]]
}
Rules:
rowsis the primary payload for this skill.- Preserve the captured ranking order.
- Do not invent extra rows that were not collected upstream.
- If the upstream artifact is partial, keep that status visible in the final summary.
Tool Contract
- Call
screen_html_exportto render the final ECharts dashboard. - The tool result must include a local
.htmlpath. - The tool result must include a
presentationobject for 新标签页 delivery. - Prefer
presentation.urlas the browser-open target. - Do not use
shellas the primary rendering path.
Workflow
- Confirm that an upstream hotlist artifact with ordered
rowsalready exists. - If the upstream artifact is missing, incomplete, or blocked by a login/verification condition, stop and report that upstream collection must be fixed first.
- Load render-flow.md and prepare the dashboard payload.
- Call
screen_html_export. - Return the final local
.htmlpath plus thepresentationobject. - State explicitly that the final呈现 should open
presentation.urlin a 新标签页.
Do not:
- recollect Zhihu browser data inside this downstream skill
- restart browser probing after the upstream artifact is already stable
- hide upstream partial-data or blocked-page status in the final dashboard summary
Output
Return a concise result with:
- artifact type:
echarts_dashboard - source snapshot identifier
- local
.htmloutput path presentationobject- whether the data is complete or partial
- optional short demo summary after the artifact fields
References
- Use render-flow.md for the exact downstream handoff.
- Template assets for this skill belong under
assets/. - The base screen template is
assets/zhihu-hotlist-echarts.html.
Common Mistakes
- Recollecting Zhihu data inside this downstream presentation skill.
- Returning only prose instead of the local
.htmlpath. - Dropping the
presentationcontract needed for 新标签页展示. - Mixing Excel export requirements into this dashboard skill.