Skip to content
Proyek

Tentang

πŸ§™ Grimoire makes AI agents follow best practices β€” 1000+ skills across 26 domains (engineering, law, finance, design, health, and more), each sourced from a real institution or study. Install once, and your AI routes to the right skill automatically.

Bisnis dan keuangan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+5
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
grimoire

The world's knowledge is in your AI. The world's practice is not.
Grimoire makes AI agents follow best practices β€” routed to the right one, applied visibly, enforced in CI.


πŸ“– Grimoire πŸ“–

Grimoire makes AI agents follow best practices β€” a package manager for best-practice skills.
Declare the practices you require. Install them in one command. Enforce them automatically,
in CI, on every save, across every domain.

Donate (GitHub Sponsor) Release Version Contributors License: MIT Donate (Liberapay) Donate (Patreon) Donate (Ko-fi) Works with 1,300+ Skills

Built with ❀︎ by jeffreytse and contributors

🎬 Demo

"We're launching our SaaS in 48 hours. I'm terrified something will break. What do we do?"

grimoire demo β€” pre-launch protocol: apply-premortem β†’ design-slo β†’ plan-incident-response β†’ run-game-day

Not an engineer? See Skills in Action for a sample, or browse all 26 domains in grimoire-core.

πŸ€” Why Grimoire?

Your AI knows everything β€” Grimoire makes it practice it.

Books gave everyone knowledge. Google gave everyone access. AI gave everyone comprehension. None of them gave everyone practice. Grimoire does.

The model knows SOLID, DDD, Google SRE, and the ABA Model Rules. Without explicit guidance, it enforces none of them. Grimoire is the enforcement layer β€” skills: named, citable, executable units of expert practice, one concept, one source, one set of steps.

  • πŸ” You don't know what you don't know. Grimoire surfaces the governing standard you didn't know applied.
  • πŸ€– Knowing is not enough. Grimoire enforces. Specific steps, verifiable criteria, repeatable results. Not summaries β€” verdicts.
  • 🌍 The world's best practices belong to everyone. McKinsey charges $1M. Senior lawyers bill $800/hr. The practices they follow are not proprietary. Grimoire makes them free β€” as executable steps, cited and verified.
  • 🧱 Every profession. Every AI. 1,300+ skills across 26 domains. Works with Claude Code, Copilot, Codex, Gemini, OpenCode, OpenClaw, Antigravity, Pi, Kimi, OMP, DeepSeek Harness, Grok, Muse, MiniMax, and any agent that reads ~/.agents/skills.
  • πŸ“¦ Package-managed. Declare skills in grimoire.toml and pin package versions in the ref ([email protected]); grimoire.lock records exactly what was installed. Shared skill sets across machines and teams β€” like Cargo or npm for best practices.
  • 🌐 Open ecosystem. Any git repo is a grimoire package. We encourage community packages to follow the grimoire skill standard β€” but it's not required. Pair grimoire-core with company-internal skills, community packages, or your own library; all declared in one grimoire.toml.
  • πŸ”¬ Semantic compliance, not syntax checking. Other tools lint whether your CLAUDE.md is valid TOML. Grimoire checks whether your project actually follows the practices it declared β€” criteria by criteria, domain by domain. grimoire check is ESLint for practices. Gate CI with exit codes. Watch for changes with --live.

What grimoire does beyond installing skills:

What it means
Routes to the right practice Every request goes through grimoire's workflows (suggest, plan, tree), which pick the practices that fit and ask when it isn't clear. The model doesn't have to guess which of 1,300+ skills applies.
Serves the whole library on demand MCP mode searches every skill when a task needs it. Agents' own skill listings hold ~8–16k characters, a few percent of the library.
Shows its decisions One grimoire β–Έ line per decision, plans you confirm before they run, choices you can swap. brief / full / hidden.
Follows your project's standards Practices declared in grimoire.toml are preferred and labeled, or enforced with scope = "strict".
Enforces them in CI grimoire check verifies a project against its declared practices, criterion by criterion (BPDD).
Quality-gated content Official skills follow STANDARD.md: sourced, adoption evidence, verifiable steps.

If you've spent 10,000 hours mastering something, your practice belongs here.

β†’ Read the full philosophy

πŸ” How it works β€” one task, end to end

The output below is real, from grimoire's display eval (Claude Code, MCP mode, trimmed).

1. Describe the task. No skill names, no setup:

❯ plan our move from REST to GraphQL and from Jenkins to GitHub Actions this quarter

2. grimoire routes it and shows the plan. One line says what it's doing; the plan names a practice per step, offers a choice where several fit, and waits:

grimoire β–Έ planning several skills β€” two migrations need coordinated practices in order

Plan β€” 5 steps
⎿  Step 1  write-adr β€” record why each migration is happening, its scope and exit criteria
⎿  Step 2  Jenkins β†’ GitHub Actions β€” nested plan, 2 skills
     2a. design-ci-pipeline β€” move build and test stages over, running both side by side
     2b. design-cicd-pipeline-security β€” secrets, OIDC, least-privilege tokens
⎿  Step 3  REST β†’ GraphQL β€” nested plan, 2 skills
     3a. apply-strangler-fig-pattern β€” a GraphQL layer over REST, clients moved one by one
     3b. design-contract-testing β€” keep existing consumers working during the cutover
⎿  Step 4  release safety β€” choose one
     4a. apply-feature-toggles β€” move each client to GraphQL behind a flag β˜… recommended
     4b. design-deployment-strategy β€” canary or blue-green at the service level
⎿  Step 5  apply-premortem β€” find what's likely to sink two migrations in one quarter
Apply this plan? Reply "yes", or pick another choice (e.g. "4b").
Steps that change files or run commands ask first.

3. You decide; the agent applies each practice. Reply "yes", or swap a choice ("4b"). Each step runs as its practice says, and you can see where you are:

design-ci-pipeline β€” step 2a of 5
⎿  Approach  run Jenkins and Actions on the same commits, compare, then cut over job by job

4. Make it the team's standard, and check it in CI. Declare the practices your project follows. The assistant then prefers them for everyone on the team, and grimoire check verifies the work against them:

# grimoire.toml
[standards.engineering]
practices = ["apply-strangler-fig-pattern", "design-contract-testing"]
grimoire check --ci    # fails the build when declared practices aren't followed

That's the whole loop: ask β†’ routed and planned β†’ applied visibly β†’ verified. Everything else (packages, profiles, display levels, skills mode) is detail you can pick up later.

The same loop in any field. grimoire-core covers 26 domains, from engineering and law to finance, health and parenting. When one practice clearly fits, grimoire applies it directly, with no plan to confirm:

❯ my partner and I want to retire early β€” how much do we need, and how do we get there?

grimoire β–Έ finding a practice for early-retirement planning β€” goal stated, no approach yet

calculate-fire-number
⎿  Goal  a portfolio that funds your spending indefinitely, and how long it takes to get there
⎿  Note  I don't know your country yet, so tax, healthcare and pension rules aren't included

FIRE number = annual retirement spending Γ· safe withdrawal rate (SWR) …

It works the same way in Claude Desktop: grimoire mcp install --target claude-desktop, with no terminal agent needed.

βš’οΈ Install

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/jeffreytse/grimoire/main/scripts/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/jeffreytse/grimoire/main/scripts/install.ps1 | iex

Go:

go install github.com/jeffreytse/grimoire@latest

Then run the interactive wizard (all platforms):

grimoire wizard    # guided setup: MCP or skills mode, agents, domains β€” no config editing required

Which mode? Use MCP mode for every agent that supports it. grimoire-core has over 1,300 skills, and agents load only a small listing of skill descriptions β€” about 8,000–16,000 characters in Claude Code and Codex, against ~320,000 for the whole library. In skills mode most skills are therefore invisible to the agent's own skill discovery. MCP mode serves the whole library on demand through search, with no listing limit. Use skills mode for agents without MCP support (OpenClaw, DeepSeek Harness, Grok, Muse, MiniMax, generic agent), or to link a small curated subset β€” about 30 skills fit Claude Code's or Codex's listing; even one subdomain such as engineering/development (44 skills) does not. Skills mode stays fully supported, but new capabilities arrive in MCP mode first.

MCP mode (recommended) β€” the whole library on demand, nothing copied into your agent:

grimoire mcp install                      # Claude Code: register the server, add the CLAUDE.md instruction, hooks + status line badge
grimoire mcp install --target all         # every supported agent on your PATH
grimoire mcp install --target codex,gemini
grimoire mcp install --scope project      # this repo only (commit the files to share)
grimoire mcp uninstall --target all       # undo

Claude Desktop (no terminal agent needed): grimoire mcp install --target claude-desktop, then reopen Claude Desktop.

Skills mode (agents without MCP, or a small subset): see docs/skills-mode.md.

First use

  • Describe a problem in plain language; grimoire routes it, as in How it works.
  • Run a skill by name: grimoire:<skill-name> [task] in any agent, or /grimoire:skill <skill-name> in Claude Code.
  • Say "grimoire help" in a session for the controls (details, quiet, plain, skip, off/on).
  • Check a project against its declared practices: grimoire init, then grimoire check (add --ci in CI).

The full MCP guide β€” hooks, what you see, controls, on/off, project scope β€” is in docs/mcp-mode.md.

πŸ€– Agent Support

Agent MCP mode (recommended) Skills mode
Claude Code, Codex, Gemini CLI, OpenCode, Pi, Kimi Code, OMP, Antigravity βœ“ grimoire mcp install --target <agent> βœ“
GitHub Copilot CLI βœ“ (no prompt hook) βœ“
Claude Desktop βœ“ --target claude-desktop β€”
Cursor, Windsurf, Cline βœ“ grimoire mcp config --target <client> prints the config β€”
OpenClaw, DeepSeek Harness, Grok, Muse, MiniMax, any other agent β€” βœ“ grimoire install --target <agent>

Per-agent files, hooks and scopes: MCP mode Β· native plugin commands: skills mode.

🌟 Featured Skills

Skill Domain Source methodology Verified
review-saas-contract law/contracts ABA model SaaS agreements βœ“
calculate-fire-number finance/personal-finance Bengen (1994) / Trinity Study βœ“
negotiate-salary finance/personal-finance Fisher & Ury "Getting to Yes" / BLS data βœ“
design-sleep-protocol health/sleep Matthew Walker "Why We Sleep" / AASM βœ“
apply-mise-en-place cooking/techniques Culinary Institute of America βœ“
apply-five-whys engineering/reliability Toyota Production System / Google SRE βœ“
design-training-program sports/training NSCA CSCS curriculum βœ“
apply-acceptance-commitment-therapy psychology/cognitive Hayes / ACBS meta-analyses βœ“
write-value-proposition writing/copywriting Osterwalder "Value Proposition Design" βœ“
design-training-periodization-plan sports/training Bompa "Periodization" / NSCA βœ“

β†’ Browse all skills by domain

πŸ“ The Grimoire Skill Standard

Every official skill follows the Grimoire Skill Standard: a named source, evidence that the practice is widely adopted, and steps you can verify. Details: docs/skill-standard.md.

πŸ—ΊοΈ Domains

Domains below are from grimoire-core, the official package. Community packages may cover any domain structure β€” grimoire imposes no layout.

πŸ“¦ Official package: github.com/jeffreytse/grimoire-core

Domain Sub-domains
grimoire Setup: install-grimoire Β· configure-grimoire Β· Problem analysis: analyze-best-practice-problem Β· discover-best-practices Β· Routing: suggest-best-practice Β· start-best-practice Β· Solution planning: plan-best-practice-solution Β· apply-best-practice-tree Β· Practice evaluation: review-best-practice-fit Β· compare-best-practices Β· audit-applied-best-practices Β· Practice understanding: explain-best-practice Β· adapt-best-practice Β· teach-best-practice Β· Preferences: pin-best-practice-preference Β· resolve-best-practice-conflict Β· apply-best-practice-profile Β· write-best-practice-profile Β· review-best-practice-profile Β· share-best-practice-profile Β· Compliance: apply-best-practice-driven-development Β· check-best-practice-compliance Β· Contributors: write-best-practice-skill Β· review-best-practice-skill Β· revise-best-practice-skill Β· audit-best-practice-domain Β· deprecate-best-practice-skill Β· design-best-practice-domain
engineering development, frontend, architecture, testing, reliability, devops, cloud, networking, security, data, ai, hardware, mobile, performance, project-management, product, documentation
writing creative, technical, copywriting, academic, journalism
design ui-ux, graphic, branding, motion, product
business strategy, operations, leadership, entrepreneurship, hr
science biology, physics, chemistry, mathematics, earth-science, astronomy
marketing seo, content, social-media, paid-ads, growth, analytics
health fitness, nutrition, mental-health, sleep, medicine
finance personal-finance, investing, accounting, real-estate, corporate
education curriculum, teaching, e-learning, assessment, learning-science
film cinematography, directing, editing, screenwriting, production
law contracts, ip, employment, privacy, corporate
photography composition, lighting, editing, genres
music composition, production, mixing, theory, performance
cooking techniques, baking, flavor, nutrition, world-cuisine
language learning, linguistics, translation, communication
art drawing, painting, digital-art, illustration, color-theory
sports training, coaching, nutrition, tactics, recovery
productivity time-management, habits, focus, goals, tools
travel planning, budgeting, cultural, adventure
psychology cognitive, behavioral, social, clinical, positive
home renovation, interior-design, gardening, organization, smart-home
environment sustainability, ecology, climate, energy, policy
pets dogs, cats, training, nutrition, health
fashion styling, wardrobe, design, sustainability, accessories
parenting infant, toddler, school-age, teen
automotive maintenance, troubleshooting, buying, modifications, ev

πŸ›οΈ Make It Your Team's Standard

Declare the practices your project follows in grimoire.toml. In MCP mode the assistant prefers them for everyone on the team (or only uses them, with [standards] scope = "strict"), the BPDD workflows enforce them, and grimoire check verifies work against them in CI:

# grimoire.toml
[standards.engineering]
practices = ["apply-strangler-fig-pattern", "design-contract-testing"]

Standards and libraries stack as organization (system file) β†’ user β†’ project. See configuration, profiles, BPDD and grimoire check and packages.

❓ FAQ

How is grimoire different from other skill package managers or agents' plugin marketplaces?

They distribute skills: find, install, version and share them, and some evaluate them. That's a solved and useful layer, and grimoire does it too. Grimoire's focus is the next step: getting the agent to apply the right practice. It routes each request to the practices that fit, serves a 1,300+ skill library on demand without filling the agent's context, shows its decisions so you can redirect them, respects your project's declared standards, and checks compliance in CI. Grimoire's skills also work as plain SKILL.md folders, so they install through agents' native plugin commands as well.

MCP mode or skills mode?

MCP mode, wherever the agent supports it (Claude Code, Codex, Gemini CLI, Copilot CLI, OpenCode, Pi, Kimi Code, OMP, Antigravity). Agents put every installed skill's name and description into a fixed listing β€” about 8,000–16,000 characters in Claude Code and Codex β€” and silently truncate or drop what doesn't fit. grimoire-core's descriptions total ~320,000 characters, so a full skills-mode install leaves the agent able to discover only a few percent of it. MCP mode keeps the listing empty and finds skills by search when a task needs them, and adds grimoire's hooks and display. Skills mode is for agents without MCP support, or a deliberately small subset that fits the listing β€” about 30 skills. Skills mode stays fully supported, but new capabilities arrive in MCP mode first. Project standards, organization/user/project layers and search-based selection, for example, need MCP mode.

Isn't this already in the model's training data?

Yes β€” and no. Models know about best practices. Skills make models do them, reliably.

The difference:

Without a skill With a skill
Model improvises a version of the practice Model follows the exact steps from the source institution
Output varies every run Same process, same structure, every time
Practice applied only if you know to ask Skill triggers automatically when the situation matches
Generic advice Specific: the right gate, the right question, the right output format

For simple tasks (write a test, fix a bug), the skeptic is right β€” the model doesn't need a skill. For complex, multi-step workflows β€” an SLO design, a post-mortem, an incident response β€” skills measurably change what you get. The model knows Google's engineering review process exists. It does not reliably know which question to ask first, what the output format is, or when to stop. That's what a skill encodes.

More questions: docs/faq.md.

πŸ“š Docs

🀝 Contributing

Two ways to contribute:

Add a skill β€” share expert knowledge across law, finance, engineering, cooking, or any of the 26 domains. First skill takes ~30 minutes.

β†’ Contributing guide in grimoire-core

Improve the CLI β€” bug fixes, new commands, performance, documentation.

  1. Fork and clone this repo
  2. make build to compile, make test to run tests
  3. Open a PR β€” describe the problem it solves

β†’ Open issues Β· pull requests

❀️ Support

grimoire is free. It replaces $500/hr lawyers, $300 doctor visits, and $1M McKinsey engagements β€” at zero cost, forever.

If it saved you time, money, or a bad decision:

Every star makes grimoire more visible. Every sponsorship funds one more domain.

πŸ“„ License

This project is licensed under the MIT license Β© Jeffrey Tse.

Jelajahi proyek terkait

Memuat…