/scrolls-skills:scrolls-explainerfrom scrolls-skills
Opens or copies an interactive HTML page that visually explains each scrolls command (setup, update, hide, etc.) with step-by-step animations and keyboard navigation. Useful for demos or learning the scrolls memory system.
Ships in scrolls-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill delivers one self-contained HTML page that explains the scrolls
skill family visually. The page ships ready-made in
assets/scrolls-explainer.html. There are three modes:
/scrolls-explainer, or --show (the same thing): open that page
where it is, copying nothing.-o PATH: copy that page to a file or folder the user wants it in.--build: regenerate that page from the scrolls-* skills next to
this one, so it matches them as they are now.Scope note: This skill never reads, checks or changes the user's scrolls memory (
docs/.scrolls/,SCROLLS.md,CLAUDE.md,AGENTS.md). The default (--show) writes nothing.-owrites only the page, at the path given, and never overwrites a different existing file unless the user asked (-f).--buildwrites only this skill's ownassets/scrolls-explainer.htmland, with--reviewed(or when you add a missing tab),assets/explainer-graph.json— nothing outside this skill's folder.
The script ships in two forms that behave identically: explain.sh
(bash — macOS, Linux, or Windows with Git Bash/WSL) and explain.ps1
(PowerShell 7+ — Windows, or macOS/Linux with pwsh installed). Both are
thin launchers for explain.py (stdlib-only Python 3.9+), resolving
python3 and then python. Pick the launcher by what's actually
available: try bash --version; if that succeeds, use .sh; otherwise use
.ps1 via pwsh (preferred) or, only if pwsh isn't available, the
built-in Windows PowerShell powershell.exe.
| Flag | Meaning |
|---|---|
(none), --show | The default. Copy nothing: print the path and file:// URL of the bundled assets/scrolls-explainer.html and open it in place in the default browser. If no browser can be opened (a remote or headless machine), that is only a notice, not an error. --show can't be combined with -o. |
-o, --output PATH | Copy the page here instead. A file path is used as is; an existing folder (such as .), or a path ending in /, gets scrolls-explainer.html inside it. Missing folders are created. |
-f, --force | With -o only: overwrite a different file already at that path. Without it the script refuses (exit 3) and changes nothing. An identical file is simply reported as up to date. |
--open | With -o: also open the copy in the default browser. |
--build | Regenerate assets/scrolls-explainer.html from the scrolls-* skills next to this one (see "Building" below). On its own it only rebuilds; add --show to open the result, or -o to also copy it. |
--reviewed | With --build only: the tabs of the skills whose SKILL.md changed have been checked; record their new fingerprints, then build. |
--skills-dir DIR | With --build only: where the scrolls-* skills are. Default: the folder this skill is in. |
--version | Print the page's version (scrolls-explainer X.Y.Z) and exit. |
-h, --help | Print usage and exit. |
Exit codes: 0 done (or already up to date), 1 the bundled page is
missing or a file can't be written, 2 usage error, 3 a different file
is in the way (no -f), 4 --build stopped because the skills need
attention, 5 --build can't find the network-flow skill.
Pick the mode from the request.
/scrolls-explainer, --show, 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.--build (then follow "Building" below).docs/,
give me a copy, -o …): copy it with -o.For a copy, choose the path.
-o.-o . writes
./scrolls-explainer.html 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.-f only when the user asked to replace an existing page, or the
script already refused and the user then confirmed.--open when the user also wants the copy opened and the machine
has a display.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 prints scrolls-explainer <version>: <bundled page's path> and
open: file://…. A copy prints scrolls-explainer <version>: wrote <absolute path> (or … is already up to date) and then open: file://….
On exit 3 (a different file is already there): tell the user, and
offer -f or another -o path. Don't retry with -f on 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".
Deliver. Give the absolute path and the file:// URL. If the host
can show or send files (a file card, a preview pane), use that too —
for --show, that's the bundled file itself. Then describe how to use
the page in a few lines:
AGENTS.md/CLAUDE.md
→ SCROLLS.md → STARTER.md).→/← step, Home/End first/last step, [ ] or
Shift+arrows switch tabs, digits jump to a tab, Space/P pause,
R replay, ? shows every shortcut, Esc closes or clears.Questions about a command that go beyond what the page shows
(exact flags, edge cases): point the user at /scrolls-help, which
holds the canonical reference. Don't describe behavior the page and
/scrolls-help don't state.
--build reads the scrolls-* skills next to this one (or in
--skills-dir) and regenerates the page from them. It decides these
things from the skills on its own:
SKILL.md was renamed to
SKILL.md.deprecated, .deactivated or .inactive (the family's
convention for switching a skill off) loses its tab and its blocks.The words on each tab are hand-written in assets/explainer-graph.json,
so the build records a fingerprint of each SKILL.md (its version line
left out) and stops with exit 4 when something needs a person. Handle
each message like this:
SKILL.md (and its CHANGELOG.md's newest entries), and
compare them with that skill's tab: its scenario's steps (each a
title and text) and its block's kind, sub and detail in
assets/explainer-graph.json. Edit only what the skill no longer does
or now does differently; keep the existing tone (one or two plain
sentences per step). Then run --build --reviewed. If nothing needed
editing, --build --reviewed alone is right. Tell the user which tabs
you changed.SKILL.md: a node with id = the name without scrolls-, edges to
the files it touches (reuse the existing node ids), and a scenario with
that same id, labelled /scrolls-…, with 2 to 10 steps. Add the node to
each of the wide/medium/narrow layouts in a free cell. Show the
user what you added, then run --build --reviewed.After a successful --build, report what it printed: the skills it read,
any tab it dropped, and whether the page changed (wrote …) or already
matched (unchanged …).
Worked examples of /scrolls-explainer are in assets/EXAMPLES.md. 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.
See meta/MAINTAINERS.md for how the page is put together (the
network-flow renderer, scripts/page_enhance.py) and how to run the
tests/ suite. Neither is read as part of carrying out a
/scrolls-explainer request — don't act on meta/ or tests/ while
answering one.
CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/EXAMPLES.md (opens in a new tab)assets/explainer-graph.json (opens in a new tab)assets/scrolls-explainer.html (opens in a new tab)meta/MAINTAINERS.md (opens in a new tab)scripts/build_page.py (opens in a new tab)scripts/explain.ps1 (opens in a new tab)scripts/explain.py (opens in a new tab)scripts/explain.sh (opens in a new tab)scripts/page_enhance.py (opens in a new tab)tests/browser/check_page.cjs (opens in a new tab)tests/test_explain.ps1 (opens in a new tab)tests/test_explain.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (sugatoray/aiskills) — no native marketplace selected
npx claudepluginhub p/sugatoray-scrolls-skills-skills-scrolls9 skills in this plugin
/scrolls-compactCompacts the history in a docs/.scrolls/ (or docs/scrolls/) project-memory system at a point in time, and saves a git checkpoint of everything it condenses. Condenses the parts of SPEC.md, PLAN.md, HANDOFF.md, GAP_ANALYSIS.md and GAP_CONTEXT.md that git blame shows are older than a compaction base — by default the newer of 7 days ago and the 20th-latest first-parent commit on main/master — while open tickets, open gaps and HANDOFF's open threads always stay word for word. Records ONE commit whose message names the checkpoint (the commit just before the compaction), writes compacted/scrolls_compact_<yyyymmdd>_<githash>.md with one marker section per compacted file, adds a row to COMPACT.md's Compaction History table, lists COMPACT.md in STARTER.md, and tags the checkpoint. --list, --show and --extract read old history back out of git. Use this only when the user runs /scrolls-compact, or explicitly asks to compact, condense, prune or checkpoint the scrolls / project memory history. Supports --before=YYYYMMDD, --base=COMMIT, --keep-days=N, --keep-commits=N, --trunk, --include/--exclude, -p/--path, -t/--reporoot, -l/--local, -r/--recurse, -n/--dry-run, -y/--yes, --no-commit and --no-tag. Refuses to run when the scrolls folder has uncommitted changes, since the checkpoint would not contain them. Works on macOS, Linux, and Windows (bash or PowerShell)./scrolls-helpShows a crisp, example-driven reference for the whole scrolls skill family (/scrolls-setup, /scrolls-update, /scrolls-hide, /scrolls-unhide, /scrolls-remove, /scrolls-restore, /scrolls-compact, and the /scrolls-explainer page) — what each command does, their shared -p/-t/-l/-r/-u/-x/--onto/--before/--base flags, and common usage examples (new project, monorepo, running from a subdirectory, toggling hidden/visible, removing and restoring scrolls, compacting old history). Use this whenever the user runs /scrolls-help, or asks what the scrolls commands do, how to use them, what flags they take, which one they need, or seems unsure about docs/.scrolls setup — even if they only name one of the seven commands rather than 'scrolls' generally. Supports -e/--online to render it as a styled page served on an OS-assigned localhost port instead of chat text, with light/dark and colorize/plain toggles. Works on macOS, Linux, and Windows (bash or PowerShell)./scrolls-hideConverts an already-set-up docs/scrolls/ working-memory folder from visible (scrolls) to dotfile-hidden (.scrolls), renaming the folder and rewriting the path references inside it and in SCROLLS.md so nothing breaks. Use this whenever the user runs /scrolls-hide, or asks to hide, dot, or re-hide the scrolls folder, go back to hiding project memory / docs/.scrolls, or rename scrolls to .scrolls. This is the retrofit path for a project that was set up visible and now wants it hidden — for a brand-new project, /scrolls-setup's default (no -u/--unhide flag) already creates it hidden and this skill isn't needed. By default checks one exact location (docs/scrolls under the current directory); supports -r/--recurse to sweep an entire directory tree instead (e.g. every package in a monorepo in one run), repeatable -p/--path to target specific locations, -t/--reporoot to target the git repository's top level regardless of which subdirectory you're in, -l/--local to target the current directory explicitly, and the DEFAULT_SCROLLS_RELPATH environment variable to change the default location. Works on macOS, Linux, and Windows (bash or PowerShell). The opposite of /scrolls-unhide./scrolls-removeRemoves a docs/.scrolls/ (or docs/scrolls/) project-memory system from a git repository — the exact opposite of /scrolls-setup. Deletes the scrolls folder, deletes SCROLLS.md, strips the scrolls pointer stub out of CLAUDE.md (and the dangling pointer out of AGENTS.md), deleting either file outright only when nothing else is left in it, and records the whole removal as ONE git commit whose message names the commit just before the removal, so it can always be undone. Use this whenever the user runs /scrolls-remove, or asks to remove, delete, uninstall, tear down, or get rid of the scrolls / project memory / docs/.scrolls. Supports -p/--path (repeatable), -t/--reporoot, -l/--local, -r/--recurse to find and remove every scrolls folder under a directory in one commit, -x/--purge [CLAUDE.md|AGENTS.md|SCROLLS.md|<other file>|all] to delete pointer files outright even when they hold other content, -n/--dry-run, -y/--yes to skip the confirmation, and --no-commit. Refuses to run when anything it would remove has uncommitted changes, since those could not be restored. Works on macOS, Linux, and Windows (bash or PowerShell)./scrolls-restoreRestores a docs/.scrolls/ (or docs/scrolls/) project-memory system from git history — the counterpart to /scrolls-remove. By default finds the newest /scrolls-remove checkpoint in HEAD's history and brings back exactly what it removed; or takes any COMMIT (a removal commit, or an ordinary commit containing a scrolls folder). Restores ONLY the agentic memory — the scrolls folders plus the SCROLLS.md/CLAUDE.md/AGENTS.md pointer stubs, re-inserted into those files as they are today — never rolling back anything else in the repository, and records it as one git commit. --onto REF mounts the memory onto another branch (or, with -b, a new branch at any commit) through a temporary worktree, without touching the current checkout. Use this whenever the user runs /scrolls-restore, or asks to restore, bring back, recover, undo the removal of, or re-mount the scrolls / project memory / docs/.scrolls. Supports -p/--path (repeatable), -t/--reporoot, -l/--local, -r/--recurse, --onto, -b/--branch, --full, -f/--force, --list [--all], -n/--dry-run, -y/--yes, and --no-commit. Works on macOS, Linux, and Windows (bash or PowerShell)./scrolls-setupSets up a minimal docs/.scrolls/ working-memory system for a project — a small set of cross-session memory files (STARTER.md, SPEC.md, HANDOFF.md, GAP_ANALYSIS.md, GAP_CONTEXT.md, PLAN.md, WISDOM.md) plus a SCROLLS.md file that points future sessions at STARTER.md, a short CLAUDE.md pointer to SCROLLS.md, and a matching AGENTS.md pointer to CLAUDE.md for other agent harnesses. Use this whenever the user runs /scrolls-setup, or asks to set up 'scrolls', a project-memory system, session handoff notes, a docs/.scrolls folder, or a CLAUDE.md/AGENTS.md/SCROLLS.md that points new sessions at persistent project docs. Trigger even if the project has no docs/ folder, no CLAUDE.md, no AGENTS.md, or no SCROLLS.md yet — creating them is part of the job. Supports -p/--path for a custom docs location, -t/--reporoot to pin everything to the git repository's top level regardless of which subdirectory you're in, -l/--local to pin it explicitly to the current directory, -r/--recurse to scan recursively for an existing scrolls folder before creating a new one (avoiding accidental duplicates), and -u/--unhide to name the folder scrolls instead of .scrolls. Defaults to the current directory, but warns first if that differs from the repo root so a subdirectory invocation doesn't silently create a second, disconnected scrolls system. Works on macOS, Linux, and Windows (bash or PowerShell).