phx:learn-from-fix

仓库创建 2026年2月12日最近提交 3 小时前SkillHot 收录 20 天前
▸ 精选理由

把临时修复转为长期知识,帮助团队积累最佳实践。

这个 Skill 做什么

在修复或被纠正后捕获并记录经验教训以避免重复错误。

修 Bug 或被指正后用来把经验固化,记录出错模式和修复要点,避免未来重复犯相同错。常见于 Elixir/Phoenix 场景,涉及 Ecto、LiveView、Oban 等问题时尤其有用。结果是把教训写成可复用的提示或命令,方便团队共享。

▸ 展开 SKILL.md 英文原文

Capture lessons after fixing a bug or receiving a correction — ecto, liveview, oban, iron law mistakes. Use when the user corrects your approach or teaches a pattern.

Skill 开发管理经验总结回顾知识库通用
505
Stars
34
Forks
40
仓库内 Skill
+35
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/oliver-kriska/claude-elixir-phoenix/main/plugins/elixir-phoenix/skills/learn-from-fix/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/oliver-kriska/claude-elixir-phoenix/main/plugins/elixir-phoenix/skills/learn-from-fix/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Learn From Fix

After fixing a bug or receiving a correction, capture the lesson
to prevent future mistakes.

## Usage

```
/phx:learn-from-fix Fixed N+1 query in user listing - was missing preload
/phx:learn-from-fix String vs atom key mismatch in params handling
/phx:learn-from-fix LiveView assign_async needs render_async in tests
```

## Workflow

### Step 1: Identify the Pattern

Look at recent conversation context. Ask yourself:

- What was the root cause? (not the symptom)
- Is this a common mistake others might make?
- Can it be prevented with a simple rule?

### Step 2: Check Existing Knowledge

Check if already documented:

- Grep project CLAUDE.md for the pattern keyword
- Check 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有