huashu-sparkline-arc
它能做什么
这个工具可以制作名为“narrative deck”的视觉演示文稿,也就是叙事型演示文稿。它采用一种特定风格:一条波浪线展示想法从现状演变到理想未来的过程,并用橙色标出转折点。
适用场景
- ✓清晰地展示复杂的财务数据。
- ✓向投资者讲述公司的成长故事。
- ✓向董事会解释商业计划或战略。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/huashu-sparkline-arc/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我做一份关于公司过去一年营收增长的演示文稿,展示关键驱动因素和未来预测。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会使用预设的演示文稿模板,其中的波浪线会在“现状”和“可能的未来”之间移动。它会替换原有内容来讲述你的故事,并且只在关键转折点使用橙色。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Narrative Sparkline · 叙事波形
Produce a single-file, Duarte-style narrative deck. You are a story
cartographer working in HTML: every page is built on one oscillating waveform
that travels between "what is" and "what could be", and orange appears only
where the story turns. The visual system, canvas contract, and navigation
runtime are locked by example.html. Start from example.html, replace
content only — do not rewrite the design or the script. Do not introduce any
color or font outside this spec.
Generated from the Sparkline叙事波形 / Narrative Sparkline (Duarte式) spec
(中性派, 还原91%) in references/design-styles.md of
huashu-design by 花叔
(alchaincyf), MIT licensed. Lineage: Nancy Duarte《Resonate》sparkline
structure, Al Gore An Inconvenient Truth, Duarte Inc. data storytelling.
Hard spec (locked — violating any line is a regression)
Canvas & runtime
- One
<div id="stage">fixed at 1920 × 1080 px, centered withposition: fixed; top: 50%; left: 50%; afit()function appliestranslate(-50%, -50%) scale(min(innerWidth/1920, innerHeight/1080))on load andresize. All inner layout in px — the scaler owns responsiveness. - Each page is one
<section class="slide">inside#stagewith adata-screen-label="01 封面"-style label; exactly one slide carries.active; dark pages add.dark. - Navigation (keep the script verbatim):
←/↑/PageUpprevious,→/↓/Space/PageDownnext,Home/Endfirst/last;#/Nhash routing (1-indexed) read on load +hashchange, written viahistory.replaceState; click left third = back, rest = forward; fixed counter pill bottom-right, key-hint bottom-left. No external JS, no build step — the file must open inside a sandboxed iframe viafile://.
Design tokens (:root — keep the names, re-theme values only)
| Token | Value | Role |
|---|---|---|
--paper |
#FFFFFF |
light page background |
--night |
#0E0E0C |
dark pages (solo-line, closing) |
--ink |
#1A1814 |
primary text on light |
--night-ink |
#F5F3EE |
primary text on dark |
--accent |
#FF6B2C |
the brand orange — the only accent |
--accent-dim |
rgba(255,107,44,.14) |
annotation halos / soft fills |
--ghost |
#C9C7C2 |
greyed comparison waveform |
--grid |
#ECEAE6 |
hairline rules |
--muted |
#9A958C |
secondary labels |
--muted-2 |
#5F5A52 |
body copy on light |
--night-line |
#26241F |
hairlines on dark pages |
--night-mut |
#8A857C |
secondary text on dark |
--sans |
'Inter', 'PingFang SC', …, sans-serif |
headlines + body |
--mono |
'Geist Mono', 'SFMono-Regular', 'Menlo', monospace |
labels, annotations, numerals |
Fonts: one Google Fonts @import (Inter 400–900 + Geist Mono 400–600)
and nothing else. No CDN scripts, no chart libraries, no images — every chart
is a hand-written inline SVG path. A second accent color is the cardinal sin
of this style; grey is the only other voice.
Signature devices (the visual DNA — every deck must show them)
- The waveform spine: every page carries at least one full-bleed
.sparkSVG with a smooth cubic-bézier oscillating path. Line layer usespreserveAspectRatio="none"so the path stretches; annotation dots/text live in a second, non-stretched SVG layer with the same viewBox so circles stay round and type stays true. Line weights:.arc5px orange hero line,.arc-thin3.5px,.ghost-line3px grey,.ghost-dashstroke-dasharray: 2 10grey baseline/industry reference. - Orange turning-point annotations:
.ptgroup = soft halo circle (--accent-dim), solid orange dot (r≈6–7), optional 2px orange ring for THE inflection point, plus Geist Mono uppercase.lab(12px, 2px tracking) and.val(20px, 600) value text. Grey.pt-ghostdots mark pain points on comparison lines. Orange marks turning points only — if every dot is orange, nothing turns. - Progressive reveal: paths carry
pathLength="1"+ classdraw(stroke-dasharray: 1; stroke-dashoffset: 1);.slide.active .drawanimatesstroke-dashoffsetto 0 (spark-draw, ~1.8s, ease-out-ish cubic-bezier). Segment stagger viad1/d2/d3, dot fade-ins viap1…p5(animation-delay ladder). Because.activetoggles display, the reveal replays every time a slide is entered — keep it that way.
…
常见问题
什么是“narrative deck”?
这是一种以清晰、引人入胜的叙事为核心的视觉演示文稿,会用波浪线等视觉元素展示进展和转折点。
为什么橙色很重要?
橙色只用于标出故事中最重要的时刻,也就是“转折点”,即某件重要的事情发生改变或被决定的时刻。
我可以更改设计或添加其他颜色吗?
不可以。设计是固定的,并遵循严格规则,以保证清晰度和风格统一。只允许使用橙色作为强调色,搭配灰色以及黑白两色。
详情
作者的原始描述
OpenDesign's revenue-driver narrative: what actually moves ARR, the leverage points, and the forecast. Built as a decision-grade data & finance deck for board, finance leadership.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1028
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …