Claude-skill-registry feedback-loop

Update CLAUDE.md or rules when patterns of errors emerge

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/feedback-loop" ~/.claude/skills/majiayu000-claude-skill-registry-feedback-loop && rm -rf "$T"
manifest: skills/data/feedback-loop/SKILL.md
source content

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