Agent skill · AI & Agents

extract

Extract decisions and learnings from Claude session transcripts. Triggers: "extract learnings", "process pending", SessionStart hook.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill extract --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Path: skills/analysis/extract/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Extract Skill **Typically runs automatically via SessionStart hook.** Process pending learning extractions from previous sessions. ## How It Works The SessionStart hook runs: ```bash ao extract ``` This checks for queued extractions and outputs prompts for Claude to process. ## Manual Execution Given `/extract`: ### Step 1: Check for Pending Extractions ```bash ao extract 2>/dev/null ``` Or check the pending queue: ```bash cat .agents/ao/pending.jsonl 2>/dev/null | head -5 ``` ### Step 2: Process Each Pending Item For each queued session: 1. Read the session summary 2. Extract actionable learnings 3. Write to `.agents/learnings/` ### Step 3: Write Learnings **Write to:** `.agents/learnings/YYYY-MM-DD-<session-id>.md` ```markdown # Learning: <Short Title> **ID**: L1 **Category**: <debugging|architecture|process|testing|security> **Confidence**: <high|medium|low> ## What We Learned <1-2 sentences describing the insight> ## Why It Matters <1 sentence on impact/value> ## Source Session: <session-id> ``` ### Step 4: Clear the Queue ```bash ao extract --clear 2>/dev/null ``` ### Step 5: Report Completion Tell the user: - Number of learnings extracted - Key insights - Location of learni

What's inside
Steps it walks through
  1. How It Works
  2. Manual Execution
  3. Step 1: Check for Pending Extractions
  4. Step 2: Process Each Pending Item
  5. Step 3: Write Learnings
  6. Step 4: Clear the Queue
  7. Step 5: Report Completion
  8. The Knowledge Loop
  9. Key Rules
Ships with 1 file
  • metadata.json
Commands it runs
ao extract
ao extract 2>/dev/null
cat .agents/ao/pending.jsonl 2>/dev/null | head -5
ao extract --clear 2>/dev/null
More from claude-skill-registry
All skills →
About this skill
What does the extract skill do?

Extract decisions and learnings from Claude session transcripts. Triggers: "extract learnings", "process pending", SessionStart hook.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill extract --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going