Generate self-contained HTML pages for visual explanations of architectures, plans, diffs, data tables, and KPI dashboards.
4+ rows or 3+ columns must always be rendered as HTML (proactively).templates/architecture.htmltemplates/mermaid-flowchart.htmltemplates/data-table.html.- Apply styling via CSS variables (intentional palette, not defaults).
- Verify responsive layout and no overflow.
Rendering Guidance
- Architecture (text-heavy): CSS grid + cards.
- Topology/flow/state/sequence: Mermaid.
- Data tables/audits/comparisons: HTML table with sticky header.
- KPI/dashboard: grid + optional chart libs from
references/libraries.md.
Output & Delivery
Save to:
~/.agent/diagrams/.html
After generation, ALWAYS deliver the file to the user:
- Copy to workspace:
cp ~/.agent/diagrams/.html ./.html - Send:
message(action="send", filePath="./.html", message="") - Cleanup:
rm ./.html - Reply
NO_REPLY after sending
Do NOT skip step 2 — the user expects to receive the file in chat, not just a file path.
Do NOT skip step 3 — files in workspace accumulate.
Quality Gate
- Clear visual hierarchy.
- No clipped text or containers.
- Light/dark mode support.
- Mermaid blocks are readable; large diagrams have zoom/pan.
- Content reflects the user's actual request — no filler or boilerplate.
References
references/css-patterns.md — layout, overflow, zoom controls.references/libraries.md — Mermaid/Chart.js/anime.js usage.references/responsive-nav.md — navigation for long pages.prompts/*.md — ready-made scenarios (diff-review, plan-review, fact-check, project-recap).
版本历史
共 1 个版本
-
v1.0.0
当前
2026-05-07 22:13 安全 安全
🔗 相关推荐
Crypto Chart
redf426 获取加密货币代币价格并通过CoinGecko API或Hyperliquid API生成K线图,用于用户询问代币价格、加密货币价格、价格的情况。
★ 0
📥 315