learnlisted
Install: claude install-skill WhatIfWeDigDeeper/agent-skills
# Learn from Conversation
Analyze the conversation to extract lessons learned, then persist them to AI assistant configuration files or new skills.
## Arguments
Optional text to narrow what to learn (e.g. `sandbox workaround`, `that build fix`).
If `$ARGUMENTS` is `help`, `--help`, `-h`, or `?`, skip the workflow and read [references/options.md](references/options.md).
If `$ARGUMENTS` is a non-empty, non-help string, use it as a focus filter in Step 2: only surface learnings related to the specified topic, skip unrelated findings.
## Process
### 1. Detect Configurations and Existing Skills
```bash
for f in CLAUDE.md GEMINI.md AGENTS.md .cursorrules .github/copilot-instructions.md \
.windsurf/rules/rules.md .continuerc.json; do
[ -f "$f" ] && wc -l "$f"
done
find .cursor/rules -name "*.mdc" -exec wc -l {} \; 2>/dev/null
find . -name "SKILL.md" -type f 2>/dev/null | grep -v node_modules | \
xargs grep -l "^name:" | while read -r f; do grep -m1 "^name:" "$f" | sed 's/name: //'; done
```
**Config detection:**
- Single config found → use it
- Multiple configs found → **MANDATORY: read [`references/multiconfig-routing.md`](references/multiconfig-routing.md) in full** to evaluate auto-skip vs. prompt before proceeding.
- No configs found → **MANDATORY: read [`references/assistant-configs.md`](references/assistant-configs.md) in full** to show init commands, then exit. Do NOT load `refactoring.md`, `options.md`, or `multiconfig-routing.md` at this step.
**Size thresho