Learn logo

Learn

Organization
lightpointventures
learn

当用户踩坑后想记录经验教训、当调试完想防止同样的问题再次发生、当做了重要技术决策想记录时使用 — 自动更新 CLAUDE.md 的已知陷阱和决策日志

Overview

Publisherlightpointventures
Repositoryclaude-code-starter
Skill namelearn
Stars
36
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by lightpointventures on GitHub. Read the source before you install it.

Installation

Install the Learn AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/lightpointventures/claude-code-starter/tree/main/skills/learn
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lightpointventures/claude-code-starter.git /tmp/claude-code-starter
mkdir -p .claude/skills
cp -r /tmp/claude-code-starter/skills/learn .claude/skills/learn
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Learn in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Learn on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Learn is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

自我改进

把这次踩的坑或做的决策记录到 CLAUDE.md 中,防止下次再犯。

与其他 Skill 的区别

  • /debug 解决当前的 bug
  • /learn 把 bug 的经验教训写入 CLAUDE.md,让 Claude 永远记住

步骤

1. 确定要记录什么

如果用户已经说了,直接分析。否则问:

你想记录什么?

  • 刚踩了个坑,想防止下次再犯
  • 做了个技术决策,想记录原因
  • 发现了项目的特殊规则,想让 Claude 记住

2. 提取关键信息

根据类型收集信息:

踩坑记录:

  • 问题是什么?(一句话描述现象)
  • 根因是什么?(为什么会出现)
  • 正确的做法是什么?(下次应该怎么做)

技术决策:

  • 选了什么方案?
  • 为什么选这个?(2-3 个关键理由)
  • 考虑过但没选的方案?(为什么不选)

项目规则:

  • 什么规则?
  • 为什么需要这个规则?

3. 生成记录条目

用精确简洁的语言写一条记录:

踩坑格式:

- [现象描述] — [正确做法]

例:uv sync 会删除未在 pyproject.toml 中声明的包 — 运行前后对比 uv pip list

决策格式:

- 选择 [方案] 而不是 [备选] — 原因:[理由];否决 [备选] 因为 [理由]

例:选择 SQLite 而不是 PostgreSQL — 原因:单用户项目不需要并发;否决 PostgreSQL 因为运维成本高

4. 写入 CLAUDE.md

读取当前 CLAUDE.md,将新条目追加到对应区块:

  • 踩坑 → 追加到「已知陷阱」区块
  • 决策 → 追加到「决策日志」区块
  • 规则 → 追加到最匹配的区块(铁律 / 不要做什么 / 工作流程)

写入前展示给用户确认:

准备在 CLAUDE.md 的「已知陷阱」中添加:

  • [新条目内容]

确认写入?

5. 确认

用户确认后写入文件。

已更新 CLAUDE.md。下次 Claude 会自动遵守这条规则。

规则

  • 每条记录必须简洁(一行以内),不要写段落
  • 用「现象 — 正确做法」格式,不要只描述问题不给方案
  • 不要和已有条目重复 — 写入前检查是否已经存在类似记录
  • 如果已有类似记录但不完整,更新它而不是添加新的

Frequently asked questions

What does the Learn AI skill do?

当用户踩坑后想记录经验教训、当调试完想防止同样的问题再次发生、当做了重要技术决策想记录时使用 — 自动更新 CLAUDE.md 的已知陷阱和决策日志

Why use Learn on TypingMind?

Because you install it once and use it with any model. Learn is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Learn in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lightpointventures/claude-code-starter/tree/main/skills/learn. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Learn?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Learn?

As many as you like. As long as a model supports skills, you can use Learn with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Learn AI skill free?

Yes. It is published on GitHub by lightpointventures under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇