jeffreytse/grimoire
关于
🧙 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.
商业与金融实测星标增长
- 24小时
- 0
- 7天
- +5
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.
Why | Features | Install | Quick Start | Domains | Contributing | Changelog | License
🎬 Demo
"We're launching our SaaS in 48 hours. I'm terrified something will break. What do we do?"

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.tomland pin package versions in the ref ([email protected]);grimoire.lockrecords 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-corewith company-internal skills, community packages, or your own library; all declared in onegrimoire.toml. - 🔬 Semantic compliance, not syntax checking. Other tools lint whether your
CLAUDE.mdis valid TOML. Grimoire checks whether your project actually follows the practices it declared — criteria by criteria, domain by domain.grimoire checkis 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.
🔁 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, thengrimoire check(add--ciin 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 | ✓ |
📐 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
🏛️ 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
- MCP mode: setup per agent, hooks, what you see, controls, on/off, project scope, all MCP tools
- Skills mode: linking skills into agents, packages, native plugins
- Examples: skills in action and ways to start
- Workflows: how grimoire routes and combines practices
- Configuration · Profiles · Packages
- BPDD and
grimoire check· Editor integration (LSP) - The Skill Standard · FAQ
🤝 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.
- Fork and clone this repo
make buildto compile,make testto run tests- Open a PR — describe the problem it solves
❤️ 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:
- ⭐ Star this repo — takes 2 seconds, helps thousands of people find it
- 💖 Sponsor on GitHub — keeps the maintainer funded to add more skills across more domains
- ☕ Ko-fi · Patreon · Liberapay — one-time or recurring
Every star makes grimoire more visible. Every sponsorship funds one more domain.
📄 License
This project is licensed under the MIT license © Jeffrey Tse.
探索相关项目
加载中…