project-brain
Installation
SKILL.md
Project Brain
Use gh to read the project's separate Git-backed knowledge base. Treat the brain as evidence: cite repository paths and the commit inspected, distinguish documented facts from inference, and say when the repository does not answer the question.
Mandatory preflight
Before planning, answering, reviewing, diagnosing, documenting, or changing files in a Git worktree:
- Resolve the current worktree root with
git rev-parse --show-toplevel. - Check that root for
.project-brain.json. - If the file exists, invoke this workflow and consult the brain before substantive reasoning or action. The marker is an unconditional instruction; do not wait for the user to mention Project Brain and do not decide that consultation is unnecessary.
- Read enough relevant brain material to ground the task. At minimum, read
agent-guide.mdwhen it exists, then discover and read the sources relevant to the request. - If the brain cannot be reached, report the specific blocker. Do not silently continue with ungrounded assumptions.
The Project Brain is a separate repository identified by the marker. Do not expect it inside the active project, add it as a child directory, or clone it into the active worktree.
Resolve the brain
- Read
.project-brain.jsonfrom the active worktree root. Accept this shape: