Claude Reflect is a self-learning system for Claude Code that captures corrections, positive feedback, and preferences. It syncs this data to CLAUDE.md and AGENTS.md, improving Claude's performance over time. Benefits operations teams by automating knowledge capture and feedback loops.
git clone https://github.com/BayramAnnakov/claude-reflect.githttps://github.com/BayramAnnakov/claude-reflect
[{"step":"Gather Feedback","action":"Collect feedback from the relevant source (e.g., emails, Slack threads, PR comments) after completing a task. Ensure the feedback includes specific details about what worked, what didn’t, and any actionable improvements.","tip":"Use Claude's built-in feedback capture by pasting the feedback directly into the chat or referencing a file/URL where it’s stored."},{"step":"Run claude-reflect","action":"Execute the claude-reflect command in your terminal or invoke it via the AI assistant. Specify the task name and feedback source, e.g., `claude-reflect --task 'payment_processor_refactor' --feedback 'client_email.md'`.","tip":"If you're using an AI assistant, you can paste the prompt template and replace the placeholders with your task name and feedback source."},{"step":"Review and Validate","action":"Check the generated CLAUDE.md and AGENTS.md files to ensure the feedback was accurately captured and formatted. Verify that the actionable improvements are clear and specific.","tip":"Look for sections like 'Common Pitfalls' or 'Agent Configuration' in the files to confirm the updates were applied correctly."},{"step":"Take Action","action":"Use the captured feedback to inform your next steps. Prioritize the improvements based on urgency and impact, and share the updates with your team if necessary.","tip":"For team-wide improvements, consider creating a follow-up task or ticket in your project management tool (e.g., Jira, Linear) to track the implementation of the feedback."},{"step":"Iterate","action":"After implementing the improvements, run claude-reflect again to capture any new feedback or lessons learned. This ensures the knowledge base grows continuously.","tip":"Schedule regular reflection sessions (e.g., weekly) to keep the CLAUDE.md and AGENTS.md files up to date."}]
Automatically remember corrections made during coding sessions to improve future interactions.
Analyze past sessions to discover repetitive tasks and suggest reusable commands.
Sync personal preferences and feedback to maintain a tailored coding environment.
Facilitate the creation of skills based on identified workflow patterns to enhance productivity.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/BayramAnnakov/claude-reflectCopy 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.
Use claude-reflect to capture feedback from a recent [TASK_NAME] session. Extract key learnings from [FEEDBACK_SOURCE] (e.g., 'the client's email', 'the Slack thread', 'the PR review comments'). Update CLAUDE.md and AGENTS.md with: 1) What worked well, 2) What didn’t, 3) Specific improvements for future sessions. Format as a concise summary with actionable next steps.
### claude-reflect Output: Automated Feedback Capture **Task Context:** Refactored the `payment_processor.py` module to handle Stripe webhook events more efficiently. Client requested changes after testing the new implementation. **Feedback Source:** Client's email (Subject: "Payment Processor Issues") - **What Worked:** The new event handling logic reduced latency by 40% and passed all unit tests. - **What Didn’t:** The client reported missing error logs for failed webhook events, causing confusion during debugging. - **Improvements Identified:** 1. Add structured logging for webhook failures with timestamps. 2. Include a retry mechanism for transient errors (e.g., network timeouts). 3. Document the new error handling flow in the module's README. **Updates Applied:** - **CLAUDE.md:** Added a new section under "Common Pitfalls" for Stripe webhook debugging, including the client's feedback and suggested fixes. - **AGENTS.md:** Updated the `payment_processor` agent's configuration to prioritize error logging and retry logic in future refactoring tasks. **Next Steps:** 1. Implement the retry mechanism in the next sprint. 2. Share the updated logging standards with the team via Slack. 3. Schedule a follow-up with the client to validate the changes. --- *Reflection completed at 2024-05-20 14:32:15 UTC. Auto-saved to CLAUDE.md and AGENTS.md.*
Build a second brain with connected notes
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