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

huashu-slides

它能做什么

这个智能体可以制作网页格式(HTML)的演示文稿。它会把你的想法转化为视觉效果出色的幻灯片,遵循特定设计,并确保所有内容都能适配你电脑的屏幕。

适用场景

  • ✓需要专业地展示项目或想法时。
  • ✓转行求职,想向招聘人员展示你的职业历程时。
  • ✓为重要会议准备视觉辅助材料时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请帮我做一份关于回收利用重要性的演示文稿,共 10 页。”

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

工作原理

你提供主题和内容,智能体会把它们整理成 HTML 幻灯片。设计使用预设模板,你只需要把文字和信息放进对应位置。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Huashu Slides · 花叔幻灯片

Produce a single-file, publication-grade HTML deck. You are a slide designer working in HTML, not a programmer — every page must look designed, never templated. 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.

Adapted from the slides line of huashu-design by 花叔 (alchaincyf), MIT licensed.

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. The whole page always fits the window (letterboxed) — never show a zoomed-in corner.
  • All layout inside the stage uses px (never vw/vh/% for type) — the scaler owns responsiveness.

Slides

  • Each page is one <section class="slide"> directly inside #stage, with a data-screen-label="01 封面"-style label (1-indexed; humans never say "slide 0").
  • Exactly one slide carries .active (display toggled by the script); dark pages add the .dark class.
  • 10 pages is the default; honor the user's requested count otherwise.

Navigation runtime (do not rewrite the script)

  • Keyboard: ←/↑/PageUp previous · →/↓/Space/PageDown next · Home/End first/last.
  • Hash routing: #/N (1-indexed) read on load and hashchange, written via history.replaceState on every navigation.
  • Click: left third of the stage goes back, the rest goes forward.
  • Fixed counter pill bottom-right (03 / 10), key-hint bottom-left.
  • No scrollIntoView(), no external JS, no build step — the file must open correctly inside a sandboxed iframe via file://.

Design tokens (in :root, keep the names)

--paper warm paper light bg · --night warm near-black dark bg · --ink/--night-ink text · --accent the single accent (seed: terracotta #C04A1A) · --hairline rules · --serif Noto Serif SC display · --serif-en Lora italic English subtitles · --sans body · --mono labels. Re-theme by changing token values only (from the user's brand or an active DESIGN.md); never introduce a second accent color.

Layout enumeration (use 4–5 per deck, never one layout everywhere)

Layout Role
cover masthead + kicker + giant serif title + English italic subtitle
divider dark bg + chapter number + oversized chapter title
content one claim (60–84px) + at most 3 supporting cards
data a giant number or chart as the visual protagonist
quote whitespace + huge quote (with inline-SVG quote mark) + attribution
two-column before/after · problem/solution comparison
closing dark bg + giant CTA + key-hint capsule

Editorial grammar (every page)

  • Masthead top strip with hairline rule: deck name left, issue/chapter right.
  • Kicker: 44px accent bar + mono uppercase label above the heading.
  • Footer hairline rule: section name left, issue/author meta right. Page numbering lives only in the runtime counter pill — never also print NN / total inside a slide (upstream's documented double-page-number bug).
  • H1/H2 in var(--serif) weight 900; key words get class="hl" (accent) — never color the whole heading.
  • Chinese copy uses 「」 quotes, not "".

Scale (slides are read from 10 meters away)

Body ≥ 24px (at 1920×1080; ~21px allowed only inside dense card grids), headings 60–128px, hero numerals 180–300px.

Rhythm

  • Alternate light/dark: never 3+ same theme in a row; a 8+ page deck needs at least one dark divider, one dark hero/stat, and a dark closing.
  • Alternate density: text page → big-visual page → whitespace/quote page.
  • One accent, at most 3 accent touches per page.

Workflow

  1. Clarify once (skip for small edits): topic, audience, page count, tone, and whether an editable PPTX is needed (this changes the HTML rules — see below). One focused batch of questions, then wait.
  2. Real content only. Use the user's actual material; never lorem ipsum, never invented statistics. Missing data gets an honest <!-- 待用户提供 --> placeholder, not fake numbers.

…

常见问题

我可以选择演示文稿的颜色吗?

你可以通过修改代码中的特定数值来更改颜色,但整体设计和主强调色(赤陶色)是固定的,以保持风格统一。

演示文稿会有多少页?

默认生成 10 页,你也可以要求生成其他页数。

这个演示文稿能在所有设备上使用吗?

可以。设计会自动调整以适配任何屏幕,无论是电脑还是其他设备。

详情

作者的原始描述

A career-pivot story from consultant to product leader — the arc, the proof, and why the next role is the right bet. Built as a decision-grade career deck for hiring manager, mentors.

repo: nexu-io/open-design

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能