feedback-loop

Update CLAUDE.md or rules when patterns of errors emerge

📖 中文导读:Update CLAUDE.md or rules when patterns of errors emerge 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: feedback-loop description: Update CLAUDE.md or rules when patterns of errors emerge triggers: repeated errors, learning from mistakes, updating rules, improving CLAUDE.md, capturing conventions, documenting patterns

Feedback Loop

When Claude makes the same mistake repeatedly, capture the learning.

When to Use

  • Same error type 2+ times
  • Project convention violated
  • Important pattern discovered

Process

  1. Identify Pattern - What mistake? What's correct?
  2. Choose Location
    • Project-specific: Add to project's CLAUDE.md
    • Global: Add to ~/.claude/rules/ via Nix
  3. Write the Rule
  4. Verify - Clear and actionable?

Example

After repeatedly missing --impure flag:

## Nix Flakes

- Always use `--impure` flag (required for private submodule)
- Use `rebuild` alias instead of raw commands