CLI Reference

grimoire — best practice enforcement for AI assistants. Every top-level command, one line each.


Setup

CommandWhat it does
grimoire initInitialize .grimoire/ in the current project
grimoire install [<grimoire-ref>]Install skills from grimoire.toml or a grimoire-ref
grimoire uninstall [<grimoire-ref>]Remove grimoire skills from agent directories
grimoire updateUpdate all packages to latest
grimoire cleanRemove stale grimoire-managed skills from agent directories
grimoire lockRegenerate grimoire.lock from the current grimoire.toml without installing

Discovery

CommandWhat it does
grimoire listList available domains, sub-domains, and skills
grimoire search <query>Search installed packages for skills matching a query
grimoire info <skill>Show metadata for an installed skill
grimoire contextShow grimoire context for AI assistants

Compliance (BPDD)

CommandWhat it does
grimoire check [files/dirs/globs...]Run independent AI compliance check
grimoire statusShow project compliance health at a glance
grimoire watchRe-run compliance check whenever project files change

See BPDD for the full methodology behind grimoire check.

Validation

CommandWhat it does
grimoire validate [<skill-path>...]Validate skill files against the grimoire STANDARD

Not to be confused with grimoire package validate above, which checks a package’s directory structure. grimoire validate lints individual SKILL.md files for STANDARD.md conformance — flags include --strict, --json, --no-duplicates, --test-schema <dir>, and an AI-powered --fix (via a local agent or API key — see --via/--prefer-api).

Diagnostics

CommandWhat it does
grimoire doctorRun a health check on the grimoire installation
grimoire wizardOpen the interactive TUI wizard
grimoire versionShow grimoire version information
grimoire self-updateUpdate the grimoire CLI binary to the latest release

Configuration

CommandWhat it does
grimoire configGet or set grimoire configuration values
grimoire config get <key>Print a config value and its source
grimoire config set <key> <value>Set a config value
grimoire config unset <key>Clear a config value
grimoire config add <key> <value>Append a value to a list config key (idempotent)
grimoire config remove <key> <value>Remove a value from a list config key
grimoire config showShow resolved grimoire config for the current project — see Config
grimoire config show --domain <prefix>Show only sections matching this domain prefix
grimoire config show --jsonOutput the resolved config as JSON

Profiles

CommandWhat it does
grimoire profileManage grimoire profiles
grimoire profile listList available profiles
grimoire profile show <name>Show skills in a named profile
grimoire profile init <name>Create a profile file in .grimoire/profiles/

See Practice Profiles for how profiles resolve.

Packages

CommandWhat it does
grimoire packageManage grimoire skill packages
grimoire package listList all configured packages
grimoire package set <grimoire-ref>Set the official package URL (owner/repo[@version] or full URL)
grimoire package resetClear core.package (revert to built-in default)
grimoire package add <name> <grimoire-ref>Add a named package and clone it
grimoire package remove <name>Remove a package by name
grimoire package enable <name>Enable a previously disabled package
grimoire package disable <name>Disable a package without removing it
grimoire package update [<name>]Pull latest from all (or one named) package
grimoire package validate [<path-or-name>]Validate a package’s structure (for package authors)
grimoire package publishGuide for publishing a grimoire package to the community

Authoring

CommandWhat it does
grimoire generate <type> <name>Scaffold grimoire artifacts (skill, profile)

MCP server

CommandWhat it does
grimoire mcpMCP server integration
grimoire mcp serveStart the grimoire MCP server (stdio transport)
grimoire mcp configPrint MCP configuration snippet for an AI assistant

grimoire mcp serve exposes the CLI as MCP tools, so an AI assistant can call grimoire natively without slash commands.

Editor Integration

CommandWhat it does
grimoire lspStart the grimoire Language Server (LSP) for editor integration

Runs over stdio and pushes grimoire check diagnostics into your editor on save — supports Neovim, VS Code, and Helix.