Session Summarizerのロゴ

Session Summarizer

コミュニティ
fimoklei
session-summarizer

Use when user runs /summarize command to capture session knowledge

概要

公開者fimoklei
リポジトリpm-ai-playbook
スキル名session-summarizer
スター
42
フォーク
8
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    fimokleiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSession SummarizerをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/fimoklei/pm-ai-playbook/tree/main/skills/agentic-skills/session-summarizer
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fimoklei/pm-ai-playbook.git /tmp/pm-ai-playbook
mkdir -p .claude/skills
cp -r /tmp/pm-ai-playbook/skills/agentic-skills/session-summarizer .claude/skills/session-summarizer
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSession Summarizerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSession Summarizerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Session Summarizerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Session Summarizer

Overview

Every session generates knowledge: decisions made, patterns that worked, problems encountered, questions that arose. Session summaries capture this for future compound learning.

Core principle: Document sessions to build knowledge that compounds across time.

When to Use

User runs /summarize command to create a session summary.

Create summaries to capture:

  • What worked and why
  • What didn't work and why
  • Questions encountered
  • Patterns to remember
  • Context for future sessions

Information Sources (Required)

You MUST integrate all three sources:

  1. Session logs: ~/.claude/projects/[project-path]/[session-id]/session-memory/summary.md

    • Contains context, decisions, learnings that commit messages miss
    • Read this FIRST before writing summary
  2. Git history: git log --oneline -n 20 and git diff since session start

    • What actually changed
    • Commit messages and patterns
  3. Conversation context: Your memory of the session

    • Questions asked, approaches tried, decisions made

Using session logs:

bash
# Find current session log
ls -la ~/.claude/projects/$(pwd | sed 's/\/Users\/[^/]*\/Projects\///g')/*/session-memory/summary.md | tail -1

# Read it
cat [path-from-above]

Summary Structure

markdown
# Session Summary - [Date]

## Context
[One-line: what was the goal/problem]

## Victories
- [What worked, solutions found]
- [Patterns that were effective]

## Failures
- [What didn't work, why]
- [Dead ends, wrong assumptions]

## Root Causes
- [For each failure above: What in your system prompt or tooling made you make this mistake?]
- [Analyze prompt assumptions, tool limitations, missing context that led to errors]
- [Example: "Assumed Write tool would create parent directories - tooling doesn't support this"]
- [Example: "System prompt emphasized speed over verification - led to skipping file reads"]

## Tough Questions
- [Questions that came up, answered or not]
- [Ambiguities encountered]

## Improvements
- [What could be better next time]
- [Patterns to codify, failures to document]

## Git Activity
- [Commit count, key changes]
- [Files modified, tests added]

## Next Session
- [Unfinished items, follow-ups needed]

Workflow

  1. User runs /summarize command
  2. Read session logs at ~/.claude/projects/.../summary.md
  3. Check git log and git diff
  4. Write structured summary integrating all three sources
  5. For each failure, analyze root causes in system prompt/tooling
  6. Ask user if they want summary saved anywhere specific

Root Cause Analysis

For each failure or mistake documented:

  • What in the system prompt made you assume something incorrect?
  • What tool limitations were you unaware of?
  • What context was missing that would have prevented the error?

Examples:

  • "Assumed Edit tool would preserve formatting - tool doesn't guarantee this"
  • "System prompt didn't mention needing parent directories - led to Write failures"
  • "Believed git hooks were disabled by default - prompt never specified"

Purpose: Understand what gaps in prompts or tooling cause errors, enabling systemic improvements.

Example

User: /summarize

You: "I'll create a session summary capturing what we accomplished and learned today."

[Read session logs, check git, write summary with root cause analysis...]

You: "Here's the summary:

Session Summary - 2025-01-18

Context

Fixed authentication bug in React app where tokens weren't persisting across page refreshes.

Victories

  • Identified root cause in localStorage timing
  • Implemented useEffect hook with proper dependencies
  • All tests pass, authentication now persists correctly

Failures

  • Initially tried sessionStorage (wrong storage type)
  • First useEffect implementation had dependency array issues causing infinite loops

Root Causes

  • sessionStorage attempt: System prompt didn't emphasize localStorage vs sessionStorage differences - I assumed sessionStorage would persist but it's page-scoped only
  • useEffect infinite loop: Tool limitations - no linter feedback in Edit tool, had to discover through testing rather than static analysis

Tough Questions

  • Should tokens go in httpOnly cookies instead of localStorage? (security trade-off)

Improvements

  • Add localStorage persistence patterns to project documentation
  • Consider adding ESLint rules for useEffect dependencies

Git Activity

  • 3 commits
  • Modified: src/hooks/useAuth.ts, src/components/Login.tsx
  • Added: tests for token persistence

Next Session

  • Consider cookie-based auth implementation for better security

Would you like me to save this anywhere specific, or is the session log sufficient?"

よくある質問

AIスキル「Session Summarizer」では何ができますか?

Use when user runs /summarize command to capture session knowledge

TypingMindでSession Summarizerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Session Summarizerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSession Summarizerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/fimoklei/pm-ai-playbook/tree/main/skills/agentic-skills/session-summarizerを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Session Summarizerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Session Summarizerは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSession Summarizerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Session Summarizer」は無料ですか?

fimokleiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇