scrolls-explainer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseScrolls explainer
Scrolls 讲解器
This skill delivers one self-contained HTML page that explains the scrolls
skill family visually. The page ships ready-made in
. There are three modes:
assets/scrolls-explainer.html- , or
/scrolls-explainer(the same thing): open that page where it is, copying nothing.--show - : copy that page to a file or folder the user wants it in.
-o PATH - : regenerate that page from the
--buildskills next to this one, so it matches them as they are now.scrolls-*
Scope note: This skill never reads, checks or changes the user's scrolls memory (,docs/.scrolls/,SCROLLS.md,CLAUDE.md). The default (AGENTS.md) writes nothing.--showwrites only the page, at the path given, and never overwrites a different existing file unless the user asked (-o).-fwrites only this skill's own--buildand, withassets/scrolls-explainer.html(or when you add a missing tab),--reviewed— nothing outside this skill's folder.assets/explainer-graph.json
此 skill 提供一个自包含的 HTML 页面,以可视化方式讲解 scrolls skill 系列。该页面已预先构建并随附于 。共有三种模式:
assets/scrolls-explainer.html- 或
/scrolls-explainer(两者效果相同): 在原地打开该页面,不复制任何内容。--show - : 将页面复制到用户所需的文件或文件夹。
-o PATH - : 根据与当前 skill 相邻的
--buildskills 重新生成页面,使其与这些 skills 的现状保持一致。scrolls-*
范围说明: 此 skill 绝不会读取、检查或修改用户的 scrolls memory(、docs/.scrolls/、SCROLLS.md、CLAUDE.md)。默认模式(AGENTS.md)不写入任何内容。--show只会将页面写入指定路径,除非用户明确要求(使用-o),否则绝不会覆盖该位置上已有的不同文件。-f只会写入此 skill 自己的--build;在配合assets/scrolls-explainer.html时(或添加缺失的标签页后),还会写入--reviewed,绝不会写入此 skill 文件夹之外的内容。assets/explainer-graph.json
Cross-platform
跨平台支持
The script ships in two forms that behave identically:
(bash — macOS, Linux, or Windows with Git Bash/WSL) and
(PowerShell 7+ — Windows, or macOS/Linux with installed). Both are
thin launchers for (stdlib-only Python 3.9+), resolving
and then . Pick the launcher by what's actually
available: try ; if that succeeds, use ; otherwise use
via (preferred) or, only if isn't available, the
built-in Windows PowerShell .
explain.shexplain.ps1pwshexplain.pypython3pythonbash --version.sh.ps1pwshpwshpowershell.exe脚本以两种行为一致的形式提供:(bash——适用于 macOS、Linux,或安装了 Git Bash/WSL 的 Windows)和 (PowerShell 7+——适用于 Windows,或安装了 的 macOS/Linux)。两者都是 (仅使用标准库的 Python 3.9+)的轻量启动器,会依次查找并使用 和 。应根据实际可用的环境选择启动器:先尝试 ;如果成功,则使用 ;否则通过 使用 (首选),仅当 不可用时才使用 Windows 内置的 。
explain.shexplain.ps1pwshexplain.pypython3pythonbash --version.shpwsh.ps1pwshpowershell.exeOptions
选项
| Flag | Meaning |
|---|---|
(none), | The default. Copy nothing: print the path and |
| Copy the page here instead. A file path is used as is; an existing folder (such as |
| With |
| With |
| Regenerate |
| With |
| With |
| Print the page's version ( |
| Print usage and exit. |
Exit codes: done (or already up to date), the bundled page is
missing or a file can't be written, usage error, a different file
is in the way (no ), stopped because the skills need
attention, can't find the network-flow skill.
0123-f4--build5--build| 参数 | 含义 |
|---|---|
(无)、 | 默认模式。不复制任何内容:打印内置 |
| 改为将页面复制到此路径。文件路径按原样使用;如果目标是现有文件夹(如 |
| 仅可与 |
| 与 |
| 根据与当前 skill 相邻的 |
| 仅可与 |
| 仅可与 |
| 打印页面版本( |
| 打印用法并退出。 |
退出码: 表示完成(或已是最新状态), 表示内置页面缺失或无法写入文件, 表示用法错误, 表示目标位置已有不同文件且未提供 , 表示 因相关 skills 需要人工处理而停止, 表示 找不到 network-flow skill。
0123-f4--build5--buildSteps
步骤
-
Pick the mode from the request.
- Bare ,
/scrolls-explainer, or "show me", "open it", "let me see the explainer": show the bundled page (no flags). This is the default: don't copy the page anywhere unless asked.--show - "Rebuild", "regenerate", "update the explainer", "make it match the
skills": (then follow "Building" below).
--build - The user wants a file of their own (save, export, put it in , give me a copy,
docs/): copy it with-o ….-o
- Bare
-
For a copy, choose the path.
- The user named a file or folder: pass it as .
-o - The user asked for a copy "here" or named no place: writes
-o .in the current directory. If the host gives you a designated folder for files the user can open (an outputs or scratchpad folder), and the current directory is a project the user did not ask you to write into, use that folder instead, so the page doesn't land in their source tree unasked../scrolls-explainer.html - Add only when the user asked to replace an existing page, or the script already refused and the user then confirmed.
-f - Add when the user also wants the copy opened and the machine has a display.
--open
- The user named a file or folder: pass it as
-
Run the script from the directory the path is relative to:
bash <skill-dir>/scripts/explain.sh # = --show bash <skill-dir>/scripts/explain.sh -o PATH [-f] [--open] bash <skill-dir>/scripts/explain.sh --build [--reviewed] [--show | -o PATH] pwsh <skill-dir>/scripts/explain.ps1 …same flags…Showing printsandscrolls-explainer <version>: <bundled page's path>. A copy printsopen: file://…(orscrolls-explainer <version>: wrote <absolute path>) and then… is already up to date.open: file://… -
On exit 3 (a different file is already there): tell the user, and offeror another
-fpath. Don't retry with-oon your own. On exit 1, 2 or 5: report the script's message as is (for 5, it says how to install the network-flow skill). On exit 4: see "Building".-f -
Deliver. Give the absolute path and theURL. If the host can show or send files (a file card, a preview pane), use that too — for
file://, that's the bundled file itself. Then describe how to use the page in a few lines:--show- Tabs: Overview, one tab for each scrolls command, and New
session (how a fresh agent session follows /
AGENTS.md→CLAUDE.md→SCROLLS.md).STARTER.md - Each command tab plays its steps automatically, with a callout next to the file being touched; the callout's ‹ › buttons step and pause.
- Keyboard: /
→step,←/Homefirst/last step,End[or]+arrows switch tabs, digits jump to a tab,Shift/Spacepause,Preplay,Rshows every shortcut,?closes or clears.Esc - Click a block to see what it is and trace its connections.
- The page is fully offline: no network requests, nothing to install.
- Tabs: Overview, one tab for each scrolls command, and New
session (how a fresh agent session follows
-
Questions about a command that go beyond what the page shows (exact flags, edge cases): point the user at, which holds the canonical reference. Don't describe behavior the page and
/scrolls-helpdon't state./scrolls-help
-
根据请求选择模式。
- 仅输入 、使用
/scrolls-explainer,或提出“给我看看”“打开它”“让我看看讲解器”等请求时:显示内置页面(不附加任何 flags)。这是默认模式:除非用户要求,否则不要将页面复制到任何位置。--show - 用户提出“重新构建”“重新生成”“更新讲解器”“让页面与 skills 保持一致”等请求时:使用 (然后遵循“构建”部分)。
--build - 用户需要自己的文件(保存、导出、放入 、给我一份副本、
docs/)时:使用-o …复制页面。-o
- 仅输入
-
需要副本时,选择路径。
- 用户指定了文件或文件夹:通过 传入该路径。
-o - 用户要求将副本放在“这里”或未指定位置:使用 ,在当前目录中写入
-o .。如果宿主环境提供了专门用于存放用户可打开文件的目录(输出目录或临时目录),而当前目录是用户未要求写入的项目目录,则应改用该目录,避免页面被擅自放入用户的源代码树中。./scrolls-explainer.html - 仅当用户明确要求替换已有页面,或脚本已拒绝操作且用户随后确认时,才添加 。
-f - 当用户还希望打开副本且机器有图形显示环境时,添加 。
--open
- 用户指定了文件或文件夹:通过
-
从相对路径所基于的目录运行脚本:
bash <skill-dir>/scripts/explain.sh # = --show bash <skill-dir>/scripts/explain.sh -o PATH [-f] [--open] bash <skill-dir>/scripts/explain.sh --build [--reviewed] [--show | -o PATH] pwsh <skill-dir>/scripts/explain.ps1 …same flags…显示页面时会输出和scrolls-explainer <version>: <bundled page's path>。复制页面时会输出open: file://…(或scrolls-explainer <version>: wrote <absolute path>),随后输出… is already up to date。open: file://… -
遇到退出码 3(目标位置已有不同文件)时:告知用户,并提供使用或选择其他
-f路径的选项。不要自行重试并添加-o。遇到退出码 1、2 或 5 时:原样报告脚本消息(退出码 5 的消息会说明如何安装 network-flow skill)。遇到退出码 4 时:参见“构建”部分。-f -
交付。 提供绝对路径和URL。如果宿主环境能够展示或发送文件(文件卡片、预览面板等),也应使用这些方式;对于
file://,展示的就是内置文件本身。然后用几行说明如何使用该页面:--show- 标签页:包括 Overview、每个 scrolls 命令对应的标签页,以及 New session(介绍新的 Agent 会话如何依次读取 /
AGENTS.md→CLAUDE.md→SCROLLS.md)。STARTER.md - 每个命令标签页都会自动播放其步骤,并在所操作文件旁显示提示框;可通过提示框中的 ‹ › 按钮逐步浏览和暂停。
- 键盘操作:/
→逐步浏览,←/Home跳至第一步/最后一步,End[或]+方向键切换标签页,数字键跳至指定标签页,Shift/Space暂停,P重新播放,R显示所有快捷键,?关闭或清空。Esc - 点击任意 block,即可查看其含义并追踪相关连接。
- 页面完全离线运行:不会发起网络请求,也无需安装任何内容。
- 标签页:包括 Overview、每个 scrolls 命令对应的标签页,以及 New session(介绍新的 Agent 会话如何依次读取
-
对于超出页面展示范围的命令问题(精确 flags、边缘情况):将用户引导至,其中包含权威参考。不要描述页面和
/scrolls-help均未说明的行为。/scrolls-help
Building
构建
--buildscrolls-*--skills-dir- Tabs. One per skill. A skill whose was renamed to
SKILL.md,SKILL.md.deprecatedor.deactivated(the family's convention for switching a skill off) loses its tab and its blocks..inactive - Version. The family's lockstep version, stamped on the page.
The words on each tab are hand-written in ,
so the build records a fingerprint of each (its version line
left out) and stops with exit 4 when something needs a person. Handle
each message like this:
assets/explainer-graph.jsonSKILL.md- "SKILL.md changed since the page was last reviewed: …" — read each
named skill's (and its
SKILL.md's newest entries), and compare them with that skill's tab: its scenario'sCHANGELOG.md(each astepsandtitle) and its block'stext,kindandsubindetail. Edit only what the skill no longer does or now does differently; keep the existing tone (one or two plain sentences per step). Then runassets/explainer-graph.json. If nothing needed editing,--build --reviewedalone is right. Tell the user which tabs you changed.--build --reviewed - "no tab for /scrolls-…" — a new scrolls skill. Draft its tab from
its : a node with id = the name without
SKILL.md, edges to the files it touches (reuse the existing node ids), and a scenario with that same id, labelledscrolls-, with 2 to 10 steps. Add the node to each of the/scrolls-…/wide/mediumlayouts in a free cell. Show the user what you added, then runnarrow.--build --reviewed - "versions differ (lockstep)" or "…: not found" — don't fix these in the explainer. Report them: the family's versions must be bumped together, and a missing skill must be installed (a tab drops only when the skill is deactivated as above).
After a successful , report what it printed: the skills it read,
any tab it dropped, and whether the page changed () or already
matched ().
--buildwrote …unchanged …--buildscrolls-*--skills-dir- 标签页。 每个 skill 对应一个标签页。如果某个 skill 的 已被重命名为
SKILL.md、SKILL.md.deprecated或.deactivated(这是该系列停用 skill 的约定),其标签页和相关 block 会被移除。.inactive - 版本。 使用整个系列保持同步的版本号,并将其标记在页面上。
每个标签页上的文案均手写于 。构建过程会记录每个 的 fingerprint(不包括版本行),当有内容需要人工处理时,以退出码 4 停止。请按以下方式处理每条消息:
assets/explainer-graph.jsonSKILL.md- ——读取每个相关 skill 的
SKILL.md changed since the page was last reviewed: …(以及其SKILL.md中最新的条目),并将其与该 skill 的标签页进行比较:检查 scenario 的CHANGELOG.md(每项包含steps和title)以及 block 的text、kind和sub,这些内容位于detail中。仅修改 skill 已不再执行或现在行为有所变化的部分;保持现有语气(每个步骤使用一到两句平实的话)。然后运行assets/explainer-graph.json。如果无需修改,直接运行--build --reviewed即可。告知用户修改了哪些标签页。--build --reviewed - ——这是一个新的 scrolls skill。根据其
no tab for /scrolls-…起草标签页:创建一个 node,其 id 为移除SKILL.md前缀后的名称;添加指向该 skill 所操作文件的 edges(复用现有 node ids);再创建一个使用相同 id、标记为scrolls-的 scenario,其中包含 2 到 10 个步骤。在/scrolls-…/wide/mediumlayouts 的空闲单元格中分别添加该 node。向用户展示新增内容,然后运行narrow。--build --reviewed - 或
versions differ (lockstep)——不要在讲解器中修复这些问题。直接报告:该系列的版本必须同步升级,而缺失的 skill 必须先安装(只有 skill 按上述方式停用时,标签页才会被移除)。…: not found
--buildwrote …unchanged …Examples
示例
Worked examples of are in . Read
that file only when you need it, for example to check what the script
prints when a file is already there or a build needs a review.
/scrolls-explainerassets/EXAMPLES.md/scrolls-explainerassets/EXAMPLES.mdDevelopment
开发
See for how the page is put together (the
network-flow renderer, ) and how to run the
suite. Neither is read as part of carrying out a
request — don't act on or while
answering one.
meta/MAINTAINERS.mdscripts/page_enhance.pytests//scrolls-explainermeta/tests/有关页面的构成方式(network-flow renderer、)以及如何运行 测试套件,请参阅 。处理 请求时不会读取这些文件——回答请求时不要对 或 执行任何操作。
scripts/page_enhance.pytests/meta/MAINTAINERS.md/scrolls-explainermeta/tests/