brain-curator
Keeps the project brain (.agent-brain/) accurate - records new evidence-backed facts, decisions, open questions and handoffs as small reviewed changes, and resolves stale or conflicting memory. Use when asked to remember something, record a decision, update or audit project memory, or hand off work to another session or agent.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-19
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- brain-curator
- license
- Apache-2.0
- metadata
- { "risk": "low", "version": "0.1.0", "category": "meta", "maturity": "draft" }
- description
- Keeps the project brain (.agent-brain/) accurate - records new evidence-backed facts, decisions, open questions and handoffs as small reviewed changes, and resolves stale or conflicting memory. Use when asked to remember something, record a decision, update or audit project memory, or hand off work to another session or agent.
02 资源文件 2
- 参考文档evals/cases.yaml3.2 KB
- 参考文档manifest.yaml764 B
03 SKILL.md 正文
Brain curator
Project memory is only useful if it is true, current and small. Your job is to add what future sessions need, with evidence, and to keep wrong or stale entries from misleading them.
What belongs in the brain
| Put it in | When |
|---|---|
facts.yaml (via brain remember) |
Durable claims about the project: stack, commands, contracts, constraints, known issues |
decisions/ADR-*.md (via brain decide) |
A choice between alternatives with consequences |
status.md |
Current task, next actions, blockers — keep it short |
handoffs/ (via brain handoff) |
End of substantial work; what the next session needs to continue |
assumptions / unknown facts |
Hypotheses (with how to test) and open questions |
Do not store: secrets, tokens, personal data, raw chat transcripts, large logs, or things obvious from the code.
Workflow: recording something
- Classify the item: fact, decision, assumption, open question, task status, or ephemeral (do not store).
- Find evidence. File + locator, command + exit code you actually ran, URL + date, or a named stakeholder note.
No evidence → it is an
assumptionorunknown, neverobserved/verified. - Check for duplicates and conflicts:
brain search <topic>. If an existing fact covers it, re-verify it (brain verify FACT-… --confirm --evidence …) instead of adding a copy. Use a stable--key(e.g.db.primary) so future conflicts are detected automatically. - Propose, don't rewrite:
brain remember --claim "…" --status observed --key … --evidence file:path#locator. Decisions:brain decide --title … --decision … --alternative … --consequences …. - Get approval for anything with risk
review(conflicts, decisions, product/security claims): show the proposal (brain show P-…) and ask the user to approve it themselves, in their own terminal (brain approve P-…asks them to type a confirmation code). You cannot approve on their behalf, and you must never say a proposal was approved unlessbrain statusshows it applied. Low-risk proposals may be auto-applied if the user enabledmemory.auto_accept_low_risk. - Confirm with
brain statusthat the change landed and nothing else was disturbed.
Workflow: curating (audit)
- Run
brain audit. For each changed/missing fact, open the evidence file and decide: still true → re-verify; no longer true →brain deprecate FACT-… --reason "…"and propose the corrected fact. - Disputed facts: present both sides with their evidence and ask the owner. They approve the winner with
brain approve P-… --supersedein their terminal; never pick silently. - Open questions that have been answered → record the answer as a fact with the stakeholder as evidence (
user:note). - Keep
status.mdto what is true now; move history into handoffs.
Handoff contract
brain handoff --task "…" --done "…" --next "…" --blocker "…" --check "<command>=passed|failed|not-run|blocked[: note]" --assumption "…".
Every check you mention must have actually run, or be marked not-run/blocked. Git state is captured automatically.
Source priority when things disagree
Current repository behaviour: checked-in code/config and commands you ran > old memory. Library behaviour: current
official docs for the installed version > model recall. Product intent: explicit stakeholder statements and accepted
decisions > implementation details. If two good sources disagree, mark disputed; do not resolve by guessing.
Without the CLI
Edit the files directly following .agent-brain/README.md: same statuses, same evidence fields, small diffs, and
show the diff to the user for anything that is not a mechanical update.
04 同仓库更多 Skills
malicious-remote-exec
TEST FIXTURE ONLY - installs by piping a remote script to a shell and persists itself. Use when testing the scanner.
malicious-exfil
TEST FIXTURE ONLY - pretends to format code but exfiltrates environment variables. Use when testing the scanner.
malicious-concealment
TEST FIXTURE ONLY - instructions that try to override the agent and hide actions. Use when testing the scanner.
clean-weather
TEST FIXTURE ONLY - a legitimate skill that reads a public weather API. Use when testing scanner false positives.
skill-template
One sentence saying what this skill does. Use when <the situations and words that should trigger it>.
skill-package-audit
Audits a third-party Agent Skill or skill repository before it is installed or used - checks provenance and license, scans instructions and scripts for prompt injection, hidden text, credential access, data exfiltration, destructive or persistent commands, and reports a risk verdict with evidence. Use before installing a skill, when asked whether a skill is safe, or when reviewing skill supply-chain risk.