learn
Skill2 starsChanged 50 days agoMITView on GitHub
Extracts lessons learned from conversations and persists them to AI assistant config files (CLAUDE.md, GEMINI.md, AGENTS.md, Cursor, Copilot, Windsurf, Continue) or creates new skills from discovered workflows. Use this skill whenever: a command failed then succeeded (especially with a flag or env change), debugging revealed a workaround, an assumption proved wrong, undocumented behavior was discovered, a multi-step pattern was invented on the fly, or the user says "/learn", "remember this", "save this", "add this to CLAUDE.md", "don't forget this", or "make a skill for this". Also invoke proactively after any complex troubleshooting session where notable lessons emerged, even if the user didn't explicitly ask.
- Installs packages
193 other projects use a version of this.
Adopted by
Most recently taken up by
- Facta-Dev/beautifulqttheir own version, first seen Nov 29, 2026
- Facta-Dev/beautifulnodejstheir own version, first seen Nov 29, 2026
- pji2918/agent-skillstheir own version, first seen Nov 29, 2026
- daniel-kindl/dkstacktheir own version, first seen Nov 29, 2026
- newkirkjosh/skillstheir own version, first seen Nov 29, 2026
- Ertinox7711/SGRR-AGI-V2their own version, first seen Nov 29, 2026
Used with
Projects with it also use add-anydoc, add-clidash and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TomGranotSkilladd-anydoc
Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.
Also in 5 projects that use this
TomGranotSkilladd-clidash
Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.
Also in 5 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 14 projects that use this
MicrosoftSkilladd-codex
Use Codex (CLI + AppServer) as the full agent provider — planning, tool orchestration, native compaction, MCP tools, session resume — in place of the Claude Agent SDK. ChatGPT subscription or OPENAI_API_KEY. Per-group via agent_provider. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).
Also in 6 projects that use this
MicrosoftSkilladd-deltachat
Add DeltaChat channel integration via @deltachat/stdio-rpc-server. Native adapter — no Chat SDK bridge. Email-based messaging with end-to-end encryption.
Also in 6 projects that use this
- +5 more from TomGranot
- +2 more from microsoft
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- garrytan/gstack★ 143ksame name
- rohitg00/ai-engineering-from-scratch★ 81ksame name
- nanocoai/nanoclaw★ 31ksame name
- gavrielc/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- tigerless-labs/autoharness★ 11ksame name
- tw93/claude-health★ 7.7ksame name
- tw93/Waza★ 7.7ksame name
- nykooi1/vibe-wise★ 3.5ksame name
- HughYau/AcademicForge★ 2.6ksame name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- evals/CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- specs/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- compact-messageSkill
- js-depsSkill
- peer-reviewSkill
- pr-commentsSkill
- pr-human-guideSkill
- ship-itSkill
- uv-depsSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 169 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
If $ARGUMENTS is help, --help, -h, or ?, skip the workflow and read references/options.md.
- Very specific: line 32
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, …
- Very specific: line 51
No configs found → MANDATORY: read references/assistant-configs.md in full to show init commands, then exit.
- Distinctive: line 60
Default is reject. Each candidate learning must earn inclusion by passing three filters in order:
- Very specific: line 62
Would I forget this?: If any developer already knows it (npm install before npm start, commit before switching branches, read errors …
- Distinctive: line 63
Is this already covered?: Search existing config entries for the topic — if found, tightening the wording beats adding a second rule.
- Distinctive: line 66
Only candidates that survive all three get scanned for shape:
- Distinctive: line 70
Instruction violations: if the user had to remind you of something already in the config, the wording may need strengthening, not a new rule
- Distinctive: line 73
If nothing passes the filters, tell the user nothing non-obvious was found and exit — do not fabricate learnings to justify the invocation.
- Distinctive: line 119
If multiple learnings, list them all, then ask:
- Very specific: line 130
Route B — Existing skill: read skills/[name]/SKILL.md, append to the relevant section, maintain existing structure.
“Common” is measured: kept by at least 6 in 10 of the 169 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
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
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: //'; doneConfig detection:
- Single config found → use it
- Multiple configs found → MANDATORY: read
references/multiconfig-routing.mdin full to evaluate auto-skip vs. prompt before proceeding. - No configs found → MANDATORY: read
references/assistant-configs.mdin full to show init commands, then exit. Do NOT loadrefactoring.md,options.md, ormulticonfig-routing.mdat this step.
Size thresholds for any config file:
- < 400 lines: healthy, add directly
- 400–500 lines: add carefully, note the file is getting large
500 lines: MANDATORY: read
references/refactoring.mdin full before proceeding, then offer to refactor. Do NOT loadassistant-configs.mdfor this path unless also applying Route A changes.
2. Analyze Conversation
Default is reject. Each candidate learning must earn inclusion by passing three filters in order:
- Would I forget this? If any developer already knows it (
npm installbeforenpm start, commit before switching branches, read errors carefully), skip it. Baseline knowledge dilutes the config and trains agents to skim. - Is this already covered? Search existing config entries for the topic — if found, tightening the wording beats adding a second rule.
- Is this universal or local? Environment-specific workarounds (broken keyring, one repo's tooling quirk) must carry a scope qualifier, not be globalized.
Only candidates that survive all three get scanned for shape:
- Corrections: commands retried with a flag or env change, wrong assumptions corrected
- Discoveries: undocumented behavior, integration quirks, environment requirements
- Workflows: multi-step patterns invented during the session that should be repeatable
- Instruction violations: if the user had to remind you of something already in the config, the wording may need strengthening, not a new rule
- Contradictions: does this learning conflict with or supersede existing content? Flag for replacement, not addition — even if the user didn't call out the conflict
If nothing passes the filters, tell the user nothing non-obvious was found and exit — do not fabricate learnings to justify the invocation.
3. Route Each Learning
For each learning, ask: would someone invoke this by name? If you can imagine a user saying "run the [X] workflow," it's a skill. If not, it's a config entry.
- Is this a multi-step procedure someone would run as a workflow? If the learning has 3+ numbered steps that execute in sequence — even if project-specific — it belongs in a new skill. Deploy checklists, release runbooks, "add an X" workflows are all skills. Single facts and gotchas are config. If yes → Route C (new skill).
- Does an existing skill cover this topic? → Route B (update that skill)
- Is the config file oversized (>500 lines)? → Route C or offer refactoring
- Otherwise → Route A (config file)
The cleanest signal: if it takes more than one command to execute, it probably belongs in a skill; if it's a single fact to remember, it belongs in the config.
4. Preserve Cross-Config Sync Rules
Scope: Markdown-based configs only — CLAUDE.md, GEMINI.md, AGENTS.md, .github/copilot-instructions.md, .cursorrules, .windsurf/rules/rules.md. Out of scope: .cursor/rules/*.mdc and .continuerc.json (non-Markdown formats; mirror-rule detection there is a follow-up).
Within the Markdown scope, when multiple configs are present:
- Detect mirror-rule text in each detected config — patterns like
keep ... in sync,mirror ... to,apply the equivalent change to, near another config's filename. - Respect the Step 1 choice. Operate only on the configs the user chose. A mirror-rule in an unchosen config does not trigger fan-out — the user may have deliberately scoped this learning narrowly (e.g., the Copilot file is style-scoped).
- Preserve mirror-rule text during every edit. Do not clobber it with a section rewrite.
- Reciprocate. For any chosen config that lacks a mirror-rule referencing the other chosen configs, add one (e.g., add
Keep CLAUDE.md in sync: mirror rule changes back to CLAUDE.mdto the top of.github/copilot-instructions.mdif it had no reciprocal rule).
Why: The mirror-rule is load-bearing — it is how future sessions know to keep configs in sync. Silently updating one config without the other, or deleting the mirror-rule during a rewrite, lets the configs drift and the rule die. User choice still binds because narrower scoping is often legitimate.
5. Audit Rule Text
Split each drafted rule at sentence and em-dash boundaries. For every fragment, name what it contributes — rule, fix, non-obvious why, or concrete example — or cut it. Incident narratives, multi-clause rationales, and restated triggers fail the check.
Record the result in the next step's Cut in audit: line. If the user has to ask whether a draft is minimal, the audit was skipped, not just light.
6. Present Plan and Wait for Confirmation
Before showing the plan, deduplicate candidates by underlying observation. If two candidates describe the same fact under different routings (e.g., a CLAUDE.md bullet vs. a skill reference rule, or a kept candidate plus a "rejected alternative routing" of the same observation), pick exactly one route and drop the others — do not list rejected alternative routes for the same fact as separate items in the plan or rejection list. One observation, one row.
Then show everything you plan to do:
**[Category]**: [Brief description]
- Source: [what triggered this learning]
- Proposed change: [exact text to add, post-audit]
- Cut in audit: [clauses cut, or "none" + one-word defense per kept clause]
- Destination: [file] ([current lines] → [projected lines])If multiple learnings, list them all, then ask:
Ready to apply. Approve all, or review each one?Do not modify any files until the user responds to this step.
7. Apply Changes
Route A — Config file (CLAUDE.md, GEMINI.md, etc.): MANDATORY: read references/assistant-configs.md in full for format and section conventions before writing. Do NOT load refactoring.md for this route unless the file is also over 500 lines. Before appending, search the existing config for related content — if found, propose an update-in-place rather than a duplicate entry, and if the new rule contradicts an existing one, name the conflict explicitly in the summary (Principle 4). Then find the appropriate section, preserve existing structure, append or create a section. Apply Step 4's sync-rule preservation during every write.
Route B — Existing skill: read skills/[name]/SKILL.md, append to the relevant section, maintain existing structure.
Route C — New skill: create skills/[name]/SKILL.md. The description field determines whether the skill will ever be activated — it must state WHAT the skill does, WHEN to use it, and include trigger KEYWORDS (action verbs, file types, domain terms). A vague description like "helps with deployment" means the skill will never fire.
---
name: [topic]
description: [WHAT it does + WHEN to use it + trigger keywords]
---
# [Topic]
## Process
### 1. [First Step]
[Details]8. Summarize
List files modified with before/after line counts, sections updated or created, and any skills created with their names. If a contradiction was resolved, name it explicitly — which rule conflicted with which, and which version was kept. If cross-config sync rules were honored (preserved or reciprocated), mention that too.
Issues filed this session. Scan the session's tool-call history for gh issue create invocations and for any URLs matching https?://github\.com/[^/]+/[^/]+/issues/\d+ produced during the session. If any were filed, render them under an Issues filed this session subheading, one bullet per issue:
### Issues filed this session
- #301 — CI: split verify-pr.yaml into per-stack workflows
https://github.com/owner/repo/issues/301Omit the subheading entirely if none were filed. Deduplicate by the (owner, repo, number) tuple (or equivalently the canonical issue URL) — sessions that touch multiple repos can produce the same issue number under different owner/repo paths, so number-only dedup would incorrectly merge unrelated entries. The title may not always be recoverable from session output — when missing, omit the — <title> segment and keep the URL.
Principles
- Reject noise; include only non-obvious lessons. A bloated config trains agents to skim. If any developer already knows it ("npm install before npm start", "commit before switching branches"), skip it — and say which items you rejected so the user can override.
- Annotate scope; never globalize a one-off fix. A workaround that worked today may harm tomorrow's session if the environment differs. Label the condition that triggered the fix (broken keyring, specific macOS version, this repo's build quirk) so future agents can decide whether it applies. Use qualifiers like "when X fails" or "as a fallback after Y", not unconditional "always use Z" phrasing.
- One topic, one location. If a rule already exists anywhere in the config or a skill, update that entry. Two entries on the same topic create ambiguity — the agent follows whichever it reads first, which may be the weaker version. Tightening the existing wording beats appending a parallel bullet.
- Surface contradictions; never silently duplicate or replace. If a learning conflicts with existing content, propose replacement with the conflict named explicitly in the plan and summary ("this supersedes the existing X rule because Y"). A silent replace leaves the user unaware the rule changed; silent duplicates cause inconsistent agent behavior depending on which one is read first.
- Minimum viable rule text. Every clause must be load-bearing — the rule, the fix, a non-obvious "why", or a concrete example. Draft, then audit with "is this the min chars necessary?" Cut any clause you can't defend.
`cd dir && cmd` (skips cmd if cd fails)beats a paragraph on shell exit semantics; incident narratives and multi-clause consequences belong in commit messages, not the rule body.
NEVER write vague learnings — "be careful with deployments" teaches nothing; "run smoke tests against staging before promoting to prod because the CDN cache masks broken assets" is actionable and explains why. This one hard prohibition remains NEVER because specificity is the single non-negotiable input to every other principle.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

