/scrolls-skills:scrolls-removefrom scrolls-skills
Removes a docs/.scrolls/ project-memory system from a git repository, undoing /scrolls-setup. Deletes the scrolls folder, SCROLLS.md, and pointer stubs from CLAUDE.md/AGENTS.md, recording removal as one reversible commit.
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 undoes /scrolls-setup. It removes the scrolls folder and the pointer chain (SCROLLS.md → CLAUDE.md → AGENTS.md) that setup installed. The removal goes into a single commit whose message names the commit before it, which is the restore point.
This is destructive. Never apply without showing the user the plan first, unless they passed -y/--yes.
Everything is relative to the current working directory unless -t/--reporoot says otherwise, not relative to this skill's own location.
All of the logic is in one stdlib-only Python file, scripts/remove.py. remove.sh (bash: macOS, Linux, or Windows with Git Bash/WSL) and remove.ps1 (PowerShell 7+) are thin launchers that find Python 3.9+ and pass every flag through unchanged, so the two can't behave differently. Pick by what's available: try bash --version, and if that succeeds use .sh. Otherwise use .ps1 via pwsh (preferred), or powershell.exe only if pwsh isn't installed.
Read these from the invocation text, in any order:
-p <path> / --path=<path> / --path <path>: where to look, instead of the current directory. Repeatable. The path may be a project folder (<path>/docs/.scrolls), a docs folder (<path>/.scrolls, the same form /scrolls-setup -p takes), or the scrolls folder itself.-t / --reporoot: look under the git repository's top level, whichever subdirectory you're in.-l / --local: look in the current directory explicitly. This is the default anyway.-r / --recurse: find every scrolls folder (.scrolls or scrolls, containing a STARTER.md) under the base directory and remove them all, with each one's pointer files, in one commit. The search goes 8 levels deep and skips vendor and build folders, the same way /scrolls-hide and /scrolls-unhide sweep. Without -r, only the exact spots above are checked.-x [targets] / --purge[=targets]: also delete these files outright, even when they contain content setup didn't write. targets is a comma-separated list, and the flag can be repeated:
SCROLLS.md, CLAUDE.md, AGENTS.mddocs folder, e.g. GEMINI.md. Paths are rejected.all, which is what a bare -x means: SCROLLS.md + CLAUDE.md + AGENTS.md-n / --dry-run: show the plan and stop.-y / --yes: skip the confirmation step (step 2).--no-commit: apply and stage the changes, but leave the commit to the user. The script prints the git commit -F … command to finish with.You can pass at most one of -p, -t, and -l. -r and -x combine with any of them. No -u is needed: both .scrolls and scrolls are found.
| File | Without -x | With -x naming it |
|---|---|---|
| Scrolls folder | git rm -r | (same) |
docs/ (its parent) | Removed only if nothing else is left in it | (same) |
SCROLLS.md | Deleted if it held only setup's block. If it has other content, the block is cut out. If it mentions the scrolls folder in wording setup didn't write, it's left alone and flagged needs review | Deleted |
CLAUDE.md | The ## Access Scrolls Agentic Memory / See @SCROLLS.md. stub is cut out, along with a pre-1.2.0 embedded SCROLLS.md block if there is one. The file is deleted if nothing is left | Deleted |
AGENTS.md | Kept while CLAUDE.md still exists, because See @CLAUDE.md still works. If CLAUDE.md is deleted, the pointer line is cut out (the file is deleted if that empties it) | Deleted |
Other -x names | — | Deleted |
Matching ignores trailing whitespace and extra blank lines, and accepts a heading at any level (setup demotes its heading when it inserts into an existing file). Anything else that still mentions the folder or SCROLLS.md, such as a README or a CI config, is reported but never edited.
Run the script without -y, passing the user's other flags through:
bash <skill-dir>/scripts/remove.sh [flags...]
pwsh <skill-dir>/scripts/remove.ps1 [flags...]
This only prints the plan: the repository, branch, previous-commit SHA, one line per file, any other references found, and the exact commit message. Nothing changes.
-t, or -r), and stop.-p combined with -t, or a path given to -x. Report it and stop.Show the user the plan, then ask before going further. Call out anything marked purged (content beyond setup's will be lost) or needs review. Skip this step only if the user passed -y/--yes. If they passed -n/--dry-run, stop after step 1.
Run the same command again, with -y added. The script:
git rev-parse HEAD as the previous commitgit rm and edits the files as plannedmaint(memory): scrolls-removed
- previous commit: #<full SHA of the commit before the removal>
Notes:
- removed folder: docs/.scrolls (7 tracked files)
- deleted: SCROLLS.md (held only the scrolls pointer block)
- stripped: CLAUDE.md (scrolls pointer stub removed; other content kept)
- kept: AGENTS.md (still points at CLAUDE.md, which stays)
- pruned empty folder: docs (empty once the scrolls folder is gone)
Scrolls-Action: remove
Scrolls-Previous-Commit: <full SHA>
Scrolls-Folder: docs/.scrolls
Scrolls-Deleted: SCROLLS.md
Scrolls-Stripped: CLAUDE.md
Scrolls-Kept: AGENTS.md
Scrolls-Pruned: docs
The Notes: section is for people. The final paragraph is standard git trailers, for tools: one Scrolls-<Kind>: line per path, with paths relative to the repository root. Kinds are Folder, Deleted, Stripped, Purged, Kept, Review, and Pruned. /scrolls-restore reads these with git log --format='%(trailers:unfold,only)' (finding removal commits with --grep='^Scrolls-Action:'), and uses them to put back exactly what was removed. Never hand-edit or reword this message.
If git commit fails (exit 4, usually a pre-commit or commit-msg hook), the removal stays staged. Report the hook's output and the git commit -F <git-dir>/SCROLLS_REMOVE_MSG command to finish with. Never retry with --no-verify.
This skill never pushes.
For each file listed as needs review or under "Other files that still mention…": read it, and offer to fix any reference that's actually stale. Use normal editing judgment, the same as /scrolls-hide step 2. Don't fold those edits into the removal commit. Make them a separate change, and only if the user agrees.
Give:
/scrolls-restore, which brings back just the memory into the repo as it is now, or git revert --no-edit <new-sha> straight away-p, pointer files are looked for only next to the docs folder that contains the scrolls folder. That's where setup puts them for -t, -l, and the default. A custom---path setup that put them elsewhere will have them reported as other references rather than cleaned.maint isn't a standard Conventional Commits type, so a strict commitlint hook may reject it (exit 4, above).Worked examples are in assets/EXAMPLES.md. Each example has a premise, the usage, caveats, and the expected output. Read that file only when you need it: for example, when a request does not map clearly to the flags above, or when the user asks for an example.
See meta/MAINTAINERS.md for the layout, running the tests/ regression
suite, and versioning notes. Don't read or act on meta/MAINTAINERS.md
or tests/ while carrying out a user's /scrolls-remove request.
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)meta/MAINTAINERS.md (opens in a new tab)scripts/remove.ps1 (opens in a new tab)scripts/remove.py (opens in a new tab)scripts/remove.sh (opens in a new tab)tests/test_remove.ps1 (opens in a new tab)tests/test_remove.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-explainerShows, copies or rebuilds scrolls-explainer.html: an interactive, offline page that explains how the scrolls skill family works (/scrolls-setup, /scrolls-update, /scrolls-hide, /scrolls-unhide, /scrolls-remove, /scrolls-restore, /scrolls-help) — one tab per command that animates, step by step, what the command does to docs/.scrolls/, SCROLLS.md, CLAUDE.md, AGENTS.md and git, with a callout explaining each step, a tab for how a new agent session reads the memory, and full keyboard navigation (arrows step, [ ] or digits switch tabs, Space pauses, ? lists shortcuts). Use this whenever the user runs /scrolls-explainer, or asks for a visual, diagram, animation, walkthrough, explainer or interactive page of how the scrolls commands or the scrolls memory work, or wants something to show a team. By default (same as --show) it opens the bundled page in place and copies nothing; -o/--output copies it to a file or folder (-o . for ./scrolls-explainer.html), -f/--force overwrites with -o, --open opens the copy, and --build to regenerate the bundled page from the scrolls-* skills as they are now (their tabs, lockstep version, and a review check when a SKILL.md changed). 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-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).