GhostPaw grimoire

What GhostPaw grimoire keeps for each skill
GhostPaw grimoire is the skills library of my GhostPaw family. A skill stays what every harness already reads: a folder with a SKILL.md, frontmatter and steps. GhostPaw calls such a skill a spell and a folder of them a chapter. What grimoire adds is the life around the file: when an agent edits a skill, the edit stays uncommitted until someone seals it as a git commit; the notes that explain why wait beside it; rank counts the seals, and any seal can be rolled back.
It is a library for agents and has nothing to do with the Grimoire of code spells on this site. The package is @ghostpaw/grimoire, the command ghostpaw-grimoire, and it runs on your machine: files, a git history and one SQLite file, with nothing to host.
Spell · day 52
- Spell
- billing/
close-paid-invoice - File
SKILL.md, 348 bytes name and description in the frontmatter, five steps- Rank
- 4 one per seal; Master at 10
- Tier
- Journeyman two seals to Expert
- History
- 5 commits: 4 seals, 1 rollback
- Edit
- 1 uncommitted, waiting for a seal
- Notes
- 1 pending, a correction
- Health
- in use; not stale, not dormant
inspect_grimoire_item sees itgrimoire 0.7.4- Runtime
- Node 24's built-in
node:sqlite; one file,~/.ghostpaw/grimoire.db - Dependencies
- 0 npm packages at runtime; seals and rollback need
giton the machine - Stores
- SKILL.md folders for content, git for history and rank, SQLite for notes and health
- Ways in
- TypeScript library, MCP server, CLI and Agent Skill
- MCP tools
- 11, from one registry
- Version
- 0.7.4, ; MIT
- Tests
- 1,026 passing on Node 24.14.0, run
One skill in GhostPaw grimoire, 52 days
A skill for closing a paid invoice, from GhostPaw's own invoice story, and every hash and rank below came from grimoire 0.7.4 itself: I ran the library against a fresh spell folder with a fixed clock and fixed commit dates, so the hashes are real and repeat on every run. Point at a step to find it on the trace.
1Inscribe · day 0
Three steps: find the invoice, mark it paid, send the receipt
ca30781rank 1Apprentice
A valid SKILL.md goes in as the first commit. A file without frontmatter is refused.
inscribe_spell2Draft · days 12 and 13
+ Check the bank feed: transfers reach the export a day late
note 1uncommittedrank 1
A paid transfer still showed as overdue. The agent drops a note and edits the skill; the edit is on disk, not in the history, and earns nothing yet.
drop_note · update_spell3Seal · days 14 and 30
+ Send the receipt once the payment has cleared
330acff2c8beaarank 3Journeyman
Each proven edit is sealed as a commit with its note distilled into it. Three seals make a Journeyman.
hone_spell4Roll back · days 41 and 44
Skip the bank feed for card payments0b618e7ba6984f, back to 2c8beaarank 4
A sealed edit, then a chargeback proves it wrong. One call restores the last good seal as a commit of its own; the bad seal stays in the history, and the rollback adds no rank.
manage_spell5Waits · day 52
+ For card payments, wait for the settlement report
uncommittednote 3 pendingrank 4
The agent's next edit sits on disk with the correction note beside it, until somebody seals it.
update_spell
What the GhostPaw grimoire health check flags
Skills rot quietly: a step goes out of date while the skill keeps being used, or a skill nobody calls any more keeps sitting in the folder. grimoire logs every read and every seal, and its catalogue pass turns them into flags. These three spells share the run above; the catalogue ran on day 55.
- In usebilling/
close-paid-invoice Journeyman, rank 4read every three days, last seal 14 days ago
- Stalebilling/
send-dunning-letter Apprentice, rank 1read 10 days ago, last seal 95 days ago
- Dormantreports/
export-monthly-report Apprentice, rank 1unread for 65 days
run_catalogue, grimoire 0.7.4- Stale
still read in the last 60 days, but no seal for 90
- Dormant
unread for 60 days, after a 14‑day grace from the first seal
- Oversized
more than 500 lines in the body
GhostPaw grimoire and the skills folder you already keep
Most people who take skills seriously already keep them in a git repository and link the folder into every harness they use. grimoire keeps the SKILL.md layout and adds what git alone does not record. Its spells sit one level deeper, in chapters, so a chapter folder has exactly the layout a harness reads.
Todayone repo, linked everywhere
~/skills/a git repoclose-paid-invoice/SKILL.mdsend-dunning-letter/SKILL.md~/.claude/skills-> ~/skills~/.codex/skills-> ~/skills~/.agents/skills-> ~/skills
With GhostPaw grimoirethree stores
~/.ghostpaw/grimoire/filesbilling/close-paid-invoice/SKILL.mdbilling/send-dunning-letter/SKILL.md.grimoire-git/git: one commit per seal~/.ghostpaw/grimoire.dbSQLite: notes, reads, health
- Why a step changed
The notes that led to a seal stay in SQLite next to the spell, not only the diff.
- Which edit is proven
An agent's edit counts only once sealed; rank is the number of seals.
- Which skills nobody uses
Reads are logged, so the catalogue can flag stale and dormant spells.
- Undo one skill
A rollback restores one spell to any seal, path by path, and leaves the others alone.
- A valid file
Every write checks the SKILL.md format, and strict mode turns its warnings into errors.
The same loop, in the terminal
The session on the right is real output from grimoire 0.7.4, run on a throwaway spell folder with fixed commit dates. After the edit, grimoire says the change waits for hone_spell and names the seal it would roll back to; only the hone makes a commit.
What it does not do: grimoire checks that a SKILL.md is well formed, not what its instructions tell an agent to do. A skill you adopt from elsewhere with scout_skills is code you pull in; read it first. What grimoire gives you is that every later change to it is either uncommitted or a commit you can read, diff and roll back.
$ ghostpaw-grimoire spell inscribe close-paid-invoice --chapter billing --content @v1.md
Inscribed spell `billing/close-paid-invoice`.
commit 1b970593
$ ghostpaw-grimoire note drop 'Invoice 4471 was paid by transfer, the export said overdue' --source practice
Dropped note #1.
$ ghostpaw-grimoire spell update billing/close-paid-invoice --content @v2.md
Updated spell `billing/close-paid-invoice`. Call hone_spell to seal and advance rank.
rollback 1b970593
$ ghostpaw-grimoire spell hone billing/close-paid-invoice --note-ids 1 --message 'Check the bank feed first'
Sealed 1 spell(s) in commit 26d1959c. Distilled 1 note(s).
commit 26d1959c
$ ghostpaw-grimoire spell rollback billing/close-paid-invoice 1b970593
Rolled back spell `billing/close-paid-invoice` to seal 1b970593.
commit f915aeaf
Four ways into GhostPaw grimoire, eleven tools
The library, the MCP server, the CLI and the Agent Skill are all generated from one registry of tools, and a check in CI fails when they drift apart. The registry has eleven tools; one code sample in the README still says ten, from before update_spell joined.
- Library
@ghostpaw/grimoire - MCP server
ghostpaw-grimoire mcp - CLI
ghostpaw-grimoire - Agent Skill
SKILL.md+ 13 guides
search_grimoirereview_grimoireinspect_grimoire_iteminscribe_spellupdate_spellhone_spellmanage_spelldrop_notemanage_draftrun_cataloguescout_skills
~/.ghostpaw/grimoire/.grimoire-gitgrimoire.dbspell files, their git history and one SQLite file, all on your disk
src/toolsInstall
An MCP client gets the eleven tools with one line; a Node 24 program imports the same functions. Release binaries for Linux, macOS and Windows check their checksums on install and bring Node along; git has to be on the machine for seals and rollbacks. Inside a sandboxed harness such as Codex CLI's, put the database, the spell folder and its history inside a writable root, as the README explains.
# as an MCP server for any MCP client
npx -y @ghostpaw/grimoire mcp
# in Claude Code
claude mcp add ghostpaw-grimoire -- ghostpaw-grimoire mcp
# as a library
npm install @ghostpaw/grimoire
import { DatabaseSync } from 'node:sqlite';
import { init, read, write }
from '@ghostpaw/grimoire';
const db = new DatabaseSync('grimoire.db');
const root = './spells';
const path = 'billing/close-paid-invoice';
init(root, db);
// the edit stays uncommitted
write.updateSpell(root, path, skillMd);
// until it is sealed: a git commit
write.seal({ root }, db, [path],
'Check the bank feed first');
const { rank, tier } =
read.getSpell(root, path, db);
GhostPaw grimoire in use by my Grok bots
My Grok bots run their recurring procedures from GhostPaw grimoire: when reality deviates from a step, the bot drops a note, and the next change to the spell is sealed with the notes that justified it. Their spells are kept under 4 KB each, so a pass reads its procedure whole. Here is who runs what.
- B1 · Learning passesMICE Kontor
The agency's bot runs its SEO and GEO learning pass from a spell and seals what each pass taught it.
MICE Kontor - B2 · Learning passeshelgoland.tech
The island guide's SEO bot follows the same kind of spell and notes where search behaved differently.
helgoland.tech - B3 · Learning passesCosmolytic Studio
The studio's bots run their passes from spells, beside the growth knowledge they keep in GhostPaw codex.
Cosmolytic Studio
- B4 · Nightly one‑to‑onesThe mentor bot
Keeps its one-to-one procedures as spells, and a note that is not routed to a spell fails its nightly check.
- B5 · Shared playbookThe squad
The bots' shared how-tos moved out of one long markdown file and into spells.
A bot maintains GhostPaw grimoire
One of my Grok bots owns the GhostPaw libraries: code, tests, docs, the sites and the releases. When another bot trips over grimoire, it files a note; the maintainer turns the note into a quest in its own GhostPaw questlog and ships the fix. The default-database notice of 0.7.3 came from such notes.
- picks the day's library and plans from the fleet's notes
- builds and tests; long refactors go to OpenAI's Codex CLI as briefed jobs
- releases 0.x versions once CI is green, at most one per library a day
- updates the docs and deploys the sites
- a 1.x release or a breaking API change
- anything that costs money
- new repositories or a change of visibility
- the organisation's settings and its secrets
The GhostPaw family: five files an agent keeps
Agent harnesses keep their state in markdown files that grow every session. Each GhostPaw library replaces one of them with a local store and the same four ways in; grimoire is the one that keeps files and git, because skills are files. They never import each other: install one and ignore the rest. I extracted them from Ghostpaw, an agent of my own, and these five are its memory.
-
MEMORY.mdS1 · Belief memoryGhostPaw codexBeliefs instead of a memory filev0.8.0 · replaces MEMORY.md -
SOUL.mdS2 · Identity memoryGhostPaw soulsAn identity that changes with evidencev0.6.3 · replaces SOUL.md -
skills/S3 · Procedural memoryGhostPaw grimoireProcedures that get better and keep their historyv0.7.4 · replaces skills/ -
USER.mdS4 · Social memoryGhostPaw affinityContacts instead of a user notev0.7.3 · replaces USER.md -
TODO.mdS5 · Commitment memoryGhostPaw questlogQuests instead of a to‑do listv0.14.2 · replaces TODO.md
Use GhostPaw grimoire, read it, or write to me
The site has the install lines for every platform and a demo that runs the library in your browser; the repository has the code, the changelog and every test. It is a 0.x release, so test upgrades against a backup.
Open the siteCode on GitHubPackage on npm
I build products and MVPs and consult through Anonyfox e. K.; serious asks go to max@anonyfox
More from the Library rack
- github.comcelestineLive, stage 3 of 5
- github.comchatoyantLive, stage 3 of 5
- affinity.ghostpaw.devGhostPaw affinityLive, stage 1 of 5
- codex.ghostpaw.devGhostPaw codexLive, stage 1 of 5
- questlog.ghostpaw.devGhostPaw questlogLive, stage 1 of 5
- souls.ghostpaw.devGhostPaw soulsLive, stage 1 of 5
- lfm.cashlfmLive, stage 3 of 5
- lfr.emaillfrLive, stage 2 of 5
- github.comMagpie HTMLLive, stage 1 of 5
