A marketplace of curated agent skills for Claude Code and Codex CLI.
One coherent engineering loop β grill, spec, implement, review, commit β that remembers what it learns, plus style-guard satellites.
Forked from and inspired by Matt Pocock's skills and Every's Compound Engineering.
The loop Β· The skills Β· Install Β· Plugins Β· Development
| Plugin | Gives your agent⦠| Type |
|---|---|---|
| β¨Β cantrips | The core engineering loop: /grilling β /spec β /implement (TDD at agreed seams) β /review-gate β /commit β /compound. |
Skills |
| π‘οΈΒ wards | Opinionated language-agnostic code style, enforced at the boundary: a style skill loaded before writing, and a line-length hook after edits. | Skill + hook |
| π¦Β typescript | TypeScript style: strictness, nullability discipline, readonly data, assertion-based type guards. |
Skill |
| πͺΒ csharp | C# style for modern C# under Nullable + TreatWarningsAsErrors. |
Skill |
Plugin names are plain; skill names are plain and verb-like (
/spec,/implement,/compound) β the plugin namespace disambiguates.
Basic spells a caster always has prepared.
Cantrips forks the best of mattpocock/skills and EveryInc/compound-engineering-plugin into one coherent pipeline: Pocock to steer, a Compound-Engineering-style pipeline to execute and remember.
Cantrips is not a bag of independent commands β it is one dynamic, discoverable loop:
- Every pipeline skill ends by naming the next step and whether to take it in this session or break to a fresh one, so you never memorize the pipeline β the loop tells you where you are.
- Two invocation modes. Deliberate gates (π§) only fire when you type them; reflexes (π€) fire
on their own when their triggers match β
/tddwhen you build test-first,/compoundwhen a learning surfaces,/prototypewhen a design question needs empirical evidence. - Skills brief each other. The spec records the seams
/tddwill bite at;/implementsuggests a/review-gateeffort level scaled to the diff it just produced;/review-gateflags compound-worthy findings for/commit's learnings scan. - The loop remembers.
/compoundroutes what a session learned into knowledge stores, and/spec,/review-gate, and/diagnosing-bugsread those stores back β each unit of work makes the next one easier.
Each tier only adds ceremony when the work warrants it:
flowchart TD
subgraph tiers [" Pick your tier "]
small["π©Ή <b>Small fix</b><br/>/grilling <i>(optional)</i> β implement"]
feature["ποΈ <b>Feature</b><br/>/grilling β /spec β /implement + /tdd"]
big["πΊοΈ <b>Big / multi-session</b><br/>β¦ /spec β /tickets β /implement ΓN"]
bug["π <b>Bug</b><br/>/diagnosing-bugs"]
%% Invisible edges grid the tiers 2Γ2 (a subgraph's `direction` is ignored once
%% edges attach to the container, so the grid is shaped by rank instead).
small ~~~ feature
big ~~~ bug
end
tiers ==> simplify["π§Ή /simplify <i>(optional)</i>"]
simplify ==> review["π /review-gate<br/>parallel finders β verify β report"]
review ==> commitPhase
subgraph commitPhase [" π¦ /commit "]
compound["π§ <b>/compound</b> scan<br/>capture learnings, user-gated"] --> craft["craft the commit(s)"]
end
compound -. "read back into<br/>future specs, reviews,<br/>and diagnoses" .-> tiers
classDef tierNode fill:#4f46e5,stroke:#a5b4fc,color:#ffffff
classDef gateNode fill:#0f766e,stroke:#5eead4,color:#ffffff
classDef memoryNode fill:#b45309,stroke:#fcd34d,color:#ffffff
class small,feature,big,bug tierNode
class simplify,review,craft gateNode
class compound memoryNode
style tiers fill:transparent,stroke:#a5b4fc,stroke-dasharray:4 4,color:#94a3b8
style commitPhase fill:transparent,stroke:#5eead4,stroke-dasharray:4 4,color:#94a3b8
- Small fix:
/grilling(optional) β implement directly β/review-gateβ/commit. - Feature:
/grillingβ/specβ/implementin a fresh context, driving/tddat the test seams agreed in the spec β [/simplify] β/review-gateβ/commit. - Big / multi-session: insert
/ticketsbetween spec and implement; one ticket per fresh context window. - Bugs enter through
/diagnosing-bugsinstead of grill/spec; the root cause becomes a learning at commit time. /handoffbreaks context at any tier (compaction for resuming β never a substitute for a spec).
The part that makes each unit of work easier than the last:
/compoundfires inside/commit's opening scan (or typed ad-hoc, or agent-fired when a learning surfaces mid-session), scans the session for learnings that would change a future agent's behavior β non-obvious and stable ones only β and routes each to the right store: the project'sAGENTS.md, adocs/solutions/entry, a rules file, a skill, or your user-global memory file (CLAUDE.md,AGENTS.md, or your harness's equivalent). Every write is user-gated: approve, redirect, or kill.- Read-back arrows:
/spec,/review-gate, and/diagnosing-bugssearchdocs/solutions/and past specs, so captured knowledge actually gets used. /compound-refreshgarbage-collects the stores when they age: auditsdocs/solutions/against the current code andAGENTS.mdfor bloat and contradictions.
Each skill name links to its section below; each skill's SKILL.md under
plugins/cantrips/skills/ is the authoritative source. π§ you type it;
π€ the agent loads it on its own when its triggers match (agent-invokable skills show both β you
can still type them).
The loop:
| Skill | Invoked by | Role |
|---|---|---|
/grilling |
π§π€ | Relentless one-question-at-a-time interview to stress-test the plan. |
/spec |
π§ | Turn the conversation into docs/specs/<feature>.md, test seams included. |
/tickets |
π§ | Slice a big spec into tracer-bullet tickets, one per fresh context. |
/implement |
π§ | Execute the spec or one ticket, driving tdd at the agreed seams. |
/tdd |
π§π€ | Red-green-refactor discipline, with its anti-patterns catalogue. |
/simplify |
π§ | Optional behavior-preserving quality pass before review. |
/review-gate |
π§ | The gate: effort-scaled finder angles, every finding independently verified. |
/commit |
π§ | Scan the session for learnings, then craft the commit(s). |
/compound |
π§π€ | Route each learning to the right store β every write user-gated. |
/diagnosing-bugs |
π§π€ | The bug entry point: diagnosis loop replacing grill/spec. |
The utilities:
| Skill | Invoked by | Role |
|---|---|---|
/compound-refresh |
π§ | Garbage-collect docs/solutions/ and AGENTS.md when they age. |
/handoff |
π§ | Compact the session into a handoff for a fresh context. |
/prototype |
π§π€ | Throwaway prototype to answer a design question empirically. |
/research |
π§π€ | Background primary-source research, captured in the repo. |
/resolving-merge-conflicts |
π§π€ | Principled merge/rebase conflict resolution. |
/codebase-design |
π§π€ | Deep-module vocabulary other skills lean on. |
/improve-codebase-architecture |
π§ | Scan for module-deepening opportunities. |
/general-guidelines |
π§π€ | Anti-overengineering behavioral guardrails. |
/teach |
π§ | Learn a concept from this workspace, tutor-style. |
/writing-great-skills |
π§π€ | The authoring standard, loaded before editing skills, AGENTS.md, or rules. |
A relentless, one-question-at-a-time interview that stress-tests a plan before any code exists.
- When to use β before
/specon anything non-trivial, or whenever a decision deserves pressure. Fires on its own when you ask to be grilled or requirements are fuzzy. - The intent β agents default to agreeable: they fill gaps with silent assumptions and build the wrong thing confidently. Grilling inverts the posture. Facts are looked up in the environment; decisions are yours, put to you one at a time.
- How it works β questions are numbered across the interview (Q1, Q2, β¦); when candidates can
be enumerated they come as lettered options with the recommendation first. A decision that needs
empirical evidence routes to
/prototype; one that hinges on external facts routes to/research. The interview closes only when every branch of the decision tree is resolved. - Next β
/specfor feature-sized outcomes (same session β it synthesizes the interview),/implementdirectly for small fixes.
Synthesize the conversation into docs/specs/<feature>.md β the contract /implement executes
and /review-gate reviews against.
- When to use β feature-sized work, once the decisions exist (usually right after
/grilling). - The intent β decisions decay in chat logs; a spec survives the session. It records the test seams you approve up front, so implementation can TDD without relitigating design, and its requirements are what the review gate's spec angle later checks the diff against.
- How it works β explores the repo, folds in matching
docs/solutions/learnings and past specs, proposes the seams (approved by you before writing), then writes the spec: problem, solution, user stories, implementation decisions, test seams, out of scope. - Next β
/ticketswhen the work spans sessions, else/implementβ a fresh context either way; the spec is the context.
Slice a big spec into tracer-bullet tickets, one per fresh context window.
- When to use β the spec is too big for one session.
- The intent β context windows are the real budget. Each ticket is a vertical slice (schema to UI to tests) that lands demoable and green on its own; blocking edges between tickets expose which ones can start immediately. Wide mechanical refactors get expandβcontract sequencing instead of a forced vertical cut.
- How it works β drafts the slices, quizzes you on granularity and edges until you approve,
then writes
docs/specs/<feature>/NN-<slug>.mdfiles with acceptance criteria. - Next β
/implement, one ticket per fresh context, working the frontier of unblocked tickets.
Execute the spec or one ticket, driving /tdd at the agreed seams.
- When to use β a fresh session holding a spec or ticket.
- The intent β deciding and building are separated on purpose: the spec already carries the decisions and the approved seams, so implementation tests at them without re-asking, and states explicit verification criteria wherever no seam was agreed.
- How it works β reads the spec or ticket in full, drives
/tddat the agreed seams, typechecks and runs scoped tests continuously, ticks acceptance criteria as each is verified, and finishes with the full suite. - Next β
/simplify(optional), then/review-gatewith a suggested effort level scaled to the diff it just produced, then/commitβ all in-session; the working diff is the context.
The red β green loop, plus the reference that makes it produce tests worth keeping.
- When to use β building features or fixing bugs test-first. Fires on its own when you mention red-green-refactor or test-first work.
- The intent β agent-written test suites rot in three named ways the skill blocks: implementation-coupled tests that break on refactor, tautological assertions that recompute the expected value the way the code does, and horizontal slicing (all tests first, then all code) that verifies imagined behavior. Tests live only at seams you agreed β via the spec, or confirmed before the first test β so effort lands on critical paths.
flowchart LR
seam["agree the seam"] --> red["π΄ failing test"]
red --> green["π’ minimal code to pass"]
green -- "next slice" --> red
green --> tail["refactoring waits for<br/>π§Ή /simplify<br/>π /review-gate"]
classDef redNode fill:#b91c1c,stroke:#fca5a5,color:#ffffff
classDef greenNode fill:#15803d,stroke:#86efac,color:#ffffff
class red redNode
class green greenNode
- Next β refactoring is deliberately not part of the cycle; it belongs to the review tail,
/simplifyand/review-gate.
An optional behavior-preserving quality pass between implementation and review.
- When to use β the diff works but feels heavier than the problem deserved.
- The intent β cleanup and bug-hunting are different jobs; this one only cleans. Three parallel reviewer personas (reuse, quality, efficiency) propose fixes; every fix must preserve exact behavior, and safety checks are never simplified away β code that drops one is not simpler, it is unfinished.
- How it works β resolves the scope (your words, or the branch diff), dispatches the personas, applies the worthwhile findings directly, then verifies with typecheck, lint, and tests scoped to the blast radius.
- Next β
/review-gate, in this session, with a suggested effort level scaled to the diff.
The gate between implementation and commit: effort-scaled, multi-angle review of the working diff (or the changes since a fixed point), every finding independently verified.
- When to use β after implementation and the optional
/simplify, before/commit. Pick the effort level β upstream skills suggest one scaled to the diff:lowfor a trivial or mechanical diff,highfor a large, cross-cutting, or risky one,mediumotherwise. - The intent β a single reviewer reading a diff top to bottom misses bugs for two reasons:
attention dilutes across concerns, and the finder of a candidate bug is a poor judge of it. The
gate fixes both. Finders each hold exactly one concern; verifiers judge every candidate
independently, so a finder never silently drops a bug it half-believes. A dedicated spec
angle compares the diff against the spec's requirements β catching "built the wrong thing
correctly", which no code-only review can β and matched
docs/solutions/learnings are re-checked by every finder, so past root causes stay caught.
flowchart TD
scope["π <b>Scope</b><br/>target diff Β· spec Β· standards Β· docs/solutions/ learnings"]
scope ==> corr["π Correctness finders β one per angle<br/>A line-by-line Β· B removed behavior Β· C cross-file<br/>D spec conformance Β· E language pitfalls* Β· F wrappers*"]
scope ==> qual["π§Ή Quality finders<br/>reuse Β· simplification Β· efficiency<br/>design (Fowler smells) Β· conventions"]
corr ==> verify["βοΈ <b>Verify</b> β one independent verifier per location<br/>CONFIRMED / PLAUSIBLE / REFUTED, with evidence"]
qual ==> verify
verify -- "high only" --> sweep["π΅οΈ Sweep β a fresh finder<br/>hunting only gaps"]
sweep -- "re-verified" --> verify
verify ==> report["π Ranked report, capped per level<br/>correctness before quality Β· confirmed before plausible"]
classDef gateNode fill:#0f766e,stroke:#5eead4,color:#ffffff
class scope,verify,report gateNode
* high effort only.
- How it works β three effort levels:
lowis one inline diff pass (β€4 findings);mediumdispatches 4 correctness + 2 quality finders reviewing for precision (β€8);highdispatches 6 correctness + 5 quality finders reviewing for recall, then a gap-hunting sweep (β€15). Finders run as parallel sub-agents, each briefed on a single angle or lens; every candidate must name a concrete failure scenario. Verifiers judge per location and refuted or unverified candidates never reach the report. Findings flow through the harness's typed findings tool where one exists;--fixapplies the surviving findings on the spot. On a harness without sub-agents (Codex CLI), the same angles run inline as a single-pass review that says so. - Next β fix what's worth fixing, re-run after substantial fixes, then
/commit. Findings that exposed a durable gotcha are flagged as/compoundmaterial for commit's opening scan.
Close the loop: harvest the session's learnings, then craft the commit(s).
- When to use β the gate has passed and the tree holds the finished work.
- The intent β the learnings scan comes first so
/compound's approved writes join the working tree and ride into the same commit ceremony, instead of dirtying the tree right after you committed. Messages communicate value ("why"), follow the repo's observed convention, and distinct concerns split into at most two or three file-level commits. - How it works β scans the session for compound candidates and invokes
/compoundwhen any might clear its bar; then gathers git context, picks the branch per the repo's workflow, matches the message convention, and stages files by name, group by group. - Next β the loop is closed; the next unit of work deserves a fresh session.
The loop's memory: capture durable learnings and route each to the right knowledge store, every write user-gated.
- When to use β
/commit's opening scan invokes it with candidates;/diagnosing-bugscloses out through it; it also fires ad-hoc when you ask to capture or remember something. - The intent β automatic memory fails by hoarding trivia. Every candidate faces a two-part quality bar β would it change a future agent's behavior in a different session, and is it non-obvious and stable? β and session-specific noise dies there. Survivors go to the cheapest store that serves them, and nothing is ever written without your approval.
flowchart TD
scan["session scan"] --> bar{{"quality bar<br/>changes a future agent's behavior?<br/>non-obvious and stable?"}}
bar -- no --> dies["dies here"]
bar -- yes --> gate["πͺ user gate<br/>approve / redirect / kill"]
gate --> agentsmd["AGENTS.md<br/>shared conventions"]
gate --> solutions["docs/solutions/<br/>problem-shaped learnings"]
gate --> rules["rules files<br/>path-scoped conventions"]
gate --> skills["skills<br/>procedures"]
gate --> global["user-global memory<br/>personal preferences"]
classDef memoryNode fill:#b45309,stroke:#fcd34d,color:#ffffff
class agentsmd,solutions,rules,skills,global memoryNode
- Next β the writes join the working tree;
/commit's flow picks them up.
The bug entry point: a feedback-loop-first diagnosis discipline that replaces grill/spec.
- When to use β something is broken, throwing, failing, or slow. Fires on its own on "diagnose" or "debug this".
- The intent β in the skill's own words, the feedback loop is the skill; everything else is mechanical. A tight, red-capable, deterministic repro command is built before any theory is entertained β jumping straight to a hypothesis is the exact failure the skill prevents β and hypotheses are generated 3β5 at a time, each falsifiable, because single-hypothesis debugging anchors on the first plausible idea.
flowchart TD
p0["0 Β· search docs/solutions/ for the symptom"] --> p1["1 Β· build a tight feedback loop<br/><b>this is the skill</b>"]
p1 --> p2["2 Β· reproduce, then minimise the repro"]
p2 --> p3["3 Β· rank 3β5 falsifiable hypotheses"]
p3 --> p4["4 Β· instrument β one variable at a time"]
p4 -- "hypothesis falsified" --> p3
p4 --> p5["5 Β· regression test red β fix β green"]
p5 --> p6["6 Β· cleanup + post-mortem"]
classDef loopNode fill:#b91c1c,stroke:#fca5a5,color:#ffffff
class p1 loopNode
- Next β
/review-gatethe fix, then/commit, whose opening scan turns the root cause, the gotchas, and what didn't work into adocs/solutions/learning.
Garbage collection for the knowledge stores. Audits every docs/solutions/ doc against the
current code (cited paths still exist, the fix still matches reality) and AGENTS.md for bloat,
contradictions, and staleness. Verdict per doc β keep, update, consolidate, or delete β with the
prime directive match docs to reality, never the reverse; every change is user-gated. Run it
when the stores feel stale, not on a schedule.
Compaction for resuming work. Writes a handoff document to the OS temp directory β outside the
workspace β that a fresh session can pick up: state, references to specs and commits by path, and
a suggested-skills section naming what the next session should invoke. Deliberately not a spec
substitute: decisions that should outlive the session go to docs/specs/ first.
Throwaway code that answers a design question. Two branches: a logic question gets a tiny
interactive terminal app that pushes the state model through hard cases; a UI question gets
radically different variations switchable on one route. No tests, no polish, no persistence β and
when the question is answered, the validated decision folds into the real code while the prototype
itself is committed to a throwaway branch as a primary source. Fires on its own when a /grilling
decision needs empirical evidence.
Background primary-source research. Spins up a background agent so the session keeps working while it reads. Official docs, source code, specs β never a secondary write-up β with every claim cited, captured as a Markdown file where the repo keeps such notes. Fires on its own when a question hinges on facts living outside the codebase.
Principled conflict resolution. Reads the primary sources behind each conflicting change β
commit messages, PRs, the specs in docs/specs/ β resolves each hunk preserving both intents
where possible, never inventing behavior and never aborting, then runs the project's checks and
finishes the merge or rebase.
The deep-module vocabulary the rest of the loop leans on. Module, interface, seam, adapter,
depth, leverage, locality, the deletion test β used exactly, so design conversations, specs, and
reviews share one language. /spec uses it to place test seams, /review-gate's design lens
judges in it, /improve-codebase-architecture is built on it. Also carries the deepening playbook
and a design-it-twice pattern that explores alternative interfaces with parallel sub-agents.
A deepening-opportunity scan. Walks the codebase's hot spots (recent-change history first), hunts shallow modules and friction with the deletion test, and presents candidates as a self-contained HTML report β before/after diagrams, locality/leverage benefits, recommendation strength. Pick one and it grills you through the redesign decision tree.
Anti-overengineering guardrails, always on when writing code. Surface assumptions instead of hiding confusion; minimum code that solves the problem β no speculative abstractions, flexibility, or impossible-scenario error handling; turn vague tasks into verifiable success criteria and loop until they pass.
A tutor that lives in a workspace. Grounds every lesson in your stated mission, tracks resources and learning records, and produces short, beautiful, self-contained HTML lessons built for retention β retrieval practice, spacing, tight feedback loops β with printable reference sheets as the durable output.
The authoring standard behind every skill in this repo. Predictability as the root virtue:
leading words, checkable completion criteria, progressive disclosure, positive phrasing, no
no-ops, prune sediment. Loaded before editing any skill, AGENTS.md, or rules file β a session
that only reads them leaves it unloaded.
Add the marketplace once, then install the plugin(s) you want.
/plugin marketplace add toverux/grimoire
/plugin install cantrips@grimoire
/plugin install wards@grimoire
/plugin install typescript@grimoire
/plugin install csharp@grimoire
Or from your terminal: claude plugin marketplace add β¦ / claude plugin install β¦ with the same
arguments.
codex plugin marketplace add toverux/grimoire
codex plugin add cantrips@grimoire
codex plugin add wards@grimoire
codex plugin add typescript@grimoire
codex plugin add csharp@grimoireImportant
Migrating from the upstreams? Cantrips replaces the Matt Pocock skills and the
Compound Engineering plugin it forks (renamed: to-spec β /spec, ce-commit β /commit,
code-review β /review-gate, β¦). Uninstall those first, or the duplicate triggers will fight
each other.
Protective spells that trigger at a boundary.
Opinionated: wards encodes one specific taste β breathing room, a hard line limit, high-value comments β rather than a neutral lowest common denominator. Install it if you share the taste.
/general-code-styleskill β language-agnostic style (line breaks, 100-char limit, comments, docblocks), loaded by the agent before writing or editing code, never on read-only sessions.check-line-lengthhook β aPostToolUsehook (TypeScript, run directly by Node β₯ 22.6 via type stripping) that warns the agent with the offending line numbers when a file it just edited exceeds the limit. Lint-suppression one-liners are exempt.
Per-project tuning via an optional wards.config.json at the project root:
{
"checkLineLength": {
"extensions": ["cs"],
"suppressions": "#pragma warning disable|ReSharper disable",
"maxLength": 100
}
}Each key present replaces its default wholesale β a config listing extensions must name every
extension it wants checked. Defaults target JS/TS (ts tsx js jsx mjs cjs, oxlint/eslint/biome/ts
suppressions, 100 chars). Opt out per project by disabling the plugin.
One model-invoked style skill each, loaded before writing or editing the target language. The
TypeScript skill detects whether your project has the nn()/ensure*() assertion helpers and
adapts its nullability guidance either way.
agents-md-template.md is the AGENTS.md starter used across my projects β
a compact skeleton (overview, stack, structure, commands, glossary, boundaries) already wired for
the cantrips conventions (docs/specs/, docs/solutions/, the glossary β CONCEPTS.md graduation
path). Copy it, fill the gaps, delete what your project doesn't need.
bun install # install tooling deps (also installs the git hooks)
mise check # verify (read-only): type-check, lint, format, manifest sync
mise fix # auto-fix lint + format in placeSee AGENTS.md for the architecture, authoring standards, and release process (release-please, per-plugin versioning). Deferred ideas live in IDEAS.md; the v1 design spec in docs/specs/grimoire-v1.md.
The fastest loop is Claude Code's dev mode β it loads a plugin straight from the working tree, session-scoped, no install (repeat the flag per plugin):
claude --plugin-dir path/to/grimoire/plugins/cantrips --plugin-dir path/to/grimoire/plugins/wardsTo exercise the real install path instead, add the checkout itself as a marketplace β plain local paths work in both harnesses:
/plugin marketplace add path/to/grimoire
/plugin install cantrips@grimoire
codex plugin marketplace add path/to/grimoire
codex plugin add cantrips@grimoireInstalls are copies, not links: after editing files, run /reload-plugins in a live Claude Code
session, or /plugin marketplace update grimoire and reinstall to refresh an install. The wards
hook needs Node β₯ 22.6 on PATH (it runs as TypeScript via type stripping).
MIT β see LICENSE. Forked material is credited in NOTICE.md
(mattpocock/skills, MIT, Β© Matt Pocock;
EveryInc/compound-engineering-plugin,
MIT, Β© Every); every forked skill records its upstream in its frontmatter source key.