session-end
Skill9 starsChanged 3 months agoMITView on GitHub
進捗サマリーと再開用プロンプトを生成してsession-context.mdに保存する。作業の区切り、コンテキスト圧縮が近いとき、セッション終了時に使う。
- Commits and pushes
28 other projects use a version of this.
Adopted by
Most recently taken up by
- spizganed/skillstheir own version, first seen Nov 8, 2026
- edxleon/runspectortheir own version, first seen Nov 8, 2026
- salvo8519/fairmarktheir own version, first seen Nov 8, 2026
- puritysb/AgentDecktheir own version, first seen Nov 2, 2026
- ravindu57/SCMLtheir own version, first seen Nov 1, 2026
- IlyaGorsky/memory-toolkittheir own version, first seen Nov 1, 2026
Used with
Projects with it also use ship.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 28
- puritysb/AgentDeck★ 288same name
- faizkhairi/claude-code-blueprint★ 73same name
- Kanevry/session-orchestrator★ 53same name
- valpere/session-indexer★ 42same name
- namedtoaster/The-Last-Mile★ 39same name
- iamneilroberts/claude-skills★ 26same name
- IlyaGorsky/memory-toolkit★ 13same name
- edxleon/runspector★ 9same name
- freskhu/genesis★ 5same name
- jkm-4314/claude-code-skills★ 4same name
18 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-engineerSkill
- agent-browserSkill
- animation-principlesSkill
- architecture-expertSkill
- art-directionSkill
- auto-bugSkill
- auto-buildSkill
- auto-designSkill
- auto-taskSkill
- basic-reviewSkill
- biz-researcherSkill
- bug-fixSkill
- bug-investigateSkill
- bug-newSkill
- bug-proposeSkill
- build-context-siteSkill
- creative-coderSkill
- deep-reviewSkill
- design-assembleSkill
- design-componentsSkill
- design-critiqueSkill
- design-htmlSkill
- design-mockSkill
- design-ssotSkill
- design-uiSkill
- developer-specialistSkill
- docs-reverseSkill
- experience-planSkill
- frontend-implementationSkill
- image-prepSkill
- judgment-harnessSkill
- keyboard-shortcutsSkill
- manual-genSkill
- manual-guideSkill
- official-source-firstSkill
- pairSkill
- persona-designerSkill
- project-design-languageSkill
- project-initSkill
- proposition-reviewerSkill
- proto-loopSkill
- proto-mediumSkill
- pr-respondSkill
- repo-tourSkill
- security-expertSkill
- sensory-designSkill
- session-startSkill
- setupSkill
- task-detailSkill
- task-listSkill
- task-runSkill
- template-feedbackSkill
- template-inboxSkill
- testingSkill
- ui-designerSkill
- usability-psychologistSkill
The file
Files
[セッション] セッション終了
入力: $ARGUMENTS
- 省略可(現在のTaskListから自動取得)
🎯 目的
- セッション終了時に進捗を保存して、次回スムーズに再開できるようにする
- 未完了タスクと再開用プロンプトを生成する
- 中断しても何も失われない状態を作る
実行手順
1. 現在の状態確認
TaskListの確認:
TaskList を実行して現在のタスク状態を取得Git状態の確認:
git status
git log --oneline -52. 進捗サマリー生成
## 📋 セッション終了サマリー
### 完了したこと
- ✅ {completed_task_1}
- ✅ {completed_task_2}
### 未完了(次回継続)
- 🔄 {in_progress_task} - {進捗状況}
- ⏸️ {pending_task}
### 成果物
| 種別 | 内容 |
|------|------|
| コミット | {commit_count}件 ({commit_hashes}) |
| 新規ファイル | {new_files} |
| 変更ファイル | {modified_files} |
### 未コミットの変更
{git status の結果、あれば}3. 再開用プロンプト生成
## 🔄 次回再開用
### 再開プロンプト(コピー用)
> {task_description}
> 前回の進捗: {progress_summary}
> 残タスク: {remaining_tasks}
> 続きから再開してください。
### コンテキスト
- **ブランチ**: {current_branch}
- **最後のコミット**: {last_commit_hash} - {last_commit_message}
- **TaskList ID**: {task_list_id}(あれば)4. 未コミット変更の処理提案
未コミットの変更がある場合:
## ⚠️ 未コミットの変更あり
以下の選択肢があります:
1. **コミットする** - 変更を保存してセッション終了
2. **スタッシュする** - `git stash` で一時保存
3. **そのまま終了** - 変更は残るが、明示的な記録なし
どうしますか?5. 再開用コンテキストをファイルに保存
# .claude/session-context.md に保存
cat > .claude/session-context.md << 'EOF'
# セッションコンテキスト
## 前回の作業
- **日時**: {timestamp}
- **ブランチ**: {current_branch}
- **最後のコミット**: {last_commit_hash} - {last_commit_message}
## 進捗
- 完了: {completed_tasks}
- 未完了: {remaining_tasks}
## 再開用プロンプト
{resume_prompt}
## 次にやること
{next_actions}
EOF💡 次のセッション開始時に自動で読み込まれる
5.5 開発日誌へ追記(積み上げ)
session-context.md は上書きだが、history/journal.md は日々積み上げる引き継ぎ日誌。
最新の日付エントリを先頭に追記する(既存エントリは消さない)。
# ディレクトリの準備のみ。エントリ追記は下記の書式で行う
mkdir -p history
# ※ journal.md は gitignore 済み(クライアントに渡らない・ローカル保全)追記する書式(history/journal.md 冒頭の運用ルールに準拠):
## {YYYY-MM-DD}
### やったこと
- {完了したこと}
### 翌日への引き継ぎ
- {次回継続・判断メモ・クライアントとのやり取り}- 書く: ①その日やったこと ②翌日への引き継ぎ ③その場の判断メモ
- 書かない: 反省・振り返り・感情ログ(コストが高い)
- 同じ日に複数セッションがある場合は、その日のエントリに追記する
5.6 自律ループの中断状態を拾う(Loop Engineering 連携)
設計根拠:
meta/adr-lite.mdの ADR-012
/auto-task/auto-bug等の自律ループスキルは実行中にhistory/loop-state.mdへ状態を逐次書き出している。 セッション終了時にこのファイルを読み、未完了ループがあれば journal に「中断・再開ポイント」を明示して、次セッションでsession-startが拾えるようにする。
手順
- 状態ファイルの存在確認
[ -f history/loop-state.md ] && cat history/loop-state.md - 最新エントリの
statusを判定status: completed→ 正常終了。次の手順はスキップして良い。完了済みエントリはアーカイブ(ファイル末尾に "completed" セクションへ移動)または削除して構わないstatus: in_progress→ 中断。下記の引き継ぎ追記を行うstatus: blocked_by_bug/blocked_by_user_confirm→ ブロック中。原因を journal へ転記
journal.md の「翌日への引き継ぎ」に明示
今日のエントリの「翌日への引き継ぎ」セクションに、次の形で追加:
### 翌日への引き継ぎ - ...(既存の引き継ぎ) - 🔄 **中断中の自律ループ**: `/auto-task #<issue>` (branch: `<branch>`) - 最終アクション: `<last_action>` - 完了済みステップ: `task-run`, `local-checks` まで - 残ステップ: `basic-review` 以降 - **再開**: 同じ Issue 番号で `/auto-task #<issue>` を再起動するとループが続きから判定して再開- 状態ファイルは消さない: 次セッションで
session-startも拾うため、status: completed以外は保持
注意
- usage 切れ・API エラーで強制終了した場合、最終ステップが flush されていない可能性がある →
history/loop-state.mdのlast_actionとgit logを突き合わせて実態を判断する - 課金前確認プロンプトで止まった場合は
status: blocked_by_user_confirmを期待。これも引き継ぎへ記録
6. 終了確認
---
## ✅ セッション終了
**進捗**: {completed}/{total} タスク完了
**コンテキスト保存**: .claude/session-context.md
**次回再開**: 自動で読み込まれます
お疲れ様でした!
---出力例
## 📋 セッション終了サマリー
### 完了したこと
- ✅ PR #123 のレビューコメント対応(3件中2件)
- ✅ コミット2件作成
### 未完了(次回継続)
- 🔄 コメント#3の対応 - コード確認中
- ⏸️ git push
### 成果物
| 種別 | 内容 |
|------|------|
| コミット | 2件 (abc1234, def5678) |
| 変更ファイル | src/foo.ts, src/bar.ts |
---
## 🔄 次回再開用
### 再開プロンプト(コピー用)
> PR #123 のレビュー対応を再開
> 前回: コメント#1,#2 対応済み、#3 が残り
> `/pr-respond 123` で #3 から再開してください
### コンテキスト
- **ブランチ**: fix/review-123
- **最後のコミット**: def5678 - fix: nullチェック追加
---
## ✅ セッション終了
**進捗**: 2/3 タスク完了
**次回再開**: 上記プロンプトをコピーして使用
お疲れ様でした!連携スキル
/session-start- セッション開始時のゴール・完了条件明確化/pr-respond- PRレビューコメント対応/task-run- Issueベースのタスク実行
注意事項
- 未コミットの変更は必ず確認してから終了する
- 再開プロンプトは具体的に(曖昧だと次回コンテキストが失われる)
- TaskListがある場合はタスク状態も更新してから終了
自己評価
- 成功自信度: (1-10)
- 一言理由: {短く理由を記載}
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

