{"id":"claude-reflect","name":"claude-reflect","summary":"セッション中の修正を記録し、ユーザーに実行/リフレクトをリマインダーして更新する自己学習システム CLAUDE.md。","body":"# Claude Reflect - Self-Learning System\n\nA two-stage system that helps Claude Code learn from user corrections.\n\n## How It Works\n\n**Stage 1: Capture (Automatic)**\nHooks detect correction patterns (\"no, use X\", \"actually...\", \"use X not Y\") and queue them to `~/.claude/learnings-queue.json`.\n\n**Stage 2: Process (Manual)**\nUser runs `/reflect` to review and apply queued learnings to CLAUDE.md files.\n\n## Available Commands\n\n| Command | Purpose |\n|---------|---------|\n| `/reflect` | Process queued learnings with human review |\n| `/reflect --scan-history` | Scan past sessions for missed learnings |\n| `/reflect --dry-run` | Preview changes without applying |\n| `/reflect-skills` | Discover skill candidates from repeating patterns |\n| `/skip-reflect` | Discard all queued learnings |\n| `/view-queue` | View pending learnings without processing |\n\n## When to Remind Users\n\nRemind users about `/reflect` when:\n- They complete a feature or meaningful work unit\n- They make corrections you should remember for future sessions\n- They explicitly say \"remember this\" or similar\n- Context is about to compact and queue has items\n\n## Correction Detection Patterns\n\nHigh-confidence corrections:\n- Tool rejections (user stops an action with guidance)\n- \"no, use X\" / \"don't use Y\"\n- \"actually...\" / \"I meant...\"\n- \"use X not Y\" / \"X instead of Y\"\n- \"remember:\" (explicit marker)\n\n## Learning Destinations\n\n- `~/.claude/CLAUDE.md` - Global learnings (model names, general patterns)\n- `./CLAUDE.md` - Project-specific learnings (conventions, tools, structure)\n- `./CLAUDE.local.md` - Personal learnings (machine-specific, gitignored)\n- `./.claude/rules/*.md` - Modular rules with optional path-scoping\n- `~/.claude/rules/*.md` - Global modular rules\n- `~/.claude/projects/<project>/memory/*.md` - Auto memory (low-confidence, exploratory)\n- `commands/*.md` - Skill improvements (corrections during skill execution)\n\n## Example Interaction\n\n```\nUser: no, use gpt-5.1 not gpt-5 for reasoning tasks\nClaude: Got it, I'll use gpt-5.1 for reasoning tasks.\n\n[Hook captures this correction to queue]\n\nUser: /reflect\nClaude: Found 1 learning queued. \"Use gpt-5.1 for reasoning tasks\"\n        Scope: global\n        Apply to ~/.claude/CLAUDE.md? [y/n]\n```","author":"@BayramAnnakov","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/BayramAnnakov/claude-reflect","license":"MIT","category":"review","lang":"en","tokens":567,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"CHANGELOG.md","size":9506,"sha256":"22c2b906346a341ba27eb86771234aaf8712187cdfacdf97332f3c1a43f1634b"},{"path":"CLAUDE.md","size":7789,"sha256":"9504b497181b24079c9d817e35dc606c3b061bbd8ea14479337f4e05aefe4580"},{"path":".claude-plugin/marketplace.json","size":368,"sha256":"b5e811acf68f0ce4a93c38cf62840d4eab7722ce9458bc92db33dc64727f330d"},{"path":".claude-plugin/plugin.json","size":481,"sha256":"d7311722a41178e781cd4283ee5f764c17299a2934d9c1f2c26eb10ef41032f0"},{"path":"commands/reflect.md","size":63078,"sha256":"a7b585bba8e98349a22c563b21d2af17f81f8a097bf4e52bce89a83f7483fecf"},{"path":"commands/reflect-skills.md","size":12743,"sha256":"3088a46bc74e264be7eb6ed3c3511424f6157de88b8ecd2a41e590542cdc0ba1"},{"path":"commands/skip-reflect.md","size":1106,"sha256":"36a8e8899df8c54efe3cbe791aefcffa5efc812b31b76e13c519ec51853f00ad"},{"path":"commands/view-queue.md","size":4406,"sha256":"d953e3bfe6bfd2f7e18ec97a04dfb92f049b67722e47cde945082f18ad3ff371"},{"path":"DISTRIBUTION.md","size":10409,"sha256":"21ec5bdfdd7e78f3826c28903c5735c5d03dbe8b1d46d202cbdec2a1f3feb8ab"},{"path":".github/FUNDING.yml","size":22,"sha256":"4cce9f435b65295b58691d7b0cdaf5604ac6dd6d443c9f55455c67252e82c111"},{"path":".github/workflows/test.yml","size":1010,"sha256":"2ada7231cba135dfc41d271ce9f48ca41aa8e33f57260dc328db11f45c7e1476"},{"path":".gitignore","size":13,"sha256":"32dae3052f331ee34d628ef535709b301259a45df7c7522c4d35dcf49873f00b"},{"path":"hooks/hooks.json","size":990,"sha256":"58184664390e9a4c5309f0eece8e2ec146226100fef9837725ffc5533614ef9e"},{"path":"LICENSE","size":1071,"sha256":"07c3c5e50be442e05ab3e0e5328090cf1aa4faf9e57f5422cf395a98a4e2a673"},{"path":"README.md","size":15679,"sha256":"6d53b10e67678daa8464738c6e6e990fac698732f8e2da075ffbb8b6012f5674"},{"path":"RELEASING.md","size":1067,"sha256":"6bae9a1a2bd1f5ec2cc87327d21ad4e18a65f6287f01851b9b64bed2eeea18f4"},{"path":"scripts/capture_learning.py","size":2714,"sha256":"2ef34cc643a090d3b359bc292d34630a667f2e443fd06d72c5bbb1a5e793a42c"},{"path":"scripts/check_learnings.py","size":1442,"sha256":"bc7752317b1022b4ed056ab8f3b554b0b918fbf9c2f083d2cdd4575c4df92b76"},{"path":"scripts/compare_detection.py","size":14364,"sha256":"da5954af5a0863cdf304253fd5a40a88e87ef67be0ec774fbfedf673d18e2b7b"},{"path":"scripts/extract_session_learnings.py","size":1156,"sha256":"7c7e51df4965202cf9b184a4af45b5bcae950592891b23087d644a297397b091"},{"path":"scripts/extract_tool_errors.py","size":5239,"sha256":"2fc1c1b6da24beae81bef1859179f92a7bed61d7896d5fd775c0fb878b49f7fc"},{"path":"scripts/extract_tool_rejections.py","size":1024,"sha256":"bdf4c36432df0d1c173eeaf0df41416a8f57b0d12a3065a23e12c83ea8932af4"},{"path":"scripts/legacy/capture-learning.sh","size":5372,"sha256":"b7f04e94c30d4eaef26decde938cc3b3888b13d5e4a19a82ee008d89cbe895e7"},{"path":"scripts/legacy/check-learnings.sh","size":741,"sha256":"3a416ae63ced2dee8554cbfa1654e5094950457e0ab3bb163a89b25e9e48a399"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[{"code":"net.endpoints","kind":"exfiltration","excerpt":"claude-plugins.dev, claude.ai, claudecodecommands.directory, img.shields.io, keepachangelog.com","message":"bundled scripts reach 5 external host(s)","severity":"warn"}],"scannedAt":"2026-08-22","hasScripts":true,"networkEndpoints":["claude-plugins.dev","claude.ai","claudecodecommands.directory","img.shields.io","keepachangelog.com"]}}