# Learn

Distill a reusable skill from anything, a directory, a URL, pasted notes, or what you...

- Repository: https://github.com/nanocoai/nanoclaw (31069 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nanocoai/nanoclaw --skill learn -g -a claude-code -y`
Codex: `npx skills add nanocoai/nanoclaw --skill learn -g -a codex -y`
Cursor: `npx skills add nanocoai/nanoclaw --skill learn -g -a cursor -y`
Gemini CLI: `npx skills add nanocoai/nanoclaw --skill learn -g -a gemini-cli -y`

## Description

Distill a reusable skill from anything, a directory, a URL, pasted notes, or what you just did together, or refine an existing skill with new learnings. Use when the user says '/learn', 'learn this', 'turn this into a skill', 'capture this workflow', 'make a skill from <source>', or 'improve/update the <name> skill'. Produces or updates a .claude/skills/<name>/SKILL.md authored to NanoClaw's skill guidelines. (This CREATES or REFINES a skill from a source; it does not install existing skills from a registry.)

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Learn, Distill a Skill from Anything

Turn a source, a directory, a URL, pasted notes, or the work just done in this conversation, into a clean, reusable NanoClaw skill. The output is a new `.claude/skills/<name>/SKILL.md` (plus optional `scripts/`, `references/`, `templates/`) authored to the project's skill guidelines.

This skill is **instruction-only**: it uses the tools you already have (`Read`, `Grep`, `Glob`, `WebFetch`, `Write`), there is no separate distillation engine and no reach-ins into core code.

## When to use

Invoke when the user wants to *capture* a workflow as a reusable skill:

- `/learn <path>`, read a project/dir and build a skill for working with it
- `/learn <url>`, read docs / an API page and build a usage skill
- `/learn what we just did`, distill the current conversation's workflow
- `/learn` + pasted notes, turn notes into a structured skill

If the user instead wants to *find and install* an existing community skill, that is a different task, this skill **creates** new skills, it does not import them.

## Workflow

### 1. Identify the source, and whether this is a new skill or a refine
- A **path** → read the code/files.
- A **URL** → fetch and read the page.
- **"what we just did" / "this"** → use the current conversation as the source.
- **Pasted text** → use it directly.

Then check `.claude/skills/` for an existing skill that already covers this topic (the user may name it, e.g. *"update the wow-on-steam-deck skill"*, or the subject may obviously match one). **If one exists, this is a REFINE, not a fresh create**, go to step 4's "Refining" branch.

If it is ambiguous what the skill should *do*, ask one clarifying question before proceeding.

The rest: https://github.com/nanocoai/nanoclaw/blob/HEAD/.claude/skills/learn/SKILL.md
