> Capture durable session learnings, stage for human promotion to 05-knowledge/lizard, and propose skill/CLAUDE.md patches. Triggered by /harvest, SessionEnd hook staging, or nightly enhance. Never writes durable knowledge without your approval.
npx skills add https://github.com/huytieu/COG-second-brain --skill harvest
Adapted from dwarves-kit harvest hook + vault lizard pipeline. Prevents tacit knowledge dying in the transcript.
/harvest — manual end-of-session/harvest promote — curate staging → lizard drafts (uses harvest-curator)stop hook (.cursor/hooks/harvest-stager.sh)Scan the current session for:
Append to 04-projects/harness/harvest/staging-<YYYY-MM-DD>.md:
## <HH:MM> — <trigger>
- type: correction|fact|process|skill-gap
- source: <file or "session">
- text: <one paragraph max>
- proposed_home: <path or "new lizard note">
Dedup: skip if same fact already in staging today or in 05-knowledge.
/harvest promote)Spawn harvest-curator (Sonnet). It writes /tmp/harvest-curate-<date>.md.
Lead (Opus) presents to the user:
05-knowledge/lizard/YYYY-MM-DD-<slug>.mdOnly after approval: write durable files. Update 05-knowledge/lizard/index.md.
One line to 01-daily/journal/<today>.md:
Harvest: <n> staged, <m> promoted, <k> folded
/memory-hygiene monthly for environment-dependent facts in ~/.claude/.../memory/.# 04-projects/harness/scripts/nightly-enhance.sh
bash .claude/lib/install-harness.sh --check # hooks alive
# /memory-hygiene (skill)
# /harvest promote if staging non-empty
# content-factory if scheduled
Take huytieu/cog-second-brain-harvest from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.