Consulting and updating Project Brain, the persistent project knowledge — querying with npm run brain before decisions (architecture, business context, ownership, dependencies, ADRs, RFCs, glossary, patterns, anti-patterns, lessons, incidents, reports, releases), and proposing new typed entries after work. Use at the start of any decision and at handoff when something was learned (project brain, knowledge, memory, prior decisions, lessons learned, what do we know).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Project Brain?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-project-brain)
---
name: project-brain
description: Consulting and updating Project Brain, the persistent project knowledge — querying with npm run brain before decisions (architecture, business context, ownership, dependencies, ADRs, RFCs, glossary, patterns, anti-patterns, lessons, incidents, reports, releases), and proposing new typed entries after work. Use at the start of any decision and at handoff when something was learned (project brain, knowledge, memory, prior decisions, lessons learned, what do we know).
metadata:
category: governance
---
# Project Brain
## Purpose
Make every agent decide with the organization's memory and leave that memory richer than it found it.
**Use when:** before any decision, design, review or plan; and when a task produced a reusable lesson, pattern or report.
**Not for:** storing secrets, personal data, conversation transcripts or facts that already have a canonical document (link to it instead).
## Inputs
- A topic or question.
- Work results: handoff reports, postmortems, reviews, measurements.
## Outputs
- Relevant entries and canonical documents with paths.
- New or updated brain entries (via `context-engineer`).
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "project brain"` for prior decisions, patterns and anti-patterns.
- [Project Brain: layout, entry types, rules](../../../project-brain/README.md)
## Steps
1. **Query.** Run `npm run brain -- query "<topic>"` (add `--type adr|pattern|anti-pattern|lesson|incident|…`). Read the top results and the canonical documents they point to.
Done when you can name the decisions and lessons that constrain the task, or state that none exist.
2. **Respect.** Treat accepted ADRs and active entries as constraints; superseded entries as history only. Conflicts between entries are questions for the owner.
Done when the plan cites the entries it relies on.
3. **Capture.** At handoff, ask: did we learn a pattern, anti-pattern or lesson, change ownership or dependencies, produce a report? If yes, scaffold with `npm run brain -- new <type> "<title>"`.
Done when each lesson is one entry with sources.
4. **Validate.** Run `npm run brain -- check`: frontmatter, types, links, review dates.
Done when the check passes.
## Best practices
- One fact, one place: brain entries link to ADRs, docs and code instead of copying them.
- Write entries for a reader in six months: context, what happened, what to do.
- Tag generously with domain terms from the glossary.
- Supersede, don't delete: history explains today's choices.
## Common mistakes
- Skipping the query and re-deciding a settled question.
- Dumping a conversation as an "entry".
- Entries without sources or owners.
- Recording a guess as a fact.
## Example
Before proposing retries for a webhook sender, the agent queries "retries webhook" and finds the anti-pattern "unbounded retries without jitter" (from incident 2026-03) and the pattern "outbox + backoff"; the design cites both. After the task, a lesson "provider X returns 200 on duplicate" is added.
## Reusable prompt
```text
Apply the Project Brain skill (.agents/skills/project-brain/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Query Project Brain for the topic, list the binding decisions and lessons with paths, flag conflicts, and after the work propose the entries to add.
Return: Relevant entries and canonical documents with paths.; New or updated brain entries (via context-engineer)..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```