/grimoire:librarian-clean-cachefrom grimoire
Clears the librarian's local repository cache at ~/.grimoire/librarian/cache/ to reclaim disk space without affecting the curated library/ directory.
Ships in grimoire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Clear the librarian's local repository cache at ~/.grimoire/librarian/cache/.
The librarian clones external repositories on demand into ~/.grimoire/librarian/cache/
to enable efficient local code search. Over time this cache accumulates disk space. This
skill provides a safe, confirmed cleanup: it shows exactly what will be removed before
acting, so the researcher can make an informed decision.
Only the transient cache/ directory is touched. The library/ directory — which holds
curated knowledge bases indexed by libraries.yaml — is never removed by this skill.
When this skill is activated, create a todo list from the following steps. Mark each task in_progress before starting it and completed when done.
- [ ] 1. Inspect the cache — list repos and total size
- [ ] 2. Confirm with the user — show what will be removed
- [ ] 3. Remove the cache — rm -rf cache/ only
- [ ] 4. Report freed space — confirm removal and state freed bytes
Check whether ~/.grimoire/librarian/cache/ exists and contains anything:
[ -d ~/.grimoire/librarian/cache ] && ls -1 ~/.grimoire/librarian/cache/
du -sh ~/.grimoire/librarian/cache/*/ # per-repo sizes
du -sh ~/.grimoire/librarian/cache/ # total
Present the findings:
library/ is not affectedThen ask for confirmation before proceeding. Example:
Found 3 cached repositories (420 MB total):
smart-contract-vulnerabilities(12 MB)openzeppelin-contracts(180 MB)uniswap-v3-core(228 MB)Remove these? The
library/directory will not be touched. [y/N]
If the user declines, stop without making any changes.
Run:
rm -rf ~/.grimoire/librarian/cache/
Do not run rm -rf ~/.grimoire/librarian/ — that would remove the library/ directory
and libraries.yaml as well.
If rm exits with an error (e.g. permission denied), report the error and ask the user to
investigate manually. Do not retry.
Confirm that the directory has been removed and state how much disk space was freed. Note that the librarian will automatically re-clone repositories as needed for future queries.
cache/ is affected. Never remove ~/.grimoire/librarian/library/ or
~/.grimoire/librarian/library/libraries.yaml — those are maintained by the researcher.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/annotationThis skill should be used when the user says "find annotations", "list audit tags", "show @audit comments", "compile annotations", "/annotation", "find todos", "find audit comments", "what did I annotate", "annotation summary", "list audit findings", "what's annotated", or wants to discover, list, or filter @audit-* comment annotations scattered throughout a codebase. This skill is for annotation discovery only — how annotations are used downstream (spawning subagents, cross-referencing findings, etc.) is out of scope./cartographyThis skill should be used when the user says "build context on a flow", "trace a flow", "map how X works", "cartography", "/cartography", "document a flow", "create a flow map", "trace how authentication works", "map the data flow", or wants to explore and document how a specific code flow works so that context can be quickly rebuilt on future visits. This is the primary skill for creating cartography files in grimoire/cartography/./checksThis skill should be used when the user says "create a check", "write a check", "add a check", "apply checks", "run checks", "/checks", "vulnerability pattern", "detection check", "check for common bugs", "scan with checks", or wants to create, apply, or manage simple vulnerability pattern files that agents use to find flaws. Checks are the simplest unit of agentic vulnerability detection — markdown files describing what to look for and how to assess matches. This skill is NOT for general code review or ad-hoc vulnerability analysis./delveThis skill should be used when the user says "delve", "/delve", "review the research", "what was interesting", "surface odd behavior", "what did the agents find odd", "show me the leads", or wants to see what autonomous security research turned up that deserves a human look. Delve is a report for the operator. It surfaces substantiated oddities, near-misses, unresolved mechanisms, and suspicious patterns so the operator can decide what to explore. It does not pick research directions, and it is not for agents to choose their next task./dig-modeThis skill should be used when the user says "dig mode", "/dig-mode", "dig", "let's dig into", "I'm going to ask you a series of short questions", "help me build context", "walk me through this one step at a time", or wants a question-and-answer session to quickly understand a system, a code path, or the research done so far. Dig mode is a conversational mode: short questions, short answers, low cognitive load, Simplified Technical English./divineThis skill should be used when the user says "divine", "/divine", "why", "/why", "why does this exist", "why does this work this way", "why was this chosen", "what motivated this code", "explain the rationale", "trace this decision", "reason about intent", or wants to understand the forces that shaped a security-relevant design choice, defensive check, threshold, invariant, trust boundary, or regression. Produces a confidence-calibrated, source-backed read on rationale, tradeoffs, gaps, and follow-up hypotheses.npx claudepluginhub joranhonig/grimoire --plugin grimoireOther plugins' skills for the same job