From claude-code-starter
Records lessons from pitfalls, technical decisions, and project rules into CLAUDE.md for persistent knowledge. Use after debugging to prevent repeats or logging choices.
npx claudepluginhub lighthouse-strategy/claude-code-starterThis skill uses the workspace's default tool permissions.
把这次踩的坑或做的决策记录到 CLAUDE.md 中,防止下次再犯。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
把这次踩的坑或做的决策记录到 CLAUDE.md 中,防止下次再犯。
如果用户已经说了,直接分析。否则问:
你想记录什么?
- 刚踩了个坑,想防止下次再犯
- 做了个技术决策,想记录原因
- 发现了项目的特殊规则,想让 Claude 记住
根据类型收集信息:
踩坑记录:
技术决策:
项目规则:
用精确简洁的语言写一条记录:
踩坑格式:
- [现象描述] — [正确做法]
例:uv sync 会删除未在 pyproject.toml 中声明的包 — 运行前后对比 uv pip list
决策格式:
- 选择 [方案] 而不是 [备选] — 原因:[理由];否决 [备选] 因为 [理由]
例:选择 SQLite 而不是 PostgreSQL — 原因:单用户项目不需要并发;否决 PostgreSQL 因为运维成本高
读取当前 CLAUDE.md,将新条目追加到对应区块:
写入前展示给用户确认:
准备在 CLAUDE.md 的「已知陷阱」中添加:
- [新条目内容]
确认写入?
用户确认后写入文件。
已更新 CLAUDE.md。下次 Claude 会自动遵守这条规则。