Skip to content
Productivity
Skill

/harvest

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.

From plugin
cog-second-brain
1.5k43 skills10 agents

Claude Code

$ npx -y skills add huytieu/COG-second-brain --skill harvest --agent claude-code

SKILL.md

harvest.SKILL.md
name: harvest
description: >
  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.

/harvest — session learning capture

Adapted from dwarves-kit `harvest` hook + vault lizard pipeline. Prevents tacit knowledge dying in the transcript.

Triggers

  • `/harvest` — manual end-of-session
  • `/harvest promote` — curate staging → lizard drafts (uses harvest-curator)
  • Staging file written by `stop` hook (`.cursor/hooks/harvest-stager.sh`)

Phase 1 — Collect (automatic or manual)

Scan the current session for:

1. **Corrections you made** ("no, actually X", rejected deliverables) 2. **New stable facts** (IDs, URLs, decisions) not yet in 05-knowledge 3. **Process lessons** (what worked, what failed, friction) 4. **Skill gaps** (something that should be a Verify step or CLAUDE.md rule)

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.

Phase 2 — Curate (`/harvest promote`)

Spawn `harvest-curator` (Sonnet). It writes `/tmp/harvest-curate-<date>.md`.

Lead (Opus) presents to the user:

  • **Promote** list → approve which become `05-knowledge/lizard/YYYY-MM-DD-<slug>.md`
  • **Fold** list → approve inline edits to existing notes
  • **Skill patches** → approve CLAUDE.md / SKILL.md diffs

Only after approval: write durable files. Update `05-knowledge/lizard/index.md`.

Phase 3 — Retro line

One line to `01-daily/journal/<today>.md`:

Harvest: <n> staged, <m> promoted, <k> folded

Rules

  • Harvest is **advisory**. It never auto-writes 05-knowledge.
  • Contradictions with existing knowledge → flag both, ask the user.
  • Pair with `/memory-hygiene` monthly for environment-dependent facts in `~/.claude/.../memory/`.

Nightly enhance (optional)

If you want harvest to run unattended, schedule a job that invokes the skills in this order. There is nothing to install first, since COG ships no hooks.

/memory-hygiene
/harvest promote     # only if the staging file is non-empty
/content-factory     # only if scheduled
Read more
@huytieu
Ships withcog-second-brain

Cognition + Obsidian + Git — A self-evolving second brain powered by AI agents, markdown files, and version control. No database, no vendor lock-in — just .md files that think.

1.5k43 skills10 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.5k
Star history of huytieu/COG-second-brain on GitHub, a chart by star-history.com

Other skills on cog-second-brain.

auto-research

auto-research

Deep strategic research engine — decomposes questions into parallel research threads, spawns multiple agents, and synthesizes…

blog-publish

blog-publish

Write and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII…

closed-loop

closed-loop

Run one task through the V-model verification loop: CP-2 plan → CP-3 build → CP-3v component verify → CP-4 integration verify…

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills12d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about harvest.

Which coding agents can use harvest?
harvest installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.