Local-first, AI-native requirements management for software projects.
Grimoire stores project knowledge — features, requirements, tasks, and architecture decisions — as structured markdown files in your git repository. A CLI designed for AI coding agents provides fast, structured access to project context.
Grimoire answers the question: "How does a new AI agent session get oriented in a project — fast?"
# Install the CLI
npm install -g @grimoire-ai/cli
# Initialize grimoire in your project
grimoire init --name "My Project"
# Install AI agent skills (agentskills.io)
npx skills add mikevalstar/grimoiregrimoire overview # Project overview
grimoire feature list # List all features
grimoire task list --status todo # Find open workgrimoire feature create --title "User Authentication" --priority high --tag security
grimoire requirement create --title "OAuth 2.0 Login" --feature feat-xxxxx-user-authentication
grimoire task create --title "Setup Google OAuth" --requirement req-xxxxx-oauth-20-login
grimoire decision create --title "Use JWT Over Sessions" --status acceptedgrimoire task update <id> --status in-progress
grimoire log <id> "Implemented OAuth callback handler" --author claude-code
grimoire comment <id> "Should we support SAML as well?"grimoire ui # Launch web dashboard on port 4444
grimoire ui --port 8080 # Custom portThe web UI provides a visual dashboard with document browsing, filtering, sorting, and rendered markdown.
grimoire validate # Check for broken links, missing fields| Type | Directory | Purpose |
|---|---|---|
| overview | overview.md |
Single project overview |
| feature | features/ |
High-level capabilities |
| requirement | requirements/ |
Detailed specs, linked to features |
| task | tasks/ |
Implementation work items |
| decision | decisions/ |
Architecture Decision Records (ADRs) |
All documents are markdown files with YAML frontmatter, stored in .grimoire/ and committed to git.
.grimoire/
overview.md # Project overview
config.yaml # Configuration
features/ # Feature documents
requirements/ # Requirement documents
tasks/ # Task documents
decisions/ # Architecture decisions
.cache/ # Gitignored — derived database
Markdown files are the source of truth. The database (DuckDB) is a derived cache that enables full-text search, semantic search, and relational queries — it's always rebuildable from files via grimoire sync.
Grimoire is designed for AI coding agents (Claude Code, Cursor, Copilot, etc.) to consume. All commands output structured JSON by default.
# Agent starting work
grimoire overview # Understand the project
grimoire task list --status todo # Find available work
grimoire task get <id> # Read task details
grimoire task update <id> --status in-progress # Claim a task
# Agent recording progress
grimoire log <id> "Completed implementation" # Log what was done
grimoire decision create --title "..." --body "..." # Record decisions
grimoire task update <id> --status done # Mark completeInstall the agentskills.io skill to give your AI agent full knowledge of Grimoire commands:
npx skills add mikevalstar/grimoireAll commands output JSON by default (AI mode). Use --format cli for human-readable output:
grimoire feature list --format cliSee DEVELOPMENT.md for setup, building, testing, and contributing.