harvest
Agent skill fromhuytieu/COG-second-brain
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.
How to install harvest
install harvest
# install the COG-second-brain pack with the skills CLI
npx skills add huytieu/COG-second-brain# or add only this skill to Claude Code: copy the folder
skills/harvest/
# into
~/.claude/skills/harvest/ (all projects)
.claude/skills/harvest/ (one project)
1# /harvest — session learning capture23Adapted from dwarves-kit `harvest` hook + vault lizard pipeline. Prevents tacit knowledge dying in the transcript.45## Triggers67- `/harvest` — manual end-of-session8- `/harvest promote` — curate staging → lizard drafts (uses harvest-curator)9- Staging file written by `stop` hook (`.cursor/hooks/harvest-stager.sh`)1011## Phase 1 — Collect (automatic or manual)1213Scan the current session for:14151. **Corrections you made** ("no, actually X", rejected deliverables)162. **New stable facts** (IDs, URLs, decisions) not yet in 05-knowledge173. **Process lessons** (what worked, what failed, friction)184. **Skill gaps** (something that should be a Verify step or CLAUDE.md rule)1920Append to `04-projects/harness/harvest/staging-<YYYY-MM-DD>.md`:2122```markdown23## <HH:MM> — <trigger>24- type: correction|fact|process|skill-gap25- source: <file or "session">26- text: <one paragraph max>27- proposed_home: <path or "new lizard note">28```2930Dedup: skip if same fact already in staging today or in 05-knowledge.3132## Phase 2 — Curate (`/harvest promote`)3334Spawn `harvest-curator` (Sonnet). It writes `/tmp/harvest-curate-<date>.md`.3536Lead (Opus) presents to the user:3738- **Promote** list → approve which become `05-knowledge/lizard/YYYY-MM-DD-<slug>.md`39- **Fold** list → approve inline edits to existing notes40- **Skill patches** → approve CLAUDE.md / SKILL.md diffs4142Only after approval: write durable files. Update `05-knowledge/lizard/index.md`.4344## Phase 3 — Retro line45…
Excerpt shown under the repository's MIT license.
