agentleFS
lightpointventureslightpointventures/claude-code-starter/skills/learn/SKILL.md

learn

Skill36 starsChanged 8 months agoMITView on GitHub

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

133 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open-gstack-browser, design-html 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.
  • seek888Skill

    open-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 6 projects that use this

  • seek888Skill

    design-html

    Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".

    Also in 7 projects that use this

  • chloropineSkill

    setup-gbrain

    Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (cgstack)

    Also in 4 projects that use this

  • TomGranotSkill

    add-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 3 projects that use this

  • TomGranotSkill

    add-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 3 projects that use this

  • chloropineSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for cgstack (v1: observational). Review which AskUserQuestion prompts fire across cgstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 4 projects that use this

  • +1 more from seek888
  • +5 more from TomGranot

The file

Files
SKILL.md

自我改进

把这次踩的坑或做的决策记录到 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 会自动遵守这条规则。

规则

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.