Validation-Loop CLAUDE.md Auto-Learner
Any time Claude Code messes up on your codebase, ask it to fix the mistake and then update CLAUDE.md so it never does that again, without editing rules by hand.
Technical/Codingtechnicalcoding
by AgentVoltv1.0.0Published 1y ago
Free to sign up · every skill included with AgentVolt Pro
About this skill
name: validation-loop-claude-md-learner description: Any time Claude Code messes up on your codebase, ask it to fix the mistake and then update CLAUDE.md so it never does that again, without editing rules by hand.
Validation-Loop CLAUDE.md Auto-Learner
What This Does
The Meta staff engineer never edits rules manually. After every wrong output, he says 'update the rule so we never do it again' and lets Claude patch its own CLAUDE.md. He pairs this with a validation loop (Xcode build, tests, or lint) so Claude iterates until validation passes without human review of each step.
What You Get
- Rule-update-by-prompt discipline
- validation loop tied to build/tests/lint
- top-to-bottom priority ordering in CLAUDE.md
- never-do plus always-do phrasing
- git-committed CLAUDE.md for team sync
Customize
- validation_command: what proves the fix worked (build, tests, lint)
- rule_style: never-do plus always-do
- priority_order: most important rules at top
- commit_scope: repo, workspace, or global
- auto_pruning: cap file at N lines
Sample Output
After Claude misuses a homegrown pattern, one prompt asks it to update the rule; the CLAUDE.md gets a new never-do line and the next Claude session doesn't repeat the mistake.
Target Audience
Individual engineers running Claude Code daily on real codebases
Source
SKILL.md preview
SKILL.md
---
name: validation-loop-claude-md-learner
description: Any time Claude Code messes up on your codebase, ask it to fix the mistake and then update CLAUDE.md so it never does that again, without editing rules by hand.
---
# Validation-Loop CLAUDE.md Auto-Learner
## What This Does
The Meta staff engineer never edits rules manually. After every wrong output, he says 'update the rule so we never do it again' and lets Claude patch its own CLAUDE.md. He pairs this with a validation loop (Xcode build, tests, or lint) so Claude iterates until validation passes without human review of each step.
## What You Get
- Rule-update-by-prompt discipline
- validation loop tied to build/tests/lint
… (sign up to view the full skill)Sign up to view, copy, and install the full skill