Record a lesson learned into crates/AGENTS.md (CONVENTIONS or ANTI-PATTERNS section).

AGPL-3.0Auto-check passedAgent Workflows

Install Learn

skills CLI
$ npx skills add UniClipboard/UniClipboard --skill learn -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install UniClipboard/UniClipboard learn --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/UniClipboard/UniClipboard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/learn .claude/skills/learn && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
learn
GitHub stars
1.9k
Token cost
~1.1k tokens
SKILL.md length
541 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Record a lesson learned into crates/AGENTS.md (CONVENTIONS or ANTI-PATTERNS section).

  • Works in 6 steps: Identify the Lesson Type → Qualify the Lesson → Draft the Entry → …
  • Says remember this about a coding pattern
  • SKILL.md covers When to Use, Procedure, What NOT to Record Here and Examples
  • Calls cargo

What it does

Learn is an agent skill from UniClipboard/UniClipboard. Record a lesson learned into crates/AGENTS.md (CONVENTIONS or ANTI-PATTERNS section). Use after discovering a project-specific gotcha, resolving a tricky bug, or when the user says 'remember this' about a coding pattern. Append one concise rule that will prevent the same mistake in future sessions.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: Real-time clipboard sync across all your devices — local-first, peer-to-peer, and end-to-end encrypted. No account. No cloud dependency. No central server. The licence is AGPL-3.0.

When your agent uses it

  • Says remember this about a coding pattern
  • Tasks that involve Agent instruction files

Example prompts

  • “remember this”
  • “/learn”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Identify the Lesson Type
  2. Qualify the Lesson
  3. Draft the Entry
  4. Append to the Right Section
  5. Trim if Needed
  6. Confirm

What it can do on your machine

Read from SKILL.md and the folder at commit 101ffb3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Learn loads about 1.1k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 541 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from UniClipboard/UniClipboard at commit 101ffb3, republished under its AGPL-3.0 licence (© UniClipboard). 541 words, ~1,070 tokens.

Download SKILL.mdSave it as .claude/skills/learn/SKILL.md (or your agent's skills folder).
name
learn
description
Record a lesson learned into crates/AGENTS.md (CONVENTIONS or ANTI-PATTERNS section). Use after discovering a project-specific gotcha, resolving a tricky bug, or when the user says 'remember this' about a coding pattern. Append one concise rule that will prevent the same mistake in future sessions.

Learn — Record a Lesson

Append a project-specific lesson to crates/AGENTS.md so future sessions avoid the same mistake.

When to Use

  • After resolving a bug caused by a project-specific gotcha
  • When the user explicitly says "remember this", "don't do that again", "add this to rules"
  • After discovering a convention that differs from Rust/React defaults
  • When a code review reveals a recurring pattern mistake
  • Use PROACTIVELY when you notice you made an avoidable mistake that a rule would have prevented

Procedure

Step 1 — Identify the Lesson Type
TypeTarget SectionCriteria
Convention## CONVENTIONS"Do X this way" — a positive pattern to follow
Anti-pattern## ANTI-PATTERNS"Never do Y" — a thing that looks correct but breaks
Step 2 — Qualify the Lesson

Before adding, verify ALL of these:

  1. Project-specific: Would a competent Rust/React developer NOT know this without seeing this codebase? If it's general knowledge (e.g., "don't unwrap in async"), DON'T add it.
  2. Actionable: Can it be stated as a clear do/don't rule? If it requires paragraphs of explanation, it belongs in docs/, not AGENTS.md.
  3. Not already covered: Check existing CONVENTIONS and ANTI-PATTERNS entries. No duplicates.
  4. Not derivable from code: If cargo check or a linter would catch it, DON'T add it.

If any check fails, inform the user why you're not adding it (or suggest the right place: docs/, VISION.md, memory, etc.)

Step 3 — Draft the Entry

Format: One line, starts with a dash, concise. Under 120 characters preferred.

Convention example:

text
- Event payloads emitted via `app.emit()` must use `#[serde(rename_all = "camelCase")]`.

Anti-pattern example:

text
- Using `{param}` in axum 0.7 `.route()` — compiles but silently 404s; must use `:param`.

Rules for good entries:

  • Lead with the WHAT (what to do / not do)
  • No explanation of WHY in the entry itself (that's in git commit or docs)
  • Include the specific technology/module if relevant
  • Be grep-friendly (someone searching for "axum" or "emit" should find it)
Step 4 — Append to the Right Section

Read crates/AGENTS.md, find the target section, and append the new entry at the end of the bullet list (before the next ## heading).

Show full SKILL.md (225 more words)Show less
Step 5 — Trim if Needed

Each section should stay under 10 entries. If adding a new one pushes over 10:

  1. Check if any existing entry is now redundant (covered by a linter, removed feature, etc.)
  2. If so, remove the stale entry
  3. If not, ask the user which older entry to drop or whether to exceed the limit
Step 6 — Confirm

Show the user:

  • The exact line added
  • Which section it was added to
  • The current total count for that section

Do NOT commit automatically — let the user decide when to commit.

What NOT to Record Here

Instead use...For...
VISION.mdArchitectural principles, locked decisions, product direction
docs/agent/architecture-rules.mdCross-crate dependency rules, commit structure
docs/agent/rust-rules.mdDetailed Rust coding patterns
Codex memoryUser preferences and cross-session context that are not repository rules
ADR docsDecision rationale with full context

Examples

User: "I just spent 30 minutes debugging because I used {id} in an axum route and it silently 404'd" → Add to ANTI-PATTERNS: - Using {param} in axum 0.7 .route() — compiles but silently 404s; must use :param.

User: "Remember that daemon API responses are always wrapped in ApiEnvelope" → Add to CONVENTIONS: - Daemon HTTP responses use ApiEnvelope<T>wrapper; clients must unwrap.data field.

User: "Stop importing from uc-application internals, only use facade/" → Add to ANTI-PATTERNS: - Importing from uc-applicationinternal modules — onlyfacade/ is public API for external crates.

© UniClipboard, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/learn of UniClipboard/UniClipboard.

Open the folder on GitHubat commit 101ffb3

Compare with similar skills

Learn next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Learn compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Learn this skillUniClipboard/UniClipboard1.9k—~1.1kAutomated safety check: PassAGPL-3.0
Using Agent Skillsaddyosmani/agent-skills103k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.7k2 repos~627Automated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k19 repos~2.7kAutomated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    103k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 19 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from UniClipboard/UniClipboard

All 24 skills in this repo
  • Beui

    UniClipboard/UniClipboard

    Pick and install beUI (@beui) animated React components from the shadcn registry.

    1.9k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Create PR

    UniClipboard/UniClipboard

    Push the current branch and open a GitHub pull request against main.

    1.9k GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • Design Audit

    UniClipboard/UniClipboard

    定期审计代码库的工程设计问题(高心智复杂度、单一真相源被破坏、catch-all 胖接口、死代码、散落魔法字面量、泄漏抽象、资源生命周期靠环形缓冲)与可优化点,范围限定为自上次审计以来的 git churn,每条发现都落到 file:line 并对照本项目自己的 VISION.md / 各级 AGENTS.md / memory…

    1.9k GitHub stars~554 tokensUpdated today
    Auto-check passed
  • Dual Side Debug

    UniClipboard/UniClipboard

    Inspect uniclipboard logs from BOTH the macOS host and the mounted Windows peer when debugging cross-platform sync, pairing, transfer, or daemon issues.

    1.9k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • E2E Test Thinker

    UniClipboard/UniClipboard

    Analyze the current branch's diff against main and determine which changes are testable via CLI-based end-to-end tests.

    1.9k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • iOS Log Diagnose

    UniClipboard/UniClipboard

    Drive the UniClipboard iOS app in a simulator and read its OSLog yourself to diagnose a mobile-sync bug, instead of asking the user to paste logs.

    1.9k GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Categories

Questions about Learn

What does Learn do?

Record a lesson learned into crates/AGENTS.md (CONVENTIONS or ANTI-PATTERNS section). Learn is an agent skill from UniClipboard/UniClipboard.md (CONVENTIONS or ANTI-PATTERNS section).

When should I use Learn?

Learn fits situations like: says remember this about a coding pattern; tasks that involve Agent instruction files.

How do I install Learn in Claude Code?

Run `npx skills add UniClipboard/UniClipboard --skill learn -a claude-code`. Or copy the skill folder (.agents/skills/learn in UniClipboard/UniClipboard) into .claude/skills/learn in your project. Claude Code loads it when a task matches its description.

How do I install Learn in Codex?

Run `npx skills add UniClipboard/UniClipboard --skill learn -a codex`. Or copy the skill folder (.agents/skills/learn in UniClipboard/UniClipboard) into .agents/skills/learn in your project. Codex loads it when a task matches its description.

Can I use Learn in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add UniClipboard/UniClipboard --skill learn -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/learn, .gemini/skills/learn, .github/skills/learn and .opencode/skills/learn in your project.

What does Learn need to run?

Going by SKILL.md and its folder, Learn needs the command-line tools its instructions call (cargo).

Does Learn access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Learn safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Learn use?

Learn is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Learn use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Learn?

Skills that share tags, products or a category with Learn: Using Agent Skills (addyosmani/agent-skills, 103k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.7k stars), Writing For Agents (bestofjs/bestofjs, 3.1k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Learn?

UniClipboard (a GitHub organization) maintains it in UniClipboard/UniClipboard, which has 1,856 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 8, 2026.

Source: UniClipboard/UniClipboard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.