Tooluck logoTooluck
SKILL.md

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)

skills/harvest/SKILL.md

MITFull file
1# /harvest — session learning capture
2
3Adapted from dwarves-kit `harvest` hook + vault lizard pipeline. Prevents tacit knowledge dying in the transcript.
4
5## Triggers
6
7- `/harvest` — manual end-of-session
8- `/harvest promote` — curate staging → lizard drafts (uses harvest-curator)
9- Staging file written by `stop` hook (`.cursor/hooks/harvest-stager.sh`)
10
11## Phase 1 — Collect (automatic or manual)
12
13Scan the current session for:
14
151. **Corrections you made** ("no, actually X", rejected deliverables)
162. **New stable facts** (IDs, URLs, decisions) not yet in 05-knowledge
173. **Process lessons** (what worked, what failed, friction)
184. **Skill gaps** (something that should be a Verify step or CLAUDE.md rule)
19
20Append to `04-projects/harness/harvest/staging-<YYYY-MM-DD>.md`:
21
22```markdown
23## <HH:MM> — <trigger>
24- type: correction|fact|process|skill-gap
25- source: <file or "session">
26- text: <one paragraph max>
27- proposed_home: <path or "new lizard note">
28```
29
30Dedup: skip if same fact already in staging today or in 05-knowledge.
31
32## Phase 2 — Curate (`/harvest promote`)
33
34Spawn `harvest-curator` (Sonnet). It writes `/tmp/harvest-curate-<date>.md`.
35
36Lead (Opus) presents to the user:
37
38- **Promote** list → approve which become `05-knowledge/lizard/YYYY-MM-DD-<slug>.md`
39- **Fold** list → approve inline edits to existing notes
40- **Skill patches** → approve CLAUDE.md / SKILL.md diffs
41
42Only after approval: write durable files. Update `05-knowledge/lizard/index.md`.
43
44## Phase 3 — Retro line
45…

Excerpt shown under the repository's MIT license.

More skills in COG-second-brain

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates