project_ensure
Initialize or adopt a Git project for Brainlehr by creating a compact .brainlehr.json capsule from Git facts and declared entry points, preserving existing project knowledge without copying source code.
Instructions
Idempotently adopt or initialize a Git project for Brainlehr. Creates a compact .brainlehr.json capsule from Git facts and declared entry points, plus one project knowledge root; it never copies raw source code. Existing project-scoped knowledge is adopted, not duplicated. Explicit tool references distinguish available commands from planned capabilities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | No | Project-specific capability references to merge | |
| project_id | No | Stable Brainlehr project scope; defaults to repository directory name | |
| project_root | Yes | Any path inside the Git project |