Session Endのロゴ

Session End

コミュニティ
iamneilroberts
session-end

Wrap up a coding session — run a right-sized end-of-session self-critique, optionally curator-verify the claims, prepend a SESSION_LOG.md entry, and print a rename + counter summary. Use before you /clear or stop for the day. Triggers on `/session-end`, "end this session", "wrap up and log what we did".

概要

公開者iamneilroberts
リポジトリclaude-skills
スキル名session-end
スター
37
フォーク
6
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

End Coding Session

Wrap up the session: persist what was done, prepend a SESSION_LOG entry, and surface a session-rename suggestion.

Phase 1 — Take stock

Analyze what was accomplished:

  1. Files created/modified
  2. Git changes made during the session
  3. Tasks completed vs left open

While doing this, count three things (printed in Phase 5):

  • MEMORY_WRITES — auto-memory file edits (~/.claude/projects/*/memory/*.md) + any memory-MCP save calls made this session
  • COMMIT_COUNT — number of git commit invocations this session
  • SESSION_LOG_UPDATED — true/false depending on whether Phase 4 actually wrote an entry
bash
# Append session marker to the legacy per-session log if one exists
SESSION_FILE=$(ls -t .claude-sessions/session_*.log 2>/dev/null | head -1)
if [ -f "$SESSION_FILE" ]; then
  printf '\n=== Session Summary ===\nEnded: %s\n\n' "$(date)" >> "$SESSION_FILE"
fi

# Capture git context for Phase 4
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || true)
git diff --stat $(git rev-parse HEAD~1 2>/dev/null || echo HEAD) 2>/dev/null || echo "(no git changes this session)"

Phase 2 — Session-close self-critique (surface gaps before you log)

Right-size it — don't manufacture concerns. A long-but-simple session (few files, nothing risky, nothing shipped) gets one honest line ("nothing shaky; only X was deferred") and you're done. Scale up only when the work was complex, touched risky surfaces (auth / payments / prod / data / deletion), or shipped. Catch what got silently skipped or assumed — don't perform diligence. (From the r/ClaudeAI "I end every AI session with two questions" thread.)

When it's worth the deeper pass, answer as many as the session warrants:

  1. What are you least confident about right now? List every shaky spot — not one.
  2. What's the biggest thing being missed about this situation — what might I not realize?
  3. If this ships and breaks in 3 months, what's the most likely reason? (future fragility, distinct from present-state gaps.)
  4. What did you NOT do? Everything skipped, deferred, stubbed, or assumed — even things that felt out of scope.
  5. For each item surfaced in 1 and 4: name the exact test or command that would confirm or kill it. An uncertainty with no verification step is filler; a real gap comes with a way to check.

Capture, don't chase. This is a wrap-up inventory, not a fix-it session — do NOT start fixing what it surfaces. Route findings: items with a concrete check (from 5) → Phase 3 Curate; everything else → offer two routes and do the chosen one: (a) fold into the Pending / Handoff Notes below as a next-session instruction, or (b) /idea the standalone ones. Never let a finding evaporate; never let it derail the current task.

Skip this phase if Phase 1 found nothing meaningful — silence is a valid result, not a gap.

Phase 3 — Curate (verify before you log)

If a curator agent is available (attempt the dispatch, skip silently if not — ships here as agents/curator.md), dispatch it (Agent tool, subagent_type: curator) with Phase 1's accomplishments. It checks the claims against git/files, read-only environment checks, and the repo's invariants doc (e.g. LAWS.md) if any.

Apply the result before writing Phase 4:

  • Only log a claim as done if it came back VERIFIED.
  • A claim that came back UNVERIFIED may still be logged, but mark it as unverified in the entry (e.g. "deployed (unverified)") — never launder it into a flat assertion.
  • A claim that came back CONTRADICTED must NOT be logged as done. Surface it in the in-conversation summary's Handoff Notes as something the next session must fix or re-check.

Skip this phase only if Phase 1 found nothing meaningful (no files changed, no decisions, no commits).

Phase 4 — Prepend a SESSION_LOG.md entry

Determine the log path:

  • Git repo: $GIT_ROOT/SESSION_LOG.md
  • Otherwise: ~/SESSION_LOG.md

Draft a one-block entry — date, short title, 1–2 sentence summary, and a pointer to the main artifact (file path, commit SHA, PR URL, or issue ID — whichever best identifies "where does this session live"). Format (newest at top):

markdown
## YYYY-MM-DD — <Short title>

<1–2 sentence summary of what was done and why.>

Main artifact: <file path / commit SHA / issue ID / URL>

Skip the entry if nothing meaningful happened (no files changed, no decisions, no commits) — set SESSION_LOG_UPDATED=false and move on.

Prepend atomically (newest at top):

bash
LOG_PATH="${GIT_ROOT:-$HOME}/SESSION_LOG.md"
ENTRY=$(mktemp)
# Write the drafted entry to $ENTRY (Claude writes it via Write/Edit, not via this script)

if [ -s "$ENTRY" ]; then
  if [ -f "$LOG_PATH" ]; then
    { cat "$ENTRY"; printf '\n'; cat "$LOG_PATH"; } > "${LOG_PATH}.tmp" && mv "${LOG_PATH}.tmp" "$LOG_PATH"
  else
    cp "$ENTRY" "$LOG_PATH"
  fi
  echo "SESSION_LOG: $LOG_PATH"
fi
rm -f "$ENTRY"

Phase 5 — Print the close

Two lines exactly, for at-a-glance review and paste:

  1. Session rename suggestion (the user pastes this as the session name):

    Rename: [YYYY-MM-DD] <project-or-topic> - <what-was-done>

    Topic = the project / repo / domain worked in. "What was done" = the verb-phrase summary, ≤8 words.

  2. Counter summary:

    <N> memory updates · <N> commits · SESSION_LOG <updated|skipped>

If SESSION_LOG was skipped, say SESSION_LOG skipped (no meaningful changes) so it's clear that was a deliberate decision, not a bug.

Session Summary (in-conversation, before the close lines)

  • Accomplished — completed tasks, files changed, problems solved.
  • Pending — started-but-unfinished, known issues, recommended next steps.
  • Handoff Notes — key decisions, context for next session, blockers/dependencies. Any Phase 3 CONTRADICTED claim goes here.

よくある質問

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

Wrap up a coding session — run a right-sized end-of-session self-critique, optionally curator-verify the claims, prepend a SESSION_LOG.md entry, and print a rename + counter summary. Use before you /clear or stop for the day. Triggers on `/session-end`, "end this session", "wrap up and log what we did".

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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