Self-improvement through conversation analysis. Extracts learnings from corrections and success patterns, proposes updates to agent files or creates new skills. Philosophy: "Correct once, never again." Use when: (1) User explicitly corrects behavior ("never do X", "always Y"), (2) Session ending or context compaction, (3) User requests /reflect, (4) Successful pattern worth preserving.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Self-improvement through conversation analysis. Extracts learnings from corrections and success patterns, proposes updates to agent files or creates new skills. Philosophy: "Correct once, never again." Use when: (1) User explicitly corrects behavior ("never do X", "always Y"), (2) Session ending or context compaction, (3) User requests /reflect, (4) Successful pattern worth preserving.
zh_description
用于reflect、learn,支持检索、拆解、反思和决策。
version
2.0.0
author
Claude Code Toolkit
source
in-house
source_url
tags
["learn", "planning", "reflect", "workflow"]
created_at
2026-03-04
updated_at
2026-03-20
quality
5
complexity
intermediate
allowed-tools
null
Reflect - Self-Improvement Skill
Quick Reference
Command
Action
/reflect
Analyze conversation for learnings
/reflect on
Enable auto-reflection
/reflect off
Disable auto-reflection
/reflect status
Show state and metrics
/reflect review
Review low-confidence learnings
/reflect [agent]
Focus on specific agent
Core Philosophy
"Correct once, never again."
When users correct behavior, those corrections become permanent improvements encoded into the agent system - across all future sessions.
Workflow
Step 1: Initialize State
Check and initialize state files using the state manager:
# Check for existing state
python scripts/state_manager.py init
# State directory is configurable via REFLECT_STATE_DIR env var# Default: ~/.reflect/ (portable) or ~/.claude/session/ (Claude Code)
# Set custom state directoryexport REFLECT_STATE_DIR=/path/to/state
# Or use default# ~/.reflect/ (portable default)# ~/.claude/session/ (Claude Code default)
No Task Tool Dependency
Unlike the previous agent-based approach, this skill executes directly without spawning subagents. The LLM reads SKILL.md and follows the workflow.
Git Operations Optional
Commits are wrapped with availability checks - if not in a git repo, changes are still saved but not committed.