presentation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePresentation
演示文稿
Build a short slide deck that people with no context can follow: a few slides, each with one outcome, one drawing and Clawd.
构建一份让不了解背景的人也能跟上的简短幻灯片演示文稿:只需几页,每页包含一个成果、一幅图和 Clawd。
Scope
范围
- With a prompt, the deck is about that topic. Collect the facts from the sources the prompt names, the repository, and the conversation.
- With no prompt, the deck shows the user's work of the last 14 days, ending today.
- Write the deck to a new folder outside the repository, by default . Use another place only when the user names one. Never commit the deck.
~/Desktop/<short-name>/ - Ask the user only when the topic of a prompt is unclear. Do not ask about layout, order or wording. Build a first version and let the user correct it.
- 提供 prompt 时,演示文稿围绕该主题展开。从 prompt 指定的来源、repository 和对话中收集事实。
- 未提供 prompt 时,演示文稿展示用户过去 14 天截至今天的工作。
- 将演示文稿写入 repository 之外的新文件夹,默认路径为 。仅当用户指定其他位置时才使用其他路径。绝不要 commit 这份演示文稿。
~/Desktop/<short-name>/ - 仅当 prompt 的主题不明确时才询问用户。不要询问布局、顺序或措辞。先构建第一个版本,再让用户提出修改意见。
1. Collect the facts
1. 收集事实
For the default two-week deck:
bash
gh pr list --author @me --state merged --search "merged:>=YYYY-MM-DD" --limit 300 \
--json number,title,mergedAt,additions,deletions
gh pr list --author @me --state open --json number,title,isDraftPass when the checkout's remote is not the GitHub repository. Read the description of each large or unclear pull request with . If a ticket tracker is connected, use it for context, not for counts. If GitHub access is unavailable, say so and build the deck from the git log and the conversation.
-R owner/repogh pr view <number> --json title,bodyGroup the pull requests into three to six features. Put all bug fixes in one group. For each feature, write down what changed for a user or for the team, and the numbers the sources state.
Use only numbers you read in a source. When a drawing needs an example value that you made up, tell the user in the final message. Do not name a customer unless the user did.
对于默认的两周演示文稿:
bash
gh pr list --author @me --state merged --search "merged:>=YYYY-MM-DD" --limit 300 \
--json number,title,mergedAt,additions,deletions
gh pr list --author @me --state open --json number,title,isDraft当当前 checkout 的 remote 不是 GitHub repository 时,传入 。使用 读取每个大型或不明确的 pull request 的描述。如果连接了 ticket tracker,可将其作为上下文使用,但不要用它统计数量。如果无法访问 GitHub,应说明这一点,并根据 git log 和对话构建演示文稿。
-R owner/repogh pr view <number> --json title,body将 pull request 分组为三到六个功能特性。所有 bug 修复放在同一组。对每个功能特性,记录它为用户或团队带来了什么变化,以及来源中明确给出的数字。
仅使用从来源中读取到的数字。如果图示需要一个由你编造的示例值,应在最终消息中告知用户。除非用户提到,否则不要写出客户名称。
2. Plan the slides
2. 规划幻灯片
Use this order:
- Title: the topic and the dates, with the presenter's name under it. No pull request or ticket counts on this slide.
- Helicopter view: one drawing of the product's main flow, with each feature marked on the step it changed. Put work that is outside the flow in a frame under it.
- One slide for each feature.
- Bug fixes: the title "Backlog cleared 😎", one line that states how many bugs got fixed, and one short line for each fix that says what it now does. No before and after here.
- Questions.
Do not add a "what's next" slide unless the user asks for one.
Rules for every slide:
- The title states the outcome in plain words, on one line. "A buyer now pays on one page", not "Checkout refactor".
- Explain each term the audience may not know in one short line, once.
- Prefer a drawing to text. A feature slide is a drawing, plus at most three numbers under it.
- A before and now comparison works for one flow or for one real text example. It reads badly as a table of many rows, so do not use it for a list.
- Write in short sentences with common words. Leave out filler and metaphors.
按以下顺序排列:
- 标题:主题和日期,下方展示演示者姓名。此页不要显示 pull request 或 ticket 数量。
- 全局概览:用一幅图画出产品的主流程,并在每个功能特性所改变的步骤上做标记。将流程之外的工作放在图下方的一个框中。
- 每个功能特性一页。
- Bug 修复:标题为“积压事项已清理 😎”,用一行说明修复了多少个 bug,并为每项修复写一行简短说明,描述它现在的行为。此处不要使用“之前与现在”的对比。
- 问答。
除非用户要求,否则不要添加“下一步”幻灯片。
每页的规则:
- 标题用平实语言在一行内说明成果。例如“买家现在可在一个页面完成付款”,而不是“Checkout 重构”。
- 解释观众可能不熟悉的每个术语,每个术语只需用一行简短说明一次。
- 优先使用图示而不是文字。功能页应包含一幅图,图下最多放三个数字。
- “之前与现在”的对比适用于一个流程或一个真实文本示例。以多行表格呈现时阅读效果很差,因此不要将它用于列表。
- 使用常见词语写短句。删去填充内容和比喻。
3. Build the deck
3. 构建演示文稿
Copy the deck template folder, , to the output folder. It has no build step. It loads Rough.js, which draws the hand-drawn shapes, from a CDN, so the deck needs internet access when it is shown. Change only two files:
assets/deck/- : one
index.htmlfor each slide.<section class="slide"> - : the drawings (
content.js) and the Clawd walks (SCENES).TOURS
The deck format reference lists the slide layouts, the shape kinds, the colors and the Clawd modes. The template is an example deck about a made-up bookshop. Replace all of its content.
Give every slide a Clawd with its own tour. Clawd reacts to the content: tired or confused in the "before" part, then happy on the result. Use different modes on different slides. Keep the speech bubbles short and a little funny.
将演示文稿模板文件夹 复制到输出文件夹。它无需构建步骤。它会通过 CDN 加载用于绘制手绘形状的 Rough.js,因此展示演示文稿时需要互联网连接。只能修改两个文件:
assets/deck/- :每页对应一个
index.html。<section class="slide"> - :图示(
content.js)和 Clawd 行走动画(SCENES)。TOURS
演示文稿格式参考列出了幻灯片布局、形状类型、颜色和 Clawd 模式。模板是一个关于虚构书店的示例演示文稿。替换其中所有内容。
为每一页设置一个拥有自己行走动画的 Clawd。Clawd 会对内容作出反应:在“之前”部分显得疲惫或困惑,看到结果后则感到开心。在不同幻灯片上使用不同模式。保持对话气泡简短,并带一点趣味。
4. Check every slide
4. 检查每一页
Take a screenshot of each slide and look at it. With Chrome:
bash
"<chrome>" --headless=new --hide-scrollbars --window-size=1440,810 \
--virtual-time-budget=9000 --screenshot=<out>/s<N>.png \
"file://<deck>/index.html?still&at=30000#<N>"?stillat=30000- text that leaves its box, or a title on two lines
- a drawing that overlaps the numbers under it
- Clawd or its speech bubble on top of text in the last pose
If no screenshot tool is available, say that the slides were not checked.
对每一页截图并亲自查看。使用 Chrome:
bash
"<chrome>" --headless=new --hide-scrollbars --window-size=1440,810 \
--virtual-time-budget=9000 --screenshot=<out>/s<N>.png \
"file://<deck>/index.html?still&at=30000#<N>"?stillat=30000- 文字超出文本框,或标题换成两行
- 图示与其下方数字重叠
- 在最后一个姿势中,Clawd 或其对话气泡压在文字上
如果没有可用的截图工具,应说明幻灯片未经检查。
Completion
完成
Open in the user's browser. In the final message, give the path, list the slides in one line each, and name every value you made up and every claim you did not verify. Keep the message short.
index.html在用户的浏览器中打开 。在最终消息中给出路径,每行列出一个幻灯片标题,并说明每一个由你编造的值和每一项未经验证的主张。消息保持简短。
index.htmlExample
示例
The user runs with no prompt. You read their 33 merged pull requests of the last two weeks, group them into five features and one group of 12 bug fixes, and build a ten-slide deck in . You check all ten screenshots, open the deck, and tell the user which example values are invented.
/presentation~/Desktop/two-weeks/The user runs . You build a five-slide deck on that topic from the repository and the pull requests that the user names.
/presentation explain the new pay page to the support team用户不带 prompt 运行 。你读取其过去两周内合并的 33 个 pull request,将它们分为五个功能特性和一组 12 个 bug 修复,并在 中构建一份十页演示文稿。你检查全部十张截图,打开演示文稿,并告知用户哪些示例值是虚构的。
/presentation~/Desktop/two-weeks/用户运行 。你根据 repository 和用户指定的 pull request,围绕该主题构建一份五页演示文稿。
/presentation explain the new pay page to the support team