librarian-clean-cache

Remove contents of the librarian cache directory after user confirmation.

63|8|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/JoranHonig/grimoire --skill librarian-clean-cache
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: librarian-clean-cache
Source: https://github.com/JoranHonig/grimoire/tree/main/skills/librarian-clean-cache
Command: npx skills add https://github.com/JoranHonig/grimoire --skill librarian-clean-cache

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The librarian cache can grow and waste disk space. This skill clears only the transient cache at ~/.grimoire/librarian/cache/ to reclaim space without touching the curated library/ directory.

Core Features & Use Cases

  • Safe, scoped cleanup that removes only the cache directory while preserving library data and libraries.yaml.
  • Provides a transparent workflow: inspect cache contents, confirm what will be deleted, perform removal, and report space freed.
  • Useful when disk usage is high or during maintenance windows to keep librarian searches fast.

Quick Start

Run this skill to prune the cache at ~/.grimoire/librarian/cache/ and reclaim disk space without touching the library.

Frequently Asked Questions about librarian-clean-cache

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reclaim disk space from the librarian cache without deleting my library data?

To reclaim disk space from the librarian cache, you target the directory at ~/.grimoire/librarian/cache/ for removal. This safe workflow preserves your curated library/ directory and libraries.yaml file while deleting only transient cache contents.

What is the safest way to clear the Grimoire librarian cache during a maintenance window?

The safest way to clear the Grimoire librarian cache involves a transparent workflow: inspect the cache contents, confirm what will be deleted, perform the removal, and report the space freed without touching library data.

Does clearing the librarian cache delete my curated libraries.yaml file?

No, clearing the librarian cache does not delete your libraries.yaml file. The cleanup process is strictly scoped to remove only the transient cache at ~/.grimoire/librarian/cache/, leaving the library/ directory completely untouched.

Why does the librarian cache consume so much disk space over time?

The librarian cache consumes disk space because transient cache contents grow large during regular usage. Removing only this temporary cache data reclaims disk resources while keeping your curated library data safe and searches fast.

Can I inspect the librarian cache contents before confirming the deletion?

Yes, you can inspect the librarian cache contents before deletion. The workflow enforces user confirmation by requiring you to review the cache directory at ~/.grimoire/librarian/cache/ before any removal occurs, ensuring safe execution.

What happens to my librarian searches after I prune the disk cache?

After you prune the disk cache, your librarian searches remain fast. The cleanup removes only the transient cache contents to reclaim space, while preserving the library data needed to maintain search performance.