Session Insights

Claude Code の過去セッション(transcript JSONL)・設定・運用パターンを cclens と同梱スクリプトで収集し、指定された分析観点に沿って傾向分析と改善案を出す。/session-insights で明示起動されたときのみ使用する。キーワードマッチによる自動起動はしない。起動時に分析観点の指定が必須。

9 starsAI, LLMs & Agents Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add yasunori0418/skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add yasunori0418/skills --skill session-insights
Manual install
git clone --depth 1 https://github.com/yasunori0418/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/agent-ops/session-insights ~/.claude/skills/session-insights

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# session-insights — Claude Code 利用実態の分析と改善提案

## このスキルの目的

`$CLAUDE_CONFIG_DIR`(未設定なら `~/.claude`)に蓄積されたセッション transcript・設定を機械的に読み出し、**ユーザーが指定した分析観点**に沿って利用傾向を分析し、設定・スキル・プロンプトの運用改善案を出す。

分析対象は本人の全会話履歴という機微なデータであり、量も巨大(数百セッション・100MB超)なので、次の2つを設計上の前提にしている:

1. **収集は決定論**。
    - 読み出しは [cclens](https://github.com/lambdalisue/cclens) と同梱スクリプト経由で行い、AI が生の JSONL を Read/Grep で無作為に漁ることはしない。
    - 巨大ファイルの直読みはコンテキストを浪費するだけでなく、走査範囲が毎回変わり分析の再現性を失うため。
2. **観点駆動**。
    - 「なんとなく全部見る」は禁止。
    - 観点が先、収集は観点に必要なものだけ。

## 収集の三系統(どれを使うか先に決める)

道具は 3 つあり、**それぞれにしか無い情報がある**。同じ指標を二重に集計せず、観点に応じて使い分ける。

| 担当 | ここにしか無いもの |
|---|---|
| **cclens** | ツール/スキル使用頻度・skill 単位のトークン消費とコンテキスト増加・常時コスト(overhead)・ツールエラーのカテゴリ分類・設定の棚卸しと未使用検出・プロンプト種別の分布・繰り返し失敗・再編集ループ |
| **ccusage** | **金額(USD)**。モデル別価格表と重複レコード排除を持つ。cclens はトークン量は出すが USD 換算を持たない |
| **同梱スクリプト** | プロンプト**本文**・生 transcript の時系列・**ツールの入出力本文**(実行コマンド・stdout/stderr・終了状態)・**全セッション横断の本文検索**・**compaction の発生記録**・分析対象範囲の明示 |

境界の理由:

- cclens は SQLite ストアへ抽出済みで、カテゴリ分類・静的トークンコスト・任意 SQL を備える。横断集計はここが最も速く正確
- cclens には価格表が無い(ソースにコスト計算が存在しない)。金額を問われたら必ず ccusage 系(`cost` サブコマンド)へ回す
- cclens はプロンプトを `instruct` / `steer` / `correct` / `question` の 4 ラベルへ集約して**本文を保持しない**。「どう書いたか」を読む観点はスクリプト側でしか扱えない
- cclens は compaction を差分計算時に補正する**ノイズとしてしか扱わない**(発生回数・トリガーを残さない)
Read the full skill on GitHub

Details

Skill name
session-insights
Path
skills/agent-ops/session-insights/SKILL.md
License
MIT
Repo updated
18 November 2026

FAQ

What does the Session Insights skill do?

Claude Code の過去セッション(transcript JSONL)・設定・運用パターンを cclens と同梱スクリプトで収集し、指定された分析観点に沿って傾向分析と改善案を出す。/session-insights で明示起動されたときのみ使用する。キーワードマッチによる自動起動はしない。起動時に分析観点の指定が必須。

How do I install the Session Insights skill?

Claude Code plugin: /plugin marketplace add yasunori0418/skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Session Insights popular?

It lives in yasunori0418/skills, which has 9 GitHub stars and 0 forks.

Related skills

Agent Teams

9

yasunori0418/skills

Claude Code の並列エージェント(agent teams・teammate)の後始末と無応答時の打ち切りルール。`name` を付けて Agent を起動するとき、TeamCreate でチームを組むとき、teammate から `idle_notification` が届いたとき、評価ループ等で次のイテレーションのエージェントを起動する前、エージェントの返信が届かないときに参照する。`name` を付けない通常のサブエージェント起動だけなら対象外。

AI, LLMs & Agents

Basic Design

9

yasunori0418/skills

spec.md の REQ-# を入力に、機能一覧・モジュール構成・インターフェース・データフローを持つ docs/dev/<対象>/basic-design.md を作成・改訂するスキル。/basic-design <対象名> で明示的に呼び出されたときのみ使用する。

Writing & Content

Biz Translate

9

yasunori0418/skills

技術的な内容を、技術用語を排したビジネス職向けの平易な説明文に翻訳する。`/biz-translate` と明示的に呼ばれたときのみ実行する。

Writing & Content

AI Build Buy Partner

9

tarunccet/pm-skills

Evaluate AI capability sourcing options across build, buy, fine-tune, and partner archetypes using a structured decision matrix. Use when deciding whether to build a custom model, use an LLM API, fine-tune a base model, or partner with an AI vendor.

AI, LLMs & Agents

Response Format

9

yasunori0418/skills

ファイル編集・コマンド実行・調査・複数ツール呼び出しを伴う作業の最終応答時に、指定の日本語Markdownテンプレ(タイトル/解釈の要約/対応内容/影響)で対応内容を報告する。複数ターンに分かれた作業の最終完了時、複数ファイル編集を含む実装完了時、調査・分析タスクの結果報告時、新規ファイル作成を伴う作業の完了時に必ず参照する。単発の質問への即答(ツール呼び出しなし、または1〜2回のRead/Bashのみ)は対象外。

AI, LLMs & Agents

AI Data Strategy

9

tarunccet/pm-skills

Define a data strategy for AI products covering training data requirements, data quality, labeling strategy, feedback loops, and continuous retraining. Use when assessing data readiness for an AI feature, designing a data flywheel, or planning an ML data pipeline.

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.