Skip to content

Latest commit

Β 

History

History
578 lines (455 loc) Β· 33.2 KB

File metadata and controls

578 lines (455 loc) Β· 33.2 KB

πŸͺ„ cantrips

β€œBasic spells a caster always has prepared.”

A curated set of agent skills for Claude Code and Codex.

One coherent engineering loop β€” grill, spec, implement, review, commit β€” that remembers what it learns.
And a set of utilities for day to day needs.

Inspired by and kept in sync with Matt Pocock's skills and Every's Compound Engineering.

The loop Β· Storage Β· The skills Β· Install Β· Development


Most skill collections are a bag of independent commands: you memorize which one to type, and each one starts from nothing. Cantrips is a single pipeline instead β€” /grilling β†’ /spec β†’ /implement (TDD at agreed seams) β†’ /review-gate β†’ /commit β†’ /compound β€” folding the best of both upstreams into one shape: Pocock to steer, a Compound-Engineering-style pipeline to execute and remember.

A loop that navigates itself

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 β€” /tdd when you build test-first, /compound when a learning surfaces, /prototype when a design question needs empirical evidence.
  • Skills brief each other. The spec records the seams /tdd will bite at; /implement suggests a /review-gate effort level scaled to the diff it just produced; /review-gate flags compound-worthy findings for /commit's learnings scan.
  • Storage is pluggable. Skills speak six storage verbs, never a path or a CLI. Local markdown out of the box; a GitHub tracker, or your own described workflow, once you configure one.
  • The loop remembers. /compound routes what a session learned into knowledge stores, and /spec, /review-gate, and /diagnosing-bugs read those stores back β€” each unit of work makes the next one easier.

The tiers

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 ["&nbsp;&nbsp;πŸ“¦ /commit&nbsp;&nbsp;"]
        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
Loading
  • Small fix: /grilling (optional) β†’ implement directly β†’ /review-gate β†’ /commit.
  • Feature: /grilling β†’ /spec β†’ /implement in a fresh context, driving /tdd at the test seams agreed in the spec β†’ [/simplify] β†’ /review-gate β†’ /commit.
  • Big / multi-session: insert /tickets between spec and implement; one ticket per fresh context window.
  • Bugs enter through /diagnosing-bugs instead of grill/spec; the root cause becomes a learning at commit time.
  • /handoff breaks context at any tier (compaction for resuming β€” never a substitute for a spec).

Pluggable storage

No skill hard-codes where a spec or a ticket lives. The storage-touching skills speak six verbs β€” publish, fetch, and annotate the spec; publish, fetch, and resolve the ticket β€” and one per-repo doc, docs/agents/cantrips-loop.md, translates each verb for the repo's backend and lists which knowledge stores are enabled. When that doc is absent, the plugin's defaults govern, so a bare install runs with no configuration step.

What lives where, by default:

Artifact Default home Role
Specs .scratch/<feature>/spec.md, gitignored Point-in-time record of one feature's decisions; deleted at feature close.
Tickets .scratch/<feature>/NN-<slug>.md, gitignored Execution slices of a spec; resolved by /implement, deleted with it.
ADRs docs/adr/, committed β€” opt-in Durable decisions with supersession chains; /compound writes, /spec reads.
Solutions docs/solutions/, committed β€” opt-in Problem-shaped learnings; re-read by reviews and diagnoses.

Important

Nothing breaks without it, but one /setup-cantrips-loop run per repo is what makes the loop remember: on the bare defaults both knowledge stores stay off, so the loop executes and never accumulates decision memory. The same run picks the storage backend β€” committed specs, or a tracker, instead of scratch.

Three backend seeds

  • Local markdown β€” the defaults above, written into the doc; the setup run can instead pick a committed location (e.g. docs/specs/) for repos whose specs should travel with branches, worktrees, and pull requests.
  • GitHub β€” the gh CLI: the spec and each ticket published as issues, annotations as issue comments, ticket resolution as an issue close, blocking edges via native issue links.
  • Freeform β€” describe your tracker workflow in a paragraph; the setup skill derives each verb's translation from it.

Specs are point-in-time records

A spec's body freezes at publication: work-status lines (pending, in-progress, done) never enter it β€” execution state lives in git and in the backend's own machinery. Afterthoughts β€” a /prototype verdict, a decision revised mid-implementation β€” arrive as dated annotations through the annotate-spec verb, so the original decision and its revisions stay distinguishable. Post-loop drift between spec and code is not an error: code and git are truth, the spec is history. And no skill ever closes a spec β€” closing a feature is your act through the backend's native machinery (one click on a tracker; on local markdown, deleting the feature's .scratch/ folder β€” the durable outcome lives in code, git, and the knowledge stores, not the spec).

Two opt-in knowledge stores

The stores are the loop's memory β€” the durable layer that outlives disposable specs β€” and skills skip reads and writes against a store that is off. docs/adr/ gives decisions history instead of silent drift: an outdated record names the record that replaced it, and every write passes /compound's user gate. docs/solutions/ captures root cause, gotcha, and what didn't work, so the next session that hits the same problem starts from the answer. The compounding system below shows how both are written and read back.

The compounding system

The part that makes each unit of work easier than the last:

  • /compound fires 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's AGENTS.md, a docs/adr/ decision record, a docs/solutions/ entry, a rules file, a skill, or your user-global memory file (CLAUDE.md, AGENTS.md, or your harness's equivalent). The two opt-in stores take writes only where the repo enables them. Every write is user-gated: approve, redirect, or kill.
  • Read-back arrows: /spec reads the repo's decision memory β€” AGENTS.md, plus ADRs for decisions already made and solutions for gotchas where those stores are enabled (never past specs) β€” and /review-gate and /diagnosing-bugs re-check docs/solutions/ learnings when that store is on, so captured knowledge actually gets used.
  • /compound-refresh garbage-collects the stores when they age: audits AGENTS.md for bloat and contradictions, plus docs/solutions/ against the current code when that store is enabled. (docs/adr/ needs no collection β€” supersession is its own hygiene.)

Full roster

Each skill name links to its section below; each skill's SKILL.md under 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 πŸ§‘ Publish the conversation as a spec, 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
/setup-cantrips-loop πŸ§‘ Configure a repo's storage backend and opt-in knowledge stores.
/compound-refresh πŸ§‘ Garbage-collect AGENTS.md, and docs/solutions/ where enabled.
/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.
/teach πŸ§‘ Learn a concept from this workspace, tutor-style.
/writing-great-skills πŸ§‘πŸ€– The authoring standard, loaded before editing skills, AGENTS.md, or rules.

The loop, skill by skill

/grilling

A relentless, one-question-at-a-time interview that stress-tests a plan before any code exists.

  • When to use β€” before /spec on 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 β€” /spec for feature-sized outcomes (same session β€” it synthesizes the interview), /implement directly for small fixes.

/spec

Synthesize the conversation into a published spec β€” 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.
  • The lifecycle β€” a spec is a point-in-time decision record: body frozen at publication, afterthoughts as dated annotations β€” see Pluggable storage.
  • How it works β€” explores the repo, reads the decision memory (AGENTS.md, plus ADRs and solutions where those stores are enabled β€” never past specs), flags any conflict with a standing ADR explicitly instead of silently overriding it, proposes the seams (approved by you before writing), then publishes the spec: problem, solution, user stories, implementation decisions, test seams, out of scope.
  • Next β€” /tickets when the work spans sessions, else /implement β€” a fresh context either way; the spec is the context.

/tickets

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 publishes one ticket per slice, numbered in dependency order, with acceptance criteria β€” blocking edges ride the backend's native issue links where it has them, prose otherwise.
  • Next β€” /implement, one ticket per fresh context, working the frontier of unblocked tickets.

/implement

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 β€” fetches the spec or ticket in full, drives /tdd at the agreed seams, typechecks and runs scoped tests continuously, ticks acceptance criteria as each is verified, and finishes with the full suite. A ticket whose criteria are all verified is resolved through the backend (a wrong resolve is one human reopen away); the spec itself is never closed.
  • Next β€” /simplify (optional), then /review-gate with a suggested effort level scaled to the diff it just produced, then /commit β€” all in-session; the working diff is the context.

/tdd

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
Loading
  • Next β€” refactoring is deliberately not part of the cycle; it belongs to the review tail, /simplify and /review-gate.

/simplify

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.

/review-gate

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: low for a trivial or mechanical diff, high for a large, cross-cutting, or risky one, medium otherwise.
  • 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. A code-vs-spec mismatch is reported neutrally with both fixes β€” align the code, or annotate the spec with the mid-implementation revision β€” because a spec is a point-in-time record and the code may be the side that is right. Matched docs/solutions/ learnings (when that store is enabled) 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
Loading

* high effort only.

  • How it works β€” three effort levels: low is one inline diff pass (≀4 findings); medium dispatches 4 correctness + 2 quality finders reviewing for precision (≀8); high dispatches 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; --fix applies the surviving findings on the spot. On a harness without sub-agents (Codex), 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 /compound material for commit's opening scan.

/commit

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 /compound when 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.

/compound

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-bugs closes 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 --> adr["docs/adr/ <i>(opt-in)</i><br/>durable decisions"]
    gate --> solutions["docs/solutions/ <i>(opt-in)</i><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,adr,solutions,rules,skills,global memoryNode
Loading
  • Next β€” the writes join the working tree; /commit's flow picks them up.

/diagnosing-bugs

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<br/><i>(when the store is enabled)</i>"] --> 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
Loading
  • Next β€” /review-gate the fix, then /commit, whose opening scan turns the root cause, the gotchas, and what didn't work into a durable learning β€” a docs/solutions/ entry where that store is enabled.

The utilities, skill by skill

/setup-cantrips-loop

Configure how a repo runs the loop. Explains each opt-in knowledge store's role in plain words and asks which to enable, asks which backend seed translates the six storage verbs β€” local markdown, GitHub, or freeform β€” then writes docs/agents/cantrips-loop.md, the one prose doc the storage-touching skills read in place of the plugin defaults. Re-runnable: a second run edits the existing doc. Not required to run the loop β€” but the knowledge stores stay off until it does, so a repo that never runs it never compounds.

/compound-refresh

Garbage collection for the knowledge stores. Audits AGENTS.md for bloat, contradictions, and staleness β€” and, when the solutions store is enabled, every docs/solutions/ doc against the current code (cited paths still exist, the fix still matches reality). 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.

/handoff

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 are annotated onto the feature's spec first.

/prototype

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, the prototype itself is committed to a throwaway branch as a primary source, and the branch pointer and verdict land on the feature's spec as a dated annotation. Fires on its own when a /grilling decision needs empirical evidence.

/research

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.

/resolving-merge-conflicts

Principled conflict resolution. Reads the primary sources behind each conflicting change β€” commit messages, PRs, the specs fetched through the storage contract β€” 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.

/codebase-design

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.

/improve-codebase-architecture

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.

/teach

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.

/writing-great-skills

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.

Install

Register this repository as a plugin source once, then install cantrips from it.

Claude Code

/plugin marketplace add toverux/cantrips
/plugin install cantrips@cantrips

Or from your terminal: claude plugin marketplace add … / claude plugin install … with the same arguments.

Codex CLI

codex plugin marketplace add toverux/cantrips
codex plugin add cantrips@cantrips

The repository is both the source and the only plugin in it, hence cantrips@cantrips.

Important

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.

Development

There is nothing to install and nothing to build β€” this repository is Markdown plus a handful of JSON manifests. Clone it and edit.

See AGENTS.md for the layout, the authoring standard, and the release process (release-please). Deferred ideas live in IDEAS.md, and cantrips runs its own loop on itself β€” docs/agents/cantrips-loop.md is the config that says how.

Trying your changes locally

The fastest loop is Claude Code's dev mode β€” it loads the plugin straight from the working tree, session-scoped, no install:

claude --plugin-dir path/to/cantrips

To exercise the real install path instead, point the harness at the checkout itself β€” plain local paths work in both:

/plugin marketplace add path/to/cantrips
/plugin install cantrips@cantrips
codex plugin marketplace add path/to/cantrips
codex plugin add cantrips@cantrips

Installs are copies, not links: after editing files, run /reload-plugins in a live Claude Code session, or /plugin marketplace update cantrips and reinstall to refresh an install.

License

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, and FORKS.md records how each fork deliberately differs from its upstream and why.