# Feedback Loop

> Update CLAUDE.md or rules when patterns of errors emerge

- Skill: `majiayu000/feedback-loop` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/feedback-loop`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/feedback-loop/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/feedback-loop

---


# 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:

```markdown
## Nix Flakes

- Always use `--impure` flag (required for private submodule)
- Use `rebuild` alias instead of raw commands
```

