Migrate existing ADRs to YAML frontmatter format. Scans docs/decisions/ for ADRs without frontmatter, infers status from body text, shows dry-run for approval. Trigger: /adr-migrate
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Distill ★ Insight blocks from session logs on demand (force), read the resulting digest, and decide which entries to promote into skills, ~/.claude/rules/, or CLAUDE.md. Also supports acknowledgement (ack). Use when you want to review accumulated insights now, or when a SessionStart notice points to a new digest.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
★ Insight ─ ブロックを ~/.claude/projects/**/*.jsonl から蒸留した結果を読み解き、
スキル化 / ~/.claude/rules/ 追記 / CLAUDE.md 追記 / 廃棄 の採否を判断する知見系スキル。
蒸留は OS のスケジューラがバックグラウンドで実行する (macOS: LaunchAgent com.berlysia.distill-insights、Linux: systemd user timer distill-insights.timer)。
実行されるのは毎日 04:00 と、ログイン時・スリープ復帰時で、直近 12 時間に走っていれば skip する。
chezmoi apply では走らない。LLM 呼び出しを含み apply を遅くするため。
失敗や 3 日以上の停滞は SessionStart に復旧手順つきで表示される。すぐ実行したいときは force を使う。
/insight-digest を呼ぶと、引数に応じて 3 モードのいずれかで動作する。
| 引数 | 動作 |
|---|---|
| なし | digest を Read で表示し、採否判断のフレームを併記する |
force | bash ~/.claude/scripts/run-distill-insights.sh --force --llm を実行し、digest を再生成 |
ack | digest を既読扱いにする (SessionStart 通知を止める) |
最初の単語が以下のキーワードの場合のみ、対応するモードを使う:
force → Step "Force Regenerate"ack → Step "Mark Read"それ以外(引数なし、または別のテキスト)は表示モード。
~/.claude/logs/insights/insight-digest.md
を Read で開く。存在しない場合は「digest が未生成。/insight-digest force で生成してください」と返答。
digest 内の各 cluster に対し、以下のフレームでユーザーに整理して提示する:
| ラベル | 採否方針 | 行き先 |
|---|---|---|
proposal_type: skill | 行為が反復されており、手順を Claude に外注できるならスキル化 | .skills/<name>/SKILL.md を新規作成、命名は <verb>-<noun> |
proposal_type: claude_md | プロジェクト固有の前提・規約・コマンド | home/dot_claude/CLAUDE.md または home/<project>/CLAUDE.md |
proposal_type: rule | 横断的な開発体験ルール (ワークフロー・品質・命名規約) | home/dot_claude/rules/*.md |
proposal_type: discard | 一回限りの気づきで再利用価値が低い | 採用しない |
判断補助:
~/.claude/rules/*.md と ~/.claude/CLAUDE.md を grep して重複チェックcount と distinct_sessions を確認 (低ければ採用見送り)冒頭にサマリ (生成日時、新規件数、サニタイザヒット数) を 3 行で示し、上位 5-10 件のクラスタを プロパティ表で出す。各クラスタについて「推奨採否 + 行き先 + 1 行理由」をつける。
force)bash ~/.claude/scripts/run-distill-insights.sh --force --llm
を実行し、stdout/stderr をユーザーに簡潔に報告 (scanned / matched / appended / redact_hits)。
完了後、digest パスを表示し「次は /insight-digest で内容を確認できます」と案内。
--llm は Stage B (LLM 蒸留) を同時に走らせる。--force と併用するとゲート (7 日 / 新規 10 件) を
bypass し、~/.claude/logs/insights/insight-llm-payload.last.json に送信前 payload を残してから LLM を呼ぶ。
Stage A のみ: LLM を呼ばずヒューリスティック集計だけ更新したい場合は
--llmを外す。bash ~/.claude/scripts/run-distill-insights.sh --force
注意:
distill-insights.ts を直接実行しない。skipping が出て exit 75 で終わった場合は、別の実行が進行中で何もしていない。少し待って再実行する。last-run-failed) のうち stage_b outcome=… のものは stage_b outcome=ok で消え、Stage A のみの実行では消えない。それ以外の理由のマーカーは、次に正常終了した実行で消える。ack)ack ファイルを書き換えるシンプルな bun 1-liner:
bun -e 'import("/home/'"$USER"'/.claude/hooks/lib/insight-digest.ts").then(m => m.writeAckMs())'
または直接:
date +%s%3N > ~/.claude/.last-insight-digest-acked
実行後「digest を既読化しました。次の更新までは SessionStart 通知が出ません」と返答。
ユーザーが特定のクラスタについて「これは skill 化したい」「これは rules に書きたい」と判断した場合:
~/.claude/logs/insights/insights.jsonl の hash で逆引き).skills/<name>/SKILL.md または home/dot_claude/rules/*.md)chezmoi apply で展開~/.claude/insight-distill-deny.txt) に text: パターンで登録し、
将来の digest で再提案されないようにするtopic <keyword> モードは YAGNI 判定。
必要になったら ~/.claude/logs/insights/insights.jsonl を jq で grep すれば足りる~/.claude/logs/insights/insight-digest.md — 最新の digest~/.claude/logs/insights/insights.jsonl — 累積した insight レコード (重複排除済み)~/.claude/logs/insights/state.json — 件数集計~/.claude/insight-distill-deny.txt — 走査除外パターン~/.claude/insight-distill-redact.txt — 追加サニタイザパターン~/.claude/scripts/distill-insights.ts — 蒸留本体~/.claude/scripts/run-distill-insights.sh — スケジューラと force の共通入口~/.claude/logs/insights/distill-run.log — 実行ログ (2000 行で切り詰め)~/.claude/logs/insights/last-run-failed — 失敗マーカー~/.claude/hooks/lib/insight-digest.ts — sanitize / normalize / ack 関数아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Migrate existing ADRs to YAML frontmatter format. Scans docs/decisions/ for ADRs without frontmatter, infers status from body text, shows dry-run for approval. Trigger: /adr-migrate
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Start or resume an ADR session. Without number: show status overview and recommend next actionable ADR. With number: provide phase-specific guidance. Trigger: /adr-session, /adr-session NNN, /adr-session new
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Analyze a project's harness maturity and guide staged adoption of Harness Engineering best practices (quality loops, safety gates, linters, CLAUDE.md optimization).
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Standardized bug fix workflow using TDD (Red-Green-Refactor). Use when fixing bugs, resolving issues, or when the user invokes /bugfix. Ensures root cause analysis, failing test first, then minimal fix.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Create detailed specifications by iteratively clarifying unclear points for Plan mode. Use when: After completing a plan when detailed requirements need clarification before implementation.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Policy-enforcing installer that deploys hardened Claude Code Action workflows (`@claude` manual mention + dependency-bot auto-fix) into a personal GitHub repository the user administers. Use when asked to introduce Claude Code Action, apply `@claude` mention support, or set up automated CI auto-fix for dependency bot PRs, using the security-hardened templates shipped with this skill.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.