Skip to content
Back to skills

Harvest

ASecurity

Capture durable session learnings, stage for human promotion to 05-knowledge/lizard, and propose skill/CLAUDE.md patches. Triggered by /harvest or a scheduled enhance run that you set up. Never writes durable knowledge without your approval.

  • 1,559 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
ai-agents

Security analysis

A100/100

Scanned December 3, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Harvest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Harvest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huytieu-harvest-cog-second-brain/badge)](https://www.skillsdirectory.com/skills/huytieu-harvest-cog-second-brain)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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 or a scheduled enhance run that you set up. Never writes
  durable knowledge without your approval.
roles: [all]
integrations: []
---

# /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)
- A staging file that a session-end hook of your own writes, if you set one up (COG ships no harvest hook)

## 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`:

```markdown
## <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. The optional safety hooks in `docs/hooks.md` are separate and not needed here.

```
/memory-hygiene
/harvest promote     # only if the staging file is non-empty
/content-factory     # only if scheduled
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.