What problem does it solve?
It prevents brittle, inconsistent setup of Minerva’s durable record-keeping by creating the required .minerva/ directory layout, wiring routing into the project’s agent file, and ensuring the directories are not accidentally ignored.
Core Features & Use Cases
- Idempotent scaffolding: Creates .minerva/work/ and .minerva/knowledge/ (with tracked .gitkeep files) and re-runs safely without overwriting existing items.
- Pre-flight safety checks: Detects and warns about pre-existing flat work/ and decisions/ layouts at the repo root, and about legacy .minerva/decisions/ usage.
- Gitignore correctness: Verifies .minerva/ is not excluded; ensures .minerva/worktrees/ is ignored on the default branch (appends if needed).
- Agent routing integration: Adds a ## minerva Routing section to the canonical agent file (CLAUDE.md, AGENTS.md, or GEMINI.md) or prompts you to choose/create an appropriate file.
Quick Start
Run minerva:init to scaffold the .minerva/ layout in the current project and add the required routing section to your agent file.