---
name: Learning Capture
slug: learning-capture
category: Automation
description: Learning Capture logs corrections, tool failures, and non-obvious discoveries to orbital/LESSONS.md. Use it before repeating a task so future sessions can apply relevant lessons.
github: "https://github.com/zqiren/Orbital/tree/main/agent_os/default_skills/learning-capture"
language: Python
stars: 251
forks: 17
install: "npx degit https://github.com/zqiren/Orbital/tree/main/agent_os/default_skills/learning-capture ~/.claude/skills/learning-capture"
installs_to: ~/.claude/skills/learning-capture
source_path: agent_os/default_skills/learning-capture/SKILL.md
collection_size: 4
category_size: 1648
collection_url: "https://dirskills.com/collections/zqiren/Orbital"
added: 2026-09-02T05:20:54.987Z
last_synced: 2026-09-02T05:20:54.987Z
canonical_url: "https://dirskills.com/skills/learning-capture"
---

# Learning Capture

Learning Capture logs corrections, tool failures, and non-obvious discoveries to orbital/LESSONS.md. Use it before repeating a task so future sessions can apply relevant lessons.

**Install:**

```bash
npx degit https://github.com/zqiren/Orbital/tree/main/agent_os/default_skills/learning-capture ~/.claude/skills/learning-capture
```

## README

# Learning Capture

Log corrections, errors, and discoveries to orbital/LESSONS.md so future sessions avoid repeating mistakes.

## When to Use

Activate this skill whenever one of three triggers fires:

1. **User correction** -- the user says "no, do X instead" or "that's wrong."
   Log what you did, what the user wanted, and the corrected approach.

2. **Tool failure recovery** -- a tool call fails and you find a working
   alternative. Log the failing call, the error, and the fix.

3. **Non-obvious discovery** -- you learn something surprising about the
   project (e.g., a config file that overrides defaults, an undocumented
   API quirk). Log the finding and where you found it.

## Approach

### Read before act

Before starting any task type you have attempted in a previous session,
read `orbital/LESSONS.md` with the `read` tool and scan for entries
whose category or keywords match the current task. Apply any relevant
lessons before your first action.

### Entry format

Append one block per lesson. Use this exact structure:

```
### YYYY-MM-DD — <category>
**What happened:** <1-2 sentences>
**Do instead:** <1-2 sentences>
**Keywords:** <comma-separated tags for future search>
```

Categories (pick one): `correction`, `error-recovery`, `discovery`.

### Writing the entry

- Use the `edit` tool to append to `orbital/LESSONS.md`.
  If the file does not exist, create it with the `write` tool.
- Keep each entry under 100 words. Precision beats length.
- Include enough context that a future agent session can act on the
  lesson without re-reading chat history.

## Anti-patterns

- **Do NOT log trivial observations.** "The project uses Python 3.12"
  is not a lesson. Only log things that caused or would cause a mistake.
- **Do NOT log every tool failure.** Typos in a filename are not worth
  capturing. Only log failures where the recovery path was non-obvious.
- **Do NOT duplicate entries.** Read the file first; if a matching lesson
  already exists, skip or update it rather than appending a duplicate.
- **Do NOT include full stack traces.** Summarize the error in one line.
