learn

learn is a skill for Claude Code from nanocoai/nanoclaw. It costs 128 tokens per session (1,471 once invoked), scanned A, original, MIT.

A guide for turning a directory, web page, notes, or completed work into a reusable NanoClaw skill. A skill is a set of instructions an agent can follow for a particular workflow.

In plain words
What is it for?
Use it to create or improve skills from project files, URLs, pasted notes, or the workflow completed in the current conversation.
Why use it?
It preserves a useful process so it can be repeated consistently instead of reconstructed from memory each time. It can also refine an existing skill with new findings.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

About the project

NanoClaw is an AI assistant that runs agents inside separate Linux containers, isolating their files and execution environments. People use it to connect agents to messaging services and run assistants with memory and scheduled jobs. The catalogue contains skills and instructions for extending or operating NanoClaw.

nanocoai/nanoclaw · 30,703 stars · on GitHub · nanoclaw.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nanocoai/nanoclaw/learn
Any agent
npx skills add nanocoai/nanoclaw --skill learn
Clone the repo
git clone --depth 1 https://github.com/nanocoai/nanoclaw

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/nanocoai/nanoclaw/learn.svg)](https://agentmods.dev/skills/nanocoai/nanoclaw/learn)
Your own site
<a href="https://agentmods.dev/skills/nanocoai/nanoclaw/learn"><img src="https://agentmods.dev/badge/skills/nanocoai/nanoclaw/learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.01471
Opus 5 $0.00064 $0.00736
Sonnet 5 $0.00026 $0.00294
Haiku 4.5 $0.00013 $0.00147

Measured 6d ago against content hash 944c717924af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

learn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/learn/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

2. Gather the material

  • Path: Glob the structure, Read the key files, Grep for the important entry points. Read enough to understand the repeatable procedure, not every line.
  • URL: WebFetch the page; pull out the concrete commands/steps, not the prose.
  • Conversation: re-read what was actually done — the commands, the gotchas, the decisions — and keep the parts that generalize.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 98 lines · 128 tokens per session scan A 944c717924af

Subscribe to this mod's changes

learn is a skill published in the GitHub repository nanocoai/nanoclaw (30,703 stars, last pushed yesterday), licensed MIT. It adds 128 tokens to every session and 1,471 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.