Write one small, schema-clean entry into the repo's .knowledgebase/. If the repo has no .knowledgebase/, stop and tell the user to run the /setup-knowledgebase skill first.
-
Pick the type:
It is Type Path a claim about the system, true and worth not rediscovering finding .knowledgebase/entries/finding-<topic-kebab>.mda rule of behavior, usually born from a mistake learning .knowledgebase/entries/learning-<topic-kebab>.mda choice between alternatives, with a trade-off decision .knowledgebase/entries/decision-NNNN-<topic-kebab>.md -
Write the entry. The frontmatter fields, statuses, limits, and body conventions are in ENTRY-FORMAT.md; read it before writing. Worked examples ship in this plugin's
templates/directory. -
Check the status is honest. For findings and learnings:
verifiedonly when you proved the claim yourself in this session, and then setverified-by: agentand put the evidence in the body (a Source link or the check you ran). Anything you could not prove staysunverified; those are the entries the human is asked to verify in review. New decisions getstatus: decidedand come in two kinds:- Implementation decisions: fundamental choices you made yourself while building. Record them with the why and the trade-off, as
decided-by: agent. - Planning decisions: made together with the user, not inferable from the code. Record them as
decided-by: agenttoo, then hand the user the adopt line from the session-end report so the entry becomesdecided-by: human. Never setdecided-by: humanyourself; only a human does. Either kind can later besupersededby a newer decision.
- Implementation decisions: fundamental choices you made yourself while building. Record them with the why and the trade-off, as
-
If the entry is a learning that forbids a command, add a
guard:regex so the rule enforces itself. Guard-writing rules are in ENTRY-FORMAT.md; test the regex withgrep -Ebefore committing. -
Commit the entry on the same branch as the change that produced it, so it rides the same commit. Do not batch entries for later.