jpskill.com
🛠️ 開発・MCP コミュニティ

claude-reflect

Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md. Use when discussing learnings, corrections, or when the user mentions remembering something for future sessions.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o claude-reflect.zip https://jpskill.com/download/17484.zip && unzip -o claude-reflect.zip && rm claude-reflect.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17484.zip -OutFile "$d\claude-reflect.zip"; Expand-Archive "$d\claude-reflect.zip" -DestinationPath $d -Force; ri "$d\claude-reflect.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して claude-reflect.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → claude-reflect フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
19

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Claude Reflect - 自己学習システム

Claude Code がユーザーの修正から学習するのを支援する、2段階のシステムです。

仕組み

ステージ 1: 捕捉 (自動) フックが修正パターン ("no, use X"、"actually..."、"use X not Y") を検出し、それらを ~/.claude/learnings-queue.json にキューします。

ステージ 2: 処理 (手動) ユーザーが /reflect を実行して、キューに入れられた学習内容を確認し、CLAUDE.md ファイルに適用します。

利用可能なコマンド

コマンド 目的
/reflect キューに入れられた学習内容を人間のレビューを通して処理します
/reflect --scan-history 過去のセッションから見逃した学習内容をスキャンします
/reflect --dry-run 変更を適用せずにプレビューします
/skip-reflect キューに入れられたすべての学習内容を破棄します
/view-queue 処理せずに保留中の学習内容を表示します

ユーザーにリマインドするタイミング

以下の場合に、/reflect についてユーザーにリマインドします。

  • 機能または意味のある作業単位を完了したとき
  • 将来のセッションのために覚えておくべき修正を行ったとき
  • 明示的に "remember this" または類似のことを言ったとき
  • コンテキストが圧縮されようとしており、キューにアイテムがあるとき

修正検出パターン

信頼性の高い修正:

  • ツールの拒否 (ユーザーがガイダンス付きでアクションを停止する)
  • "no, use X" / "don't use Y"
  • "actually..." / "I meant..."
  • "use X not Y" / "X instead of Y"
  • "remember:" (明示的なマーカー)

CLAUDE.md の保存先

  • ~/.claude/CLAUDE.md - グローバルな学習内容 (モデル名、一般的なパターン)
  • ./CLAUDE.md - プロジェクト固有の学習内容 (規約、ツール、構造)

インタラクションの例

User: no, use gpt-5.1 not gpt-5 for reasoning tasks
Claude: Got it, I'll use gpt-5.1 for reasoning tasks.

[フックがこの修正をキューに捕捉します]

User: /reflect
Claude: Found 1 learning queued. "Use gpt-5.1 for reasoning tasks"
        Scope: global
        Apply to ~/.claude/CLAUDE.md? [y/n]
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Claude Reflect - Self-Learning System

A two-stage system that helps Claude Code learn from user corrections.

How It Works

Stage 1: Capture (Automatic) Hooks detect correction patterns ("no, use X", "actually...", "use X not Y") and queue them to ~/.claude/learnings-queue.json.

Stage 2: Process (Manual) User runs /reflect to review and apply queued learnings to CLAUDE.md files.

Available Commands

Command Purpose
/reflect Process queued learnings with human review
/reflect --scan-history Scan past sessions for missed learnings
/reflect --dry-run Preview changes without applying
/skip-reflect Discard all queued learnings
/view-queue View pending learnings without processing

When to Remind Users

Remind users about /reflect when:

  • They complete a feature or meaningful work unit
  • They make corrections you should remember for future sessions
  • They explicitly say "remember this" or similar
  • Context is about to compact and queue has items

Correction Detection Patterns

High-confidence corrections:

  • Tool rejections (user stops an action with guidance)
  • "no, use X" / "don't use Y"
  • "actually..." / "I meant..."
  • "use X not Y" / "X instead of Y"
  • "remember:" (explicit marker)

CLAUDE.md Destinations

  • ~/.claude/CLAUDE.md - Global learnings (model names, general patterns)
  • ./CLAUDE.md - Project-specific learnings (conventions, tools, structure)

Example Interaction

User: no, use gpt-5.1 not gpt-5 for reasoning tasks
Claude: Got it, I'll use gpt-5.1 for reasoning tasks.

[Hook captures this correction to queue]

User: /reflect
Claude: Found 1 learning queued. "Use gpt-5.1 for reasoning tasks"
        Scope: global
        Apply to ~/.claude/CLAUDE.md? [y/n]

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。