Learn

From aiskillstore/marketplace · View interactive version

Learn is an AI agent skill from the GitHub repository aiskillstore/marketplace. Extract and persist insights from the current conversation to the knowledge base

How to use this skill

Skill file

Learn

Extract insights from the current conversation and persist them to the project's knowledge base.

Usage

/learn          # Quick extraction from recent conversation
/learn --deep   # Thorough analysis with forked context (uses Explore agent)

--deep Mode

When --deep is specified, the extraction runs in a forked context using the Explore agent:

Use --deep when you've had a significant debugging session or made architectural decisions you want fully documented.

What This Does

Analyzes the conversation context to identify:

These insights survive session boundaries and context compaction, building a persistent understanding of the project over time.

Instructions

  1. Analyze the conversation looking for:
  1. Categorize each insight as pattern, quirk, or decision
  1. Format and append to the appropriate file in knowledge/learnings/:
  1. Update metadata in each file's frontmatter (entry_count, last_updated)
  1. Update state in knowledge/state.json:
  1. Report what was learned to the user

Entry Format

Pattern Entry

## Pattern: [Short descriptive title]
- **Discovered:** [ISO date]
- **Context:** [What task/problem led to this discovery]
- **Insight:** [What approach works well and why]
- **Confidence:** high|medium|low

Quirk Entry

## Quirk: [Short descriptive title]
- **Discovered:** [ISO date]
- **Location:** [File/module/area where this applies]
- **Behavior:** [What's unusual or unexpected]
- **Workaround:** [How to handle it]
- **Confidence:** high|medium|low

Decision Entry

## Decision: [Short descriptive title]
- **Made:** [ISO date]
- **Context:** [What prompted this decision]
- **Choice:** [What was decided]
- **Rationale:** [Why this choice over alternatives]
- **Confidence:** high|medium|low

Confidence Levels

Only high and medium confidence insights influence routing decisions.

Steps

  1. Review the conversation for extractable insights
  2. For each insight found:
  1. Read and update knowledge/state.json
  2. Report summary to user:

```

Knowledge Extraction Complete

─────────────────────────────

Extracted:

[Pattern] "Title of pattern learned"

[Quirk] "Title of quirk discovered"

[Decision] "Title of decision recorded"

Knowledge base now contains:

```

Example Extraction

From a conversation where we debugged an auth issue:

Quirk extracted:

## Quirk: Auth tokens require base64 padding
- **Discovered:** 2026-01-08
- **Location:** src/auth/tokenService.ts
- **Behavior:** JWT tokens in this codebase use non-standard base64 without padding, causing standard decoders to fail
- **Workaround:** Use the custom `decodeToken()` helper instead of atob()
- **Confidence:** high

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.