hackathon-deck-demo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThe demo deck: played, shot, hosted, linked
演示文稿:操作、截图、托管、链接
The jury reads it alone, after the pitches. The app runs on the team's own machine and is not online,
so the jury never opens it: the deck shows it working instead. It is a page of one to three
episodes, each a short story of one thing the product does (two to six steps), every step one
action with the screen's exact labels, what the screen showed, and a screenshot Playwright took of the
running app. The jury opens a screenshot large and follows an episode step by step. A feature the app
does not have is never in it.
Work from the root of the team's clone; everything goes into . The scripts ship with this skill, in the folder beside this SKILL.md (call that folder
; under Claude Code it is also , and after
it is ): (the Playwright play, copied into the
clone and completed for this app), (fills the organizer's template), (checks the
page) and (the content filled for an invented tool).
decks/demo/scripts/$SKILL_DIR/scripts${CLAUDE_PLUGIN_ROOT}/skills/hackathon-deck-demo/scriptsnpx skills add~/.agents/skills/hackathon-deck-demo/scriptsplay.mjsfill.mjscheck.mjsguide.example.json路演结束后,评审会独自阅读它。应用运行在团队自己的机器上,未部署到线上,
因此评审绝不会打开应用;演示文稿改为展示其运行情况。它是一个包含 1 至 3 个
演示片段的页面,每个片段以 2 至 6 个步骤简短讲述产品完成的一项事情;每个步骤只包含
一个操作,使用屏幕上的准确标签,并说明操作后屏幕显示的内容,同时附上 Playwright 对运行中的
应用拍摄的截图。评审可以打开并放大截图,逐步跟随一个演示片段。应用中不存在的功能绝不写入其中。
从团队 clone 的根目录开始工作;所有内容都放入 。这些脚本随本 skill 一同提供,位于本 SKILL.md 旁边的 文件夹(将该文件夹称为
;在 Claude Code 下,它也位于 ,执行
后则位于 ):(Playwright 操作脚本,复制到
clone 后针对当前应用补全)、(填充主办方模板)、(检查
页面)以及 (为一个虚构工具填充的内容示例)。
decks/demo/scripts/$SKILL_DIR/scripts${CLAUDE_PLUGIN_ROOT}/skills/hackathon-deck-demo/scriptsnpx skills add~/.agents/skills/hackathon-deck-demo/scriptsplay.mjsfill.mjscheck.mjsguide.example.json1. The app is running
1. 应用正在运行
bash
hackathon doctor --directory . --jsonThe check must pass. If it does not, run the skill first. The app's local URL is
, the port being of (or the one
printed when it was started with ).
apphackathon-doctorhttp://127.0.0.1:<port>app.porthackathon.jsonhackathon setup--portbash
hackathon doctor --directory . --jsonapphackathon-doctorhttp://127.0.0.1:<port>hackathon.jsonapp.port--porthackathon setup2. The episodes
2. 演示片段
Read the repository (the README, the routes, the dashboard's pages) and open the app, then ASK the
participant, in one message, to confirm, each proposed from what you read: the one sentence of what
the tool does and for whom; one to three episodes, each a title, a two-sentence situation (who the
reader is in it, what is already true) and its two to six steps; what was set up before (the account,
the data, what is invented); what the agent does on the computer and what a person still decides; and
what is not finished yet.
Write in the shape of : ( or ),
(from : its name and its start day, as
), , , (the product), (its one sentence),
, , , (, : , ), ,
(, , , , ), (, ). A step
is (one action, the screen's exact labels between « »), (what the screen shows after it),
(, NN its number counted straight through the episodes: episode 1's steps are
01, 02…, episode 2's carry on), and for the play (a page of the app to open) and
(texts that must be on the screen). A step whose picture would need a real account, a real payment or
a real message carries (the reason, a few words) instead of . The team's own words, no
marketing.
decks/demo/guide.jsonguide.example.jsonlangenfroccasionhackathon event status --json<name> · <day month year>teammemberstitlesubtitleforWhomapp.urlintroworldssetupagentnametextnotFinishedepisodes[]titlewhominutessituationsteps[]closingtitletextdoseeshotscreens/NN.jpgpathexpectnoshotshot读取仓库(README、路由、dashboard 的各页面)并打开应用,然后用一条消息 ASK
参赛者,让他确认以下内容;每项提案都应基于你读到的信息:用一句话说明工具的用途及目标用户;1 至 3 个演示片段,每个包含标题、一个两句的情境说明(读者在情境中的身份、已经成立的条件)及其 2 至 6 个步骤;此前设置了什么(账户、数据、哪些内容是虚构的);Agent 在计算机上执行什么,以及人仍需决定什么;以及哪些部分尚未完成。
按照 的结构写入 :( 或 )、
(取自 :活动名称和开始日期,格式为
)、、、(产品名称)、
(一句话简介)、、、、(、 各含 、)、、
(、、、、)、(、)。一个步骤包含
(一个操作,屏幕上的准确标签置于 « » 之间)、(操作后屏幕显示的内容)、
(,NN 是跨各演示片段连续编号的步骤序号:演示片段 1 的步骤为
01、02……,演示片段 2 接着编号),play 中还需要 (要打开的应用页面)和
(屏幕上必须出现的文本)。如果某一步的图片需要真实账户、真实付款或发送真实消息,
则使用 (用几个词说明原因)代替 。使用团队自己的措辞,不要加入营销内容。
guide.example.jsondecks/demo/guide.jsonlangenfroccasionhackathon event status --json<name> · <day month year>teammemberstitlesubtitleforWhomapp.urlintroworldssetupagentnametextnotFinishedepisodes[]titlewhominutessituationsteps[]closingtitletextdoseeshotscreens/NN.jpgpathexpectnoshotshot3. Play it and take the screenshots
3. 运行并截取截图
Playwright, once per machine (skip when the clone already has in its ):
playwrightnode_modulesbash
npm i --prefix ~/.cache/antasphere-hackathon/playwright playwright@1
npx --prefix ~/.cache/antasphere-hackathon/playwright playwright install chromiumCopy the play into the clone and write its gestures:
bash
cp "$SKILL_DIR/scripts/play.mjs" decks/demo/play.mjsAt the bottom of , write one gesture per step number () that brings the screen to what the step's says, with Playwright's own locators
(, , ) read from the app's code. A step with only a needs no
gesture. A gesture never deletes anything, never sends a real message or a real payment, and never
types a real credential: a demo shows, it does not spend.
decks/demo/play.mjsasync 3({ page, open, expect })seegetByRolegetByLabelgetByTextpathIf the app needs a sign-in, the participant signs in once by hand:
bash
node decks/demo/play.mjs --login # a browser opens: sign in, then close the windowThe session is kept in , outside the repository. Then play:
~/.cache/antasphere-hackathon/bash
node decks/demo/play.mjs # --headed to watch it, --from 3 --until 5 to replay a rangeIt writes and . Exit 1 means a step failed: read
( texts, ), open the screenshot, fix the gesture or the step's ,
and replay that range. Open every screenshot before going on: a that is not true of its picture
is rewritten, never kept.
decks/demo/screens/NN.jpgdecks/demo/results.jsonresults.jsonmissingnoteseeseePlaywright 每台机器只需安装一次(如果 clone 的 中已经存在 ,则跳过):
node_modulesplaywrightbash
npm i --prefix ~/.cache/antasphere-hackathon/playwright playwright@1
npx --prefix ~/.cache/antasphere-hackathon/playwright playwright install chromium将 play 脚本复制到 clone 中,并编写其交互动作:
bash
cp "$SKILL_DIR/scripts/play.mjs" decks/demo/play.mjs在 底部,按步骤编号编写一个交互动作(),使用依据应用代码选取的 Playwright locator(、、),
让屏幕达到该步骤 所描述的状态。只有 的步骤不需要交互动作。
交互动作绝不删除任何内容,绝不发送真实消息或进行真实付款,也绝不输入真实凭据:
演示只做展示,不进行实际消费。
decks/demo/play.mjsasync 3({ page, open, expect })getByRolegetByLabelgetByTextseepath如果应用需要登录,参赛者手动登录一次:
bash
node decks/demo/play.mjs --login # a browser opens: sign in, then close the window会话保存在仓库外的 中。然后运行:
~/.cache/antasphere-hackathon/bash
node decks/demo/play.mjs # --headed to watch it, --from 3 --until 5 to replay a range它会写入 和 。退出码 1 表示某个步骤失败:
读取 ( 文本、),打开截图,修正交互动作或该步骤的 ,
然后重播该范围。继续之前,逐一打开每张截图进行检查:如果 与截图的实际内容不符,
就重写 ,绝不能保留不准确的内容。
decks/demo/screens/NN.jpgdecks/demo/results.jsonresults.jsonmissingnoteseeseesee4. Slideless, in the event's workspace
4. Slideless,在活动所属的 workspace 中
bash
npm i -g @antasphere/slideless@latest
slideless whoami --jsonThe participant's is the same Antasphere login. It asks to sign in, or says "Run
": the participant runs in their own terminal, then again. A
refusal that the organization has no access to Slideless: STOP and tell the participant an organizer
has to open Slideless to the event's organization; the screenshots and are kept for
later.
hackathon loginantasphere loginhackathon loginguide.jsonworkspace.namehackathon whoami --jsonslideless workspaces --json--workspace <its id>slidelessbash
npm i -g @antasphere/slideless@latest
slideless whoami --json参赛者使用的 与 Antasphere 登录是同一套身份。该命令会要求登录,
或提示“Run ”:参赛者在自己的终端中运行 ,然后再次运行该命令。
如果系统以该组织没有 Slideless 访问权限为由拒绝:STOP,并告知参赛者需要由主办方为活动所属组织
开通 Slideless;截图和 将保留,供以后使用。
hackathon loginantasphere loginhackathon loginguide.json在 中, 是活动所属组织的名称;在
中选择同名 workspace,并向下面的每条 命令传入
。如果不存在同名项,说明情况并 ASK;绝不发布到个人 workspace。
hackathon whoami --jsonworkspace.nameslideless workspaces --jsonslideless--workspace <its id>5. Start from the organizer's template, fill, check
5. 从主办方模板开始、填充并检查
bash
slideless template list --json --workspace <id>Take the template titled . When there is none, STOP: tell the participant the
organizers have not published the event's templates yet (their guide does it) and to
ask one of them. Never build the page any other way. Then, once:
Demo deckevent-decksbash
slideless template start "Demo deck" decks/demo/deck --workspace <id>
printf 'decks/*/deck/\ndecks/*/check/\n' >> .gitignore # once per clone, if not there yetdecks/demo/deck/.slideless.jsonbash
node "$SKILL_DIR/scripts/fill.mjs" demo decks/demo
node "$SKILL_DIR/scripts/check.mjs" decks/demofill.mjsguide.jsonnoshotguide.jsoncheck.mjsdecks/demo/check/okopen decks/demo/checkopen decks/demo/deck/index.htmlopenstartxdg-openbash
slideless template list --json --workspace <id>选择标题为 的模板。如果不存在,STOP:告知参赛者主办方尚未发布该活动的模板
(由主办方的 guide 完成此操作),并让参赛者向其中一位主办方询问。
绝不以其他方式构建该页面。然后,以下操作只需执行一次:
Demo deckevent-decksbash
slideless template start "Demo deck" decks/demo/deck --workspace <id>
printf 'decks/*/deck/\ndecks/*/check/\n' >> .gitignore # once per clone, if not there yetdecks/demo/deck/.slideless.jsonbash
node "$SKILL_DIR/scripts/fill.mjs" demo decks/demo
node "$SKILL_DIR/scripts/check.mjs" decks/demofill.mjsguide.jsonnoshotguide.jsoncheck.mjsdecks/demo/check/okopen decks/demo/checkopen decks/demo/deck/index.htmlopenstartxdg-open6. Publish and share
6. 发布并分享
bash
slideless push decks/demo/deck --kind app --title "<Team> · Demo" --template "Demo deck" --no-open --json --workspace <id>
slideless share <deck id> --name "Jury" --json --workspace <id>--kind apppresentation.idurlhttps://<host>/v/<token>/bash
slideless push decks/demo/deck --kind app --title "<Team> · Demo" --template "Demo deck" --no-open --json --workspace <id>
slideless share <deck id> --name "Jury" --json --workspace <id>--kind apppresentation.idurlhttps://<host>/v/<token>/7. Hand the link to the platform
7. 将链接提交给平台
bash
hackathon decks link --demo <url> --json
hackathon decks show --jsonThe team is the signed-in participant's own. Exit 2: not a share link .
Exit 1 with the platform's sentence: the link's host is not one the platform accepts (the sentence
names the allowed host). Exit 3: sign in, or not on a team. The pitch and the vote presentation are
the two other links (the skill, the skill); they reuse these screenshots.
https://<host>/v/<token>/hackathon-deck-pitchhackathon-deck-voteCommit , , and , never
or . Push before the freeze like any other work.
decks/demo/guide.jsonplay.mjsscreens/results.jsondecks/demo/deck/decks/demo/check/bash
hackathon decks link --demo <url> --json
hackathon decks show --json该团队必须是当前登录参赛者所属的团队。退出码 2:提供的不是 格式的
分享链接。退出码 1:平台会给出相应说明,表示链接的 host 不在平台允许的 host 列表中
(该说明会列出允许的 host)。退出码 3:尚未登录,或当前用户不属于任何团队。
Pitch 和投票演示文稿是另外两个链接( skill、
skill);它们会复用这些截图。
https://<host>/v/<token>/hackathon-deck-pitchhackathon-deck-vote提交 、、 和 ,绝不提交
或 。像处理其他工作一样,在冻结截止前 push。
decks/demo/guide.jsonplay.mjsscreens/results.jsondecks/demo/deck/decks/demo/check/Never
绝不
- Never put a password, an API key or a real person's data in a screenshot or a step.
- Never a button or a link that asks the jury to open the app: it is not online.
- Never build the page without the organizer's template, and never copy the brand's files elsewhere.
- Never share the demo with a password or an expiry: the jury opens it after the event.
- Never pass a credential to or
slideless: the Antasphere login does the work.hackathon - Never commit or anything from it.
~/.cache/antasphere-hackathon/
- 绝不在截图或步骤中放入密码、API key 或真实人员的数据。
- 绝不放置要求评审打开应用的按钮或链接:该应用未部署到线上。
- 绝不在没有主办方模板的情况下构建页面,也绝不将品牌文件复制到其他位置。
- 绝不使用密码或过期时间分享演示:活动结束后评审仍需能够打开。
- 绝不向 或
slideless传递凭据;由 Antasphere 登录完成身份验证。hackathon - 绝不提交 或其中的任何内容。
~/.cache/antasphere-hackathon/