跳到正文
Skillpedia
技术文档101k · #1021

huashu-annual-letter

它能做什么

生成一个看起来像年度信件的特别网页,讲述公司的故事、它学到的经验以及未来的计划。页面视觉效果好,也很容易阅读。

适用场景

  • ✓想和社区分享公司的年度总结时。
  • ✓想清晰地介绍组织的经验和规划时。
  • ✓为投资人或合作伙伴制作正式的公司战略文档时。

技能链接

https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/huashu-annual-letter/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/huashu-annual-letter/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为“TechGlobal”写一封 2023 年的年度信,重点介绍我们在人工智能方面的增长,以及拓展欧洲市场的计划。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会接收你的文字,并把它排版成具有特定设计的网页。页面使用文字段落、突出关键数字的方框,并保持简洁,不额外添加颜色或字体。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Annual Letter · 年度信笺

Produce a single-file, letter-grade HTML deck in the Stripe Annual Letter genre: a published letter you read, not a template you skim. Prose flows in serif paragraphs; numbers live in inline data cards and giant display anchors. 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, and never introduce colors or fonts outside this spec.

Adapted from the editorial-longform style (references/design-styles.md, 安静派 · 杂志编辑长文流 / Editorial Longform) of huashu-design by 花叔 (alchaincyf), MIT licensed. Reference lineage: Stripe Annual Letter, Amazon six-page narrative memos, Stripe Press.

Hard spec (locked — violating any line is a regression)

Canvas & scaling

  • One <div id="stage"> fixed at 1920 × 1080 px, centered with position: fixed; top: 50%; left: 50%.
  • A fit() function scales the stage to the viewport: scale = min(innerWidth / 1920, innerHeight / 1080), applied as translate(-50%, -50%) scale(s), re-run on resize. Letterboxed, never cropped.
  • All layout inside the stage uses px (never vw/vh/% for type) — the scaler owns responsiveness.

Slides & navigation runtime (do not rewrite the script)

  • Each page is one <section class="slide"> directly inside #stage, with a data-screen-label="01 刊头"-style label (1-indexed).
  • Exactly one slide carries .active. No .dark pages in this theme — every page sits on cream paper; rhythm comes from density, not theme flips.
  • Keyboard: ←/↑/PageUp previous · →/↓/Space/PageDown next · Home/End first/last. Hash routing #/N (1-indexed) read on load and hashchange, written via history.replaceState. Click: left third back, rest forward. Fixed counter pill bottom-right, key-hint bottom-left.
  • Zero external JS, zero build step; the file must open via file:// inside a sandboxed iframe.

Design tokens (in :root, keep the names — re-theme by changing values only)

--paper:        #FBFAF8;                    /* cream paper, every page */
--panel:        #FFFFFF;                    /* data-card surface */
--ink:          #232036;                    /* deep ink text */
--ink-70:       rgba(35, 32, 54, 0.72);     /* prose body */
--ink-45:       rgba(35, 32, 54, 0.46);     /* captions, chrome */
--hairline:     rgba(35, 32, 54, 0.12);     /* all rules */
--accent:       #635BFF;                    /* Stripe purple — the ONLY accent */
--accent-soft:  rgba(99, 91, 255, 0.08);    /* tint panels, quote marks */
--serif:        "Newsreader", "Source Serif 4", "Noto Serif SC", Georgia, serif;
--serif-text:   "Source Serif 4", "Newsreader", "Noto Serif SC", Georgia, serif;
--sans:         "Inter", "Noto Sans SC", -apple-system, sans-serif;
  • Fonts via Google Fonts @import: Newsreader (display, incl. italic), Source Serif 4 (prose), Noto Serif SC (CJK serif), Inter, Noto Sans SC.
  • All numerals tabular: the shared .num class sets font-variant-numeric: tabular-nums; every metric, year, and display number uses it.
  • One accent. Never a second hue, never a gradient, never a dark slide.

Letter chrome (every page)

  • Letterhead top strip with hairline rule: publication/company name left (small-caps Inter, letter-spaced, brand word in accent), issue + date right.
  • Footer hairline rule: section name left, author/issue meta right. Page numbering lives only in the runtime counter pill — never also printed inside a slide.
  • Headings in var(--serif) (Newsreader/Noto Serif SC), weight 500–600 — letters are set elegantly, not boldly; key words get class="hl" (accent), never the whole heading.
  • Kicker: small-caps Inter label with a short 44×3px accent bar above section titles.
  • Chinese copy uses 「」 quotes; 中英混排 keeps English in Newsreader italic.

Signature devices (the genre — use them, don't substitute)

Device Spec
Prose measure paragraphs max-width: 980px (≈65ch), serif 25–27px, line-height: 1.9, text-align: justify optional
Drop cap first paragraph of the letter body: ::first-letter serif, ~3 lines tall, accent color
Inline data card --panel bg, 1px hairline, 2–3px accent top rule, small-caps Inter label + large tabular serif numeral + one-line caption; floated beside or gridded next to prose

…

常见问题

用这个功能需要会写代码吗?

不需要,你只要提供想放进去的文字就行,所有技术和设计工作都由 AI 完成。

我可以修改颜色或风格吗?

不可以。为了保持“年度信”的风格,并确保整体专业统一,设计是固定的。

“数据卡片”和“展示锚点”是什么?

“数据卡片”是展示重要数字的小方框,上面带有标题。“展示锚点”是在整页中很醒目的大号数字。

详情

作者的原始描述

OpenDesign's annual letter to its community: the year's story, what it learned, and where it's going next. Built as a decision-grade corporate strategy deck for community, contributors, investors.

repo: nexu-io/open-design

热度

GitHub 星标
101k
排名
#1021
许可证
Apache-2.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能