scroll-storyteller by ingpoc/skills
npx skills add https://github.com/ingpoc/skills --skill scroll-storyteller使用 Anthropic 的纯正设计语言创建沉浸式、交互式的叙事体验:严格的双色调调色板、有机的贝塞尔 SVG 路径、自定义光标以及基于章节的叙事结构。
使用 AskUserQuestion 收集偏好,然后生成:
| 步骤 | 问题 | 选项 |
|---|---|---|
| 1 | 动画? | GSAP(丰富) vs 纯 CSS(轻量) |
| 2 | 氛围? | 温暖 vs 冷静 vs 创意 |
| 3 | 调色板? | (根据氛围显示 3-4 种) |
| 4 | 主题? | 圣经/科技/商业/个人/自定义 |
| 5 | 章节数? | 3、4 或 5 |
| 6 | 每章内容 | 标题、描述、关键词 |
生成命令:
bash ~/.claude/skills/scroll-storyteller/scripts/generate.sh my-story <palette> [--gsap] [--chapters N]
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
生成后: 自定义内容,创建 SVG(参见 references/structure-templates.md)
每个章节需要一个与主题相关且符合叙事位置的 SVG:
| 位置 | 目的 | 构图 | 示例 |
|---|---|---|---|
| 英雄章节 | 设定场景,展示对比 | 宽幅 (1000x1000),2 个剪影 | 远处的大卫与歌利亚 |
| 第 1 章 | 介绍主角 | 中心人物 + 背景 | 牧羊人与羊群 |
| 第 2 章 | 展示冲突/障碍 | 气势磅礴,充满画面 | 巨人战士 |
| 第 3 章 | 解决/胜利 | 动态,放射状 | 胜利者 + 倒下者 + 光芒 |
| 第 4 章 | 深化冲突(可选) | 拥挤,升级 | 军队集结,威胁倍增 |
| 第 5 章 | 最终高潮(可选) | 动作,决定性 | 飞石,冲击瞬间 |
| 终章 | 象征性总结 | 中心符号 | 王冠 + 光芒 |
根据章节数的明暗模式:
流程:
references/svg-illustration-guide.md 以获取主题 → 元素映射references/design-harmony.md → 调色板氛围 → SVG 样式)organic-path, fade-path, scale-pathSVG 检查清单:
var(--deep) 和 var(--foam) 颜色| 样式 | 库 | 大小 | 最适合 |
|---|---|---|---|
| GSAP | GSAP 3.x + ScrollTrigger | ~45KB | 丰富的交互、SVG 绘制、轨道运动、时间线 |
| 纯 CSS | 无(IntersectionObserver) | 0KB | 轻量、快速加载、简单显示 |
---|---|---|---|---
1 | Anthropic | #FAF9F5 奶油色 | #141413 炭黑色 | 温暖
2 | Midnight | #E8F4F8 冰色 | #0D1B2A 海军蓝 | 冷静
3 | Sepia | #F5F0E6 羊皮纸色 | #2C1810 浓缩咖啡色 | 温暖
4 | Forest | #F0F4F0 薄雾色 | #1A2E1A 常青色 | 创意
5 | Dusk | #F4F0F8 薰衣草色 | #1E1A2E 紫罗兰色 | 创意
6 | Ember | #FFF5F0 腮红色 | #2A1A14 余烬色 | 温暖
7 | Steel | #F0F2F5 银色 | #1A1C20 石墨色 | 冷静
8 | Ocean | #F0F8F8 泡沫色 | #0A1A1A 深色 | 冷静
氛围 → 调色板映射:
| 模式 | 描述 | 何时使用 |
|---|---|---|
| 纯正(默认) | 严格的双色调,有机路径 | 社论、品牌叙事 |
| 表现力 | 允许多色强调 | 产品展示、演示 |
| 功能 | 描述 |
|---|---|
| 自定义光标 | 双层光标,平滑缓动,mix-blend-mode |
| 英雄章节 | GSAP : 流动的有机线条 (1000x1000 背景)。纯 CSS : 台灯,带有动画光锥显示 |
| 聚光层 | 径向渐变在暗色区域跟随光标 |
| 交错显示 | 标题单词在加载时按顺序动画显示 |
| 章节结构 | 明暗交替的部分,带有过渡效果 |
| 有机 SVG | 手绘贝塞尔路径,仅填充(无描边) |
| 视差 | 滚动时微妙的深度移动 |
| 元素 | 十六进制 | CSS 变量 |
|---|---|---|
| 奶油色(亮) | #FAF9F5 | --cream |
| 炭黑色(暗) | #141413 | --charcoal |
规则: 无其他颜色。所有插图仅使用这两种颜色。
| 角色 | 字体 | 后备字体 |
|---|---|---|
| 展示/标题 | Instrument Serif | Georgia, serif |
| 正文/用户界面 | Inter | -apple-system, sans-serif |
特点:
| 规则 | 描述 |
|---|---|
| 仅填充 | 主形状切勿使用描边 |
| 有机路径 | 复杂的贝塞尔曲线,手绘感 |
| viewBox | 始终为 1000x1000 或 500x500(正方形) |
| 2-4 条路径 | 保持构图简洁 |
| 分层 | 亮色形状在后,暗色形状在前 |
反模式:
❌ <circle>, <rect>, <ellipse> (几何图形)
❌ stroke="..." 用于主要元素
❌ 多种颜色
✅ <path d="M... Q... C..."> 带有有机曲线
svg-generator.sh 助手根据章节内容自动选择合适的 SVG 模板:
| 关键词 | 模板 | 最适合 |
|---|---|---|
| identity, profile, self, unique | 指纹 + 验证 | 个人身份概念 |
| network, connect, distributed, system | 中心枢纽 + 网络 | 系统架构概念 |
| protect, secure, vault, lock | 受保护的保险库 + 链接 | 安全概念 |
| growth, learn, knowledge, tree | 知识树 | 学习/成长概念 |
| enforce, filter, gate, barrier | 网关拱门 | 执行/验证概念 |
| trust, hand, collaboration | 握手 + 连接 | 伙伴关系概念 |
| unify, finale, complete | 同心符号 | 结论/统一概念 |
用法:
# 在脚本中引入生成器
source scripts/svg-generator.sh
# 为章节生成 SVG(位置:hero/ch1/ch2/ch3/ch4/ch5/finale)
generate_svg_for_chapter \
"ch1" \
"数字身份" \
"您在区块链上的唯一身份" \
"var(--foam)" \
"var(--deep)" \
"fade-path"
位置: hero | ch1 | ch2 | ch3 | ch4 | ch5 | finale
有关详细的 GSAP 和 CSS 动画模式,请参见 references/animation-patterns.md
动画类:
| 类 | 描述 | 用法 |
|---|---|---|
organic-path | 所有 SVG 路径的基类 | 始终应用 |
fade-path | 淡入动画 | 大多数路径的默认设置 |
scale-path | 放大动画 | 与 fade-path 结合使用 |
draw-path | 描边绘制动画(仅限 GSAP) | 用于线条/路径绘制效果 |
有关叙事结构和 HTML 模板,请参见 references/structure-templates.md
| 文件 | 用途 | 何时加载 |
|---|---|---|
scripts/generate.sh | 创建 HTML(纯 CSS 或带 --gsap 的 GSAP) | 开始新项目时 |
scripts/svg-generator.sh | 基于主题的 SVG 生成助手 | 创建自定义插图时 |
references/animation-patterns.md | GSAP + CSS 动画模式 | 实现动画时 |
references/structure-templates.md | 叙事结构 + HTML 模板 | 构建章节时 |
references/svg-illustration-guide.md | 主题 → SVG 元素映射、模板 | 创建与主题相关的插图时 |
references/example-david-goliath.md | 完整工作示例,包含所有 5 个 SVG | 学习 SVG 构图模式时 |
references/anthropic-design.md | 完整设计系统参考 | 深度定制时 |
references/gsap-patterns.md | GSAP + ScrollTrigger 配方 | 使用 GSAP 动画样式时 |
references/css-only-patterns.md | IntersectionObserver 配方 | 使用纯 CSS 动画样式时 |
references/design-harmony.md | 视觉协调 + 调色板氛围 SVG 样式 | 确保一致的设计质量时 |
| 文件 | 动画 | 描述 |
|---|---|---|
agent-harness-gsap.html | GSAP | 完整体验,包含轨道 SVG、绘制动画、视差 |
agent-harness-anthropic.html | 纯 CSS | 轻量级,带有 IntersectionObserver 显示 |
bash scripts/generate.sh 项目名称 <调色板> [--gsap]prefers-reduced-motion(禁用动画)每周安装数
87
代码仓库
GitHub 星标数
7
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode84
gemini-cli83
codex82
github-copilot76
cursor74
claude-code67
Create immersive, interactive storytelling experiences using Anthropic's authentic design language: strict duotone palette, organic Bézier SVG paths, custom cursors, and chapter-based narratives.
Use AskUserQuestion to gather preferences, then generate:
| Step | Question | Options |
|---|---|---|
| 1 | Animation? | GSAP (rich) vs CSS-only (lightweight) |
| 2 | Mood? | Warm vs Cool vs Creative |
| 3 | Palette? | (show 3-4 based on mood) |
| 4 | Topic? | Biblical/Tech/Business/Personal/Custom |
| 5 | Chapters? | 3, 4, or 5 |
| 6 | Content per chapter | Title, description, keywords |
Generate:
bash ~/.claude/skills/scroll-storyteller/scripts/generate.sh my-story <palette> [--gsap] [--chapters N]
Post-generation: Customize content, create SVGs (see references/structure-templates.md)
Each chapter needs a topic-relevant SVG that matches the narrative position:
| Position | Purpose | Composition | Example |
|---|---|---|---|
| Hero | Set scene, show contrast | Wide (1000x1000), 2 silhouettes | David vs Goliath distant |
| Chapter 1 | Introduce protagonist | Centered figure + context | Shepherd with sheep |
| Chapter 2 | Show conflict/obstacle | Imposing, fills frame | Giant warrior |
| Chapter 3 | Resolution/triumph | Dynamic, radiating | Victor + fallen + rays |
| Chapter 4 | Deepening conflict (optional) | Crowded, escalating | Army masses, threats multiply |
| Chapter 5 | Final climax (optional) |
Light/Dark Pattern by Chapter Count:
Process:
references/svg-illustration-guide.md for theme → element mappingreferences/design-harmony.md → Palette Mood → SVG Style)organic-path, fade-path, scale-pathSVG Checklist:
var(--deep) and var(--foam) colors| Style | Library | Size | Best For |
|---|---|---|---|
| GSAP | GSAP 3.x + ScrollTrigger | ~45KB | Rich interactions, SVG draw, orbits, timelines |
| CSS-only | None (IntersectionObserver) | 0KB | Lightweight, fast load, simple reveals |
---|---|---|---|---
1 | Anthropic | #FAF9F5 cream | #141413 charcoal | Warm
2 | Midnight | #E8F4F8 ice | #0D1B2A navy | Cool
3 | Sepia | #F5F0E6 parchment | #2C1810 espresso | Warm
4 | Forest | #F0F4F0 mist | #1A2E1A evergreen | Creative
5 | Dusk | #F4F0F8 lavender | #1E1A2E violet | Creative
6 | | blush | ember | Warm
7 | | silver | graphite | Cool
8 | | foam | deep | Cool
Mood → Palette mapping:
| Mode | Description | When to Use |
|---|---|---|
| Authentic (default) | Strict duotone, organic paths | Editorial, brand storytelling |
| Expressive | Multi-color accents allowed | Product showcases, demos |
| Feature | Description |
|---|---|
| Custom Cursor | Dual-layer cursor with smooth easing, mix-blend-mode |
| Hero Section | GSAP : Flowing organic lines (1000x1000 background). CSS-only : Desk lamp with animated light cone reveal |
| Spotlight Layer | Radial gradient follows cursor on dark sections |
| Staggered Reveals | Title words animate in sequence on load |
| Chapter Structure | Alternating light/dark sections with transitions |
| Organic SVGs | Hand-drawn Bézier paths, fill-only (no strokes) |
| Parallax | Subtle depth movement on scroll |
| Element | Hex | CSS Variable |
|---|---|---|
| Cream (light) | #FAF9F5 | --cream |
| Charcoal (dark) | #141413 | --charcoal |
Rule: No other colors. All illustrations use exactly these two.
| Role | Font | Fallback |
|---|---|---|
| Display/Headings | Instrument Serif | Georgia, serif |
| Body/UI | Inter | -apple-system, sans-serif |
Characteristics:
| Rule | Description |
|---|---|
| Fills only | Never use strokes for main shapes |
| Organic paths | Complex Bézier curves, hand-drawn feel |
| viewBox | Always 1000x1000 or 500x500 (square) |
| 2-4 paths | Keep compositions simple |
| Layered | Light shapes behind, dark in front |
Anti-patterns:
❌ <circle>, <rect>, <ellipse> (geometric)
❌ stroke="..." on main elements
❌ Multiple colors
✅ <path d="M... Q... C..."> with organic curves
The svg-generator.sh helper automatically selects appropriate SVG templates based on chapter content:
| Keywords | Template | Best For |
|---|---|---|
| identity, profile, self, unique | Fingerprint + Verification | Personal identity concepts |
| network, connect, distributed, system | Central Hub + Network | System architecture concepts |
| protect, secure, vault, lock | Protected Vault + Links | Security concepts |
| growth, learn, knowledge, tree | Knowledge Tree | Learning/growth concepts |
| enforce, filter, gate, barrier | Gateway Arches | Enforcement/validation |
| trust, hand, collaboration | Hand Holding + Connection | Partnership concepts |
| unify, finale, complete | Concentric Symbol | Conclusion/unity |
Usage:
# Source the generator in your script
source scripts/svg-generator.sh
# Generate SVG for a chapter (position: hero/ch1/ch2/ch3/ch4/ch5/finale)
generate_svg_for_chapter \
"ch1" \
"Digital Identity" \
"Your unique identity on the blockchain" \
"var(--foam)" \
"var(--deep)" \
"fade-path"
Positions: hero | ch1 | ch2 | ch3 | ch4 | ch5 | finale
For detailed GSAP and CSS animation patterns, see references/animation-patterns.md
Animation Classes:
| Class | Description | Usage |
|---|---|---|
organic-path | Base class for all SVG paths | Always applied |
fade-path | Fade in animation | Default for most paths |
scale-path | Scale up animation | Combined with fade-path |
draw-path | Stroke draw animation (GSAP only) | For line/path drawing effects |
For narrative structure and HTML templates, see references/structure-templates.md
| File | Purpose | Load When |
|---|---|---|
scripts/generate.sh | Creates HTML (CSS-only or GSAP with --gsap) | Starting new project |
scripts/svg-generator.sh | Topic-driven SVG generation helper | Creating custom illustrations |
references/animation-patterns.md | GSAP + CSS animation patterns | Implementing animations |
references/structure-templates.md | Narrative structure + HTML templates | Building sections |
| File | Animation | Description |
|---|---|---|
agent-harness-gsap.html | GSAP | Full experience with orbit SVGs, draw animations, parallax |
agent-harness-anthropic.html | CSS-only | Lightweight with IntersectionObserver reveals |
bash scripts/generate.sh project-name <palette> [--gsap]prefers-reduced-motion support (disables animations)Weekly Installs
87
Repository
GitHub Stars
7
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode84
gemini-cli83
codex82
github-copilot76
cursor74
claude-code67
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
120,000 周安装
| Action, decisive |
| Stone flying, impact moment |
| Finale | Symbolic summary | Centered symbol | Crown + light |
#FFF5F0#2A1A14#F0F2F5#1A1C20#F0F8F8#0A1A1Areferences/svg-illustration-guide.md | Theme → SVG element mapping, templates | Creating topic-relevant illustrations |
references/example-david-goliath.md | Complete worked example with all 5 SVGs | Learning SVG composition patterns |
references/anthropic-design.md | Full design system reference | Deep customization |
references/gsap-patterns.md | GSAP + ScrollTrigger recipes | Using GSAP animation style |
references/css-only-patterns.md | IntersectionObserver recipes | Using CSS-only animation style |
references/design-harmony.md | Visual cohesion + palette-mood SVG styling | Ensuring consistent design quality |