Self-improving AI: Transform CLAUDE.md into a learning system. One prompt makes Claude learn from every mistake. Meta-rules + reflection = continuous improvement.
git clone https://github.com/aviadr1/claude-meta.gitclaude-meta turns your CLAUDE.md documentation into a learning system that improves with every mistake Claude makes. It combines two core ideas: meta-rules that teach Claude how to write effective rules, and a single reflection prompt that transforms errors into permanent learnings. When Claude encounters a mistake, the system triggers reflection, abstraction, and generalization—automatically updating CLAUDE.md with new guidelines that follow established quality standards. This approach lets AI handle the execution work of documentation while you focus on critical thinking and pattern spotting. Developers working with Claude Code or Cursor benefit from compounding improvements as the knowledge base grows more sophisticated and consistent over time.
Start with the CLAUDE_TEMPLATE.md provided in the repository. When Claude makes a mistake during a session, use the reflection prompt: 'Reflect on this mistake. Abstract and generalize the learning. Write it to CLAUDE.md.' Claude will automatically follow the meta-rules structure to update your documentation consistently.
Automatically document coding patterns and anti-patterns discovered during development
Create self-regulating guidelines that Claude applies consistently across sessions
Build a living reference that improves as the codebase evolves and edge cases emerge
Reduce repetitive error correction by capturing generalizable lessons in CLAUDE.md
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/aviadr1/claude-metaCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I want to create a self-improving AI system using CLAUDE.md. Here's how it should work: [DESCRIBE WORKFLOW]. Please generate meta-rules for continuous improvement and a reflection process. Also, provide a template for documenting mistakes and learning from them. The system should be tailored to [INDUSTRY] and [COMPANY] needs.
# Self-Improving AI System for [COMPANY] in [INDUSTRY] ## Meta-Rules for Continuous Improvement - **Rule 1**: After each interaction, analyze the output for potential improvements. - **Rule 2**: Document all mistakes and lessons learned in CLAUDE.md. - **Rule 3**: Review and update the knowledge base weekly. - **Rule 4**: Incorporate user feedback into the learning process. ## Reflection Process 1. **Identify Mistakes**: List all errors or suboptimal responses. 2. **Analyze Causes**: Determine why the mistake occurred. 3. **Develop Solutions**: Create strategies to prevent recurrence. 4. **Implement Changes**: Update the knowledge base and response templates. 5. **Monitor Progress**: Track improvements over time. ## Mistake Documentation Template ```markdown ### Mistake: [DESCRIBE MISTAKE] - **Date**: [DATE] - **Context**: [DESCRIBE CONTEXT] - **Root Cause**: [ANALYZE CAUSE] - **Solution**: [DESCRIBE SOLUTION] - **Prevention**: [STRATEGIES TO PREVENT] ```
Visual workflow builder for no-code automation and integration
AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan