Agent skill

Grimoire

by cwinvestments in cwinvestments/memstack

A skill your agent uses when the user says 'update context', 'update claude', 'save library', or after significant project changes.

MITAuto-check passedAgent Workflows

Install Grimoire

skills CLI
$ npx skills add cwinvestments/memstack --skill grimoire -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cwinvestments/memstack grimoire --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cwinvestments/memstack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/grimoire .claude/skills/grimoire && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
grimoire
GitHub stars
423
Token cost
~504 tokens
SKILL.md length
190 words
Files
1
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user says 'update context', 'update claude', 'save library', or after significant project changes.

  • Works in 5 steps: Identify the target project: use… → Read the current CLAUDE.md if it exists → Determine what to update based on the… → …
  • The user says update context
  • SKILL.md covers Activation, Protocol, Inputs and Outputs, plus 2 more sections
  • Needs CC_MONITOR_API_KEY

What it does

Grimoire is an agent skill from cwinvestments/memstack. Use when the user says 'update context', 'update claude', 'save library', or after significant project changes.

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. The repository describes itself as: Structured skill framework for Claude Code. 130 skills, persistent memory, TokenStack compression, localhost dashboard with 3-agent runner, real-time streaming, MCP tools. The licence is MIT.

When your agent uses it

  • The user says update context
  • After significant project changes

Example prompts

  • “update context”
  • “update claude”
  • “save library”
  • “/grimoire”

Requirements

  • A credential in CC_MONITOR_API_KEY

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Identify the target project: use config.json to find the CLAUDE.md path
  2. Read the current CLAUDE.md if it exists
  3. Determine what to update based on the session's work
  4. Update the CLAUDE.md
  5. If no CLAUDE.md exists: create one with standard sections

What it can do on your machine

Read from SKILL.md and the folder at commit 00370ce. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CC_MONITOR_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Grimoire loads about 504 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 190 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~504

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cwinvestments/memstack at commit 00370ce, republished under its MIT licence (© cwinvestments). 190 words, ~504 tokens.

Download SKILL.mdSave it as .claude/skills/grimoire/SKILL.md (or your agent's skills folder).
name
grimoire
description
Use when the user says 'update context', 'update claude', 'save library', or after significant project changes.
version
1.0.0

📖 Grimoire: Updating the Knowledge Library

Manage and update CLAUDE.md files across all projects.

Activation

When this skill activates, output:

📖 Grimoire: Updating the knowledge library.

Then execute the protocol below.

Protocol

  1. Identify the target project: use config.json to find the CLAUDE.md path
  2. Read the current CLAUDE.md if it exists
  3. Determine what to update based on the session's work:
    • New API endpoints built
    • New database tables/migrations
    • New pages or components added
    • Architecture decisions made
    • Environment variables added
    • Dependencies installed
  4. Update the CLAUDE.md:
    • Keep existing content intact
    • Add new entries under the right headings
    • Don't duplicate existing entries
    • Use consistent formatting
  5. If no CLAUDE.md exists: create one with standard sections:
    • Project Overview, Tech Stack, Directory Structure, Key Files
    • API Endpoints, Database Schema, Environment Variables, Dev Commands

Inputs

  • Project name (maps to config.json entry)
  • What was built/changed this session

Outputs

  • Updated CLAUDE.md file
  • Summary of what was added

Example Usage

User: "update claude.md with the CC Monitor stuff"

📖 Grimoire: Updating the knowledge library.

Reading: C:\Projects\AdminStack\CLAUDE.md

Adding to API Endpoints:
  - POST/GET/PATCH/DELETE /api/cc-sessions
  - POST /api/cc-sessions/report

Adding to Database Schema:
  - cc_sessions (020_cc_sessions.sql)

Adding to Environment Variables:
  - CC_MONITOR_API_KEY

CLAUDE.md updated ✓

Level History

  • Lv.1: Base: CLAUDE.md read/write with section management. (Origin: MemStack v1.0, Feb 2026)
  • Lv.2: Enhanced: Added YAML frontmatter, activation message, auto-detect what changed. (Origin: MemStack v2.0 MemoryCore merge, Feb 2026)

© cwinvestments, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/grimoire of cwinvestments/memstack.

Open the folder on GitHubat commit 00370ce

Compare with similar skills

Grimoire next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Grimoire compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Grimoire this skillcwinvestments/memstack423—~504Automated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers297k2 repos~5.1kAutomated safety check: PassMIT
Skill CreatorAzure/azqr79689 repos~8.2kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    297k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    796 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed

More from cwinvestments/memstack

All 87 skills in this repo
  • Memstack SEO Site Audit

    cwinvestments/memstack

    A skill your agent uses when the user says 'SEO audit', 'site audit', 'check SEO', 'audit my site', 'SEO check', 'technical SEO', or is evaluating a website's search engine optimization health, meta…

    423 GitHub stars~3.5k tokensUpdated 13 days ago
    Auto-check passed
  • Memstack SEO Schema Markup

    cwinvestments/memstack

    A skill your agent uses when the user says 'add schema', 'schema markup', 'JSON-LD', 'structured data', 'rich results', 'rich snippets', or is adding or fixing schema.org structured data for better…

    423 GitHub stars~2.7k tokensUpdated 13 days ago
    Auto-check passed
  • Compress

    cwinvestments/memstack

    A skill your agent uses when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage.

    423 GitHub stars~1.2k tokensUpdated 13 days ago
    Auto-check passed
  • Diary

    cwinvestments/memstack

    A skill your agent uses when the user says 'save diary', 'log session', 'wrapping up', or at end of a productive session.

    423 GitHub stars~5k tokensUpdated 13 days ago
    Auto-check passed
  • Echo

    cwinvestments/memstack

    A skill your agent uses when the user references past sessions, asks 'what did we do', 'do you remember', 'last session', 'recall', or 'continue from'.

    423 GitHub stars~1.7k tokensUpdated 13 days ago
    Auto-check passed
  • Familiar

    cwinvestments/memstack

    A skill your agent uses when the user says 'dispatch', 'send familiar', 'split task', or needs work split across parallel CC sessions.

    423 GitHub stars~556 tokensUpdated 13 days ago
    Auto-check passed

Categories

Questions about Grimoire

What does Grimoire do?

A skill your agent uses when the user says 'update context', 'update claude', 'save library', or after significant project changes. Grimoire is an agent skill from cwinvestments/memstack. Use when the user says 'update context', 'update claude', 'save library', or after significant project changes.

When should I use Grimoire?

Grimoire fits situations like: the user says update context; after significant project changes.

How do I install Grimoire in Claude Code?

Run `npx skills add cwinvestments/memstack --skill grimoire -a claude-code`. Or copy the skill folder (skills/grimoire in cwinvestments/memstack) into .claude/skills/grimoire in your project. Claude Code loads it when a task matches its description.

How do I install Grimoire in Codex?

Run `npx skills add cwinvestments/memstack --skill grimoire -a codex`. Or copy the skill folder (skills/grimoire in cwinvestments/memstack) into .agents/skills/grimoire in your project. Codex loads it when a task matches its description.

Can I use Grimoire in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cwinvestments/memstack --skill grimoire -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/grimoire, .gemini/skills/grimoire, .github/skills/grimoire and .opencode/skills/grimoire in your project.

What does Grimoire need to run?

Going by SKILL.md and its folder, Grimoire needs credentials named CC_MONITOR_API_KEY. Our summary lists: A credential in CC_MONITOR_API_KEY.

Does Grimoire access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Grimoire safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Grimoire use?

Grimoire is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Grimoire use?

About 504 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Grimoire?

Skills that share tags, products or a category with Grimoire: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 297k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Grimoire?

cwinvestments (a GitHub user) maintains it in cwinvestments/memstack, which has 423 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 26, 2026.

Source: cwinvestments/memstack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.