LLMs-Universal-Life-Science-and-Clinical-Skills- svg-ui-templates
install
source · Clone the upstream repo
git clone https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- "$T" && mkdir -p ~/.claude/skills && cp -r "$T/Skills/Research_Tools/Reporting/svg-ui-templates" ~/.claude/skills/mdbabumiamssm-llms-universal-life-science-and-clinical-skills-svg-ui-templates && rm -rf "$T"
manifest:
Skills/Research_Tools/Reporting/svg-ui-templates/SKILL.mdsource content
Repository note: Located at
. Pair with the siblingrepo/Skills/Research_Tools/Reporting/svg-ui-templatesskill when turning the generated PNGs into Feishu cards.feishu-rich-card
SVG UI Templates
Generate professional-grade SVG information panels optimized for horizontal (landscape) display.
Templates
| Template | File | Use Case |
|---|---|---|
| list-panel | | 数据表格、参数列表、对比表 |
| checklist-panel | | 任务清单、进度追踪、TODO |
| pipeline-status | | 流程依赖图、阶段状态、里程碑 |
| richtext-layout | | 图文混排、报告摘要、数据简报 |
Workflow
- Read the appropriate template SVG from
assets/ - Replace
tokens with actual content{{PLACEHOLDER}} - Adjust row count / node count by duplicating elements with y-offset
- Adjust
height if content exceeds defaultviewBox - Save final SVG → convert to PNG with cairosvg for messaging platforms
For detailed placeholder lists, color system, and extension methods: read
references/template-guide.md
Key Rules
- viewBox width = 1200 (landscape, ~16:9). Adjust height as needed.
- Font stack:
— never change order.'Inter','Helvetica Neue','Microsoft YaHei',sans-serif - Status colors: Green=#43A047, Amber=#FF8F00, Grey=#90A4AE, Red=#E53935
- Shadow filter on all cards:
or equivalent id.filter="url(#cardShadow)" - Row spacing: duplicate row blocks with +56px (list) or +60px (checklist) y-offset.
- PNG conversion:
python3 -c "import cairosvg; cairosvg.svg2png(url='in.svg', write_to='out.png', output_width=2400)" - When sending via Feishu/WeChat, always convert to PNG first (SVG not rendered inline).
- 飞书图文卡片集成: 生成 PNG 后,使用
skill 将图片嵌入飞书交互式卡片,实现图文混排汇报。参见feishu-rich-card
。../feishu-rich-card/SKILL.md