State: LEARN
Maintain source-backed project knowledge.
Use when ingesting sources or updating durable project knowledge.
Do not use when the request needs implementation, launch approval, or ungrounded memory capture before source-backed facts are checked.
Source material, target knowledge area, staleness or ownership notes, known facts, assumptions, constraints, evidence, and approval state.
If required inputs are missing, ask at most three blocking questions or state explicit assumptions and risk. In noninteractive runs where the agent cannot ask questions, use the safest documented default or stop with a blocker when ambiguity changes the action.
wiki-maintenancefromskills/wiki-maintenance/SKILL.mdto update project knowledge from checked sources.activity-recapfromskills/activity-recap/SKILL.mdwhen local repository history or recent changes must be summarized before updating knowledge.evidence-researchfromskills/evidence-research/SKILL.mdwhen the update depends on external claims or freshness.
- Inspect
git status --shortand preserve user changes before modifying files, running write-capable tools, or trusting generated artifacts. - Treat
/brain-wikias a markdown command spec unless the active runtime proves native command support. - Check the source material, target knowledge area, owner, and staleness risk.
- Use
wiki-maintenance; addactivity-recapfor recent local repo evidence andevidence-researchfor external claims or freshness. - Update project knowledge with citations, decisions, and open questions.
- Produce a Wiki Update summarizing changed pages, evidence, and follow-up.
- Stop if sources are missing, conflicting, or too weak for a durable knowledge update.
Required artifact: Wiki Update using templates/wiki-update.md.
The output must include:
- decision or finding,
- evidence,
- fresh validation proof,
- assumptions,
- risks,
- open questions,
- next recommended state.
- artifact path.
Stop and ask for human input when:
In noninteractive runs where the agent cannot ask questions, use the safest documented default only when it preserves scope and safety; otherwise stop with a blocker.
- the proposed wiki fact lacks a stable source, owner, or freshness date,
- the update would expose private project context, secrets, customer data, or internal-only notes,
- existing docs conflict and the durable source of truth is unclear,
- the change would replace maintained guidance instead of linking or reconciling it,
- no validator, review, or freshness check can keep the wiki entry from going stale.
A good /brain-wiki run updates durable project knowledge only after evidence and fresh validation proof are checked, links it to the relevant command or skill, and avoids turning temporary session context into permanent doctrine.
User request: update durable project guidance from checked evidence. Selected command: /brain-wiki. Command file: commands/brain-wiki.md. Loaded skills: wiki-maintenance, activity-recap, and evidence-research. Skill files: skills/wiki-maintenance/SKILL.md, skills/activity-recap/SKILL.md, and skills/evidence-research/SKILL.md. Artifact: write templates/wiki-update.md. Verification: preserve neutral copy, cite source-backed evidence, validate changed docs, and record fresh validation proof before handoff. Stop condition: stop if provenance, freshness, or durable value is missing. Next state: LEARN.