Automated summary
Extracts and persists insights from the current conversation to the project's knowledge base.
Strengths
- Automatically captures project decisions, patterns, and quirks
- Persists knowledge across sessions and context compaction
- --deep mode uses Explore agent for thorough cross-referencing
- Clear categorization into patterns, quirks, and decisions
Limitations
- Requires existing knowledge base structure (knowledge/learnings/)
- Potential duplicate entries if similar insights are not detected
- No conflict resolution or manual merging of files
Use this skill after a significant debugging session, architectural decision, or when discovering unexpected behaviors in the codebase.
Avoid using it for trivial conversations with no persistent value, as it clutters the knowledge base with low-confidence entries.
Security analysis
SafeThe skill only writes extracted insights to local markdown files and a JSON state file. It does not invoke external tools, execute shell commands, or exfiltrate data. There is no direct execution risk.
No concerns found
How this analysis is madeExamples
/learn/learn --deepExtract insights from our session on the authentication bug into the knowledge base.name: learn description: Extract and persist insights from the current conversation to the knowledge base user_invokable: true
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:
- More thorough codebase analysis to find related patterns
- Cross-references with existing knowledge
- Validates discoveries against actual code
- Keeps analysis chatter out of your main conversation
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:
- Patterns: Approaches that worked well in this project
- Quirks: Project-specific oddities or non-standard behaviors discovered
- Decisions: Architectural or implementation choices made with their rationale
These insights survive session boundaries and context compaction, building a persistent understanding of the project over time.
Instructions
-
Analyze the conversation looking for:
- Successful problem-solving approaches that could apply again
- Unusual behaviors or gotchas discovered about the codebase
- Decisions made and why (architectural choices, library selections, patterns chosen)
-
Categorize each insight as pattern, quirk, or decision
-
Format and append to the appropriate file in
knowledge/learnings/:patterns.md- What works wellquirks.md- Unexpected behaviorsdecisions.md- Choices with rationale
-
Update metadata in each file's frontmatter (entry_count, last_updated)
-
Update state in
knowledge/state.json:- Set
last_extractionto current timestamp - Increment
extraction_count
- Set
-
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
- high: Clear, verified insight with strong evidence
- medium: Reasonable inference, likely correct
- low: Tentative observation, needs validation
Steps
- Review the conversation for extractable insights
- For each insight found:
- Read the target file (patterns.md, quirks.md, or decisions.md)
- Check for duplicates (skip if similar insight exists)
- Append new entry in the format above
- Update frontmatter (increment entry_count, set last_updated)
- Read and update
knowledge/state.json - 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: - X patterns - Y quirks - Z decisions
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
- This command extracts insights from the CURRENT conversation
- For continuous extraction, use
/learn-oninstead - Insights should be project-specific, not generic programming knowledge
- Avoid extracting obvious or trivial information
- When in doubt about confidence, use "medium"
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/learn-knowledge-extraction-mmk3ni5g/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/learn-knowledge-extraction-mmk3ni5g' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/learn-knowledge-extraction-mmk3ni5g/download' --output '.skill-downloads/learn-knowledge-extraction-mmk3ni5g/SKILL.md.part' && mv '.skill-downloads/learn-knowledge-extraction-mmk3ni5g/SKILL.md.part' '.skill-downloads/learn-knowledge-extraction-mmk3ni5g/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/learn-knowledge-extraction-mmk3ni5g/SKILL.md' && test -s '.skill-downloads/learn-knowledge-extraction-mmk3ni5g/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/learn' && cp -R '.skill-downloads/learn-knowledge-extraction-mmk3ni5g' '.claude/skills/learn'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/learn-knowledge-extraction-mmk3ni5g'openskills read 'learn-knowledge-extraction-mmk3ni5g'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/learn-knowledge-extraction-mmk3ni5g/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Supabase Docs Authoring
Documentation
Write, edit, and review Supabase documentation content including guides, tutorials, reference docs, and partials. Follow style guides and MDX/TOML validation rules.
Create Architecture Decision Record
Documentation
Create a new Architecture Decision Record with sequential numbering, register it in the AgentDB graph, and link related ADRs.
Plan update with deep research
Documentation
Updates a plan document by launching parallel subagents to analyze a topic across all compiler passes, then consolidates findings into the plan doc.