session-init
Initializes session with environment check and task status overview. Use when user mentions セッション開始, 作業開始, 状況確認, what should I work on, start session. Do NOT load for: 実装作業, レビュー, セッション途中の作業.
Best use case
session-init is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Initializes session with environment check and task status overview. Use when user mentions セッション開始, 作業開始, 状況確認, what should I work on, start session. Do NOT load for: 実装作業, レビュー, セッション途中の作業.
Teams using session-init should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/session-init/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How session-init Compares
| Feature / Agent | session-init | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Initializes session with environment check and task status overview. Use when user mentions セッション開始, 作業開始, 状況確認, what should I work on, start session. Do NOT load for: 実装作業, レビュー, セッション途中の作業.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Session Init Skill
セッション開始時の環境確認と現在のタスク状況把握を行うスキル。
---
## トリガーフレーズ
このスキルは以下のフレーズで起動します:
- 「セッション開始」
- 「作業開始」
- 「今日の作業を始める」
- 「状況を確認して」
- 「何をすればいい?」
- "start session"
- "what should I work on?"
---
## 概要
Session Init スキルは、Claude Code セッション開始時に自動的に以下を確認します:
1. **Git 状態**: 現在のブランチ、未コミットの変更
2. **Plans.md**: 進行中タスク、依頼されたタスク
3. **AGENTS.md**: 役割分担、禁止事項の確認
4. **前回セッション**: 引き継ぎ事項の確認
---
## 実行手順
### Step 0: ファイル状態チェック(自動整理)
セッション開始前にファイルサイズをチェック:
```bash
# Plans.md の行数チェック
if [ -f "Plans.md" ]; then
lines=$(wc -l < Plans.md)
if [ "$lines" -gt 200 ]; then
echo "⚠️ Plans.md が ${lines} 行です。「整理して」で整理を推奨"
fi
fi
# session-log.md の行数チェック
if [ -f ".claude/memory/session-log.md" ]; then
lines=$(wc -l < .claude/memory/session-log.md)
if [ "$lines" -gt 500 ]; then
echo "⚠️ session-log.md が ${lines} 行です。「セッションログを整理して」で整理を推奨"
fi
fi
```
整理が必要な場合は提案を表示(作業には影響しない)。
### Step 0.5: Claude-mem 文脈確認(オプション)
Claude-mem が有効な場合、過去の文脈を自動表示:
```bash
# Claude-mem の状態チェック
if [ -f "$HOME/.claude-mem/settings.json" ]; then
mode=$(cat ~/.claude-mem/settings.json | grep -o '"CLAUDE_MEM_MODE"[^,}]*' | cut -d'"' -f4)
if [ "$mode" = "harness" ] || [ "$mode" = "harness--ja" ]; then
echo "📚 Claude-mem (harness モード) が有効です"
fi
fi
```
**Claude-mem 有効時に表示する内容**:
1. **過去のガードレール発動**:
- `mem-search` で `guard` タイプの観測を検索
- 「このプロジェクトでは過去 N 回テスト改ざんを防止」
2. **直近の作業サマリー**:
- 最新のセッションサマリーを表示
- 「前回: Feature X の設計完了」
3. **継続タスクの提案**:
- Plans.md と組み合わせて次のアクションを提案
```markdown
## 📚 過去の文脈(Claude-mem)
**ガードレール履歴**:
- テスト改ざん防止: 2回
**前回のセッション**:
- Feature X 設計完了
- RBAC 採用を決定
**💡 継続推奨**: Plans.md の「Feature X 実装」から開始
```
> **注**: Claude-mem が未設定の場合、このステップはスキップされます。
### Step 1: 環境確認
以下を並列で実行:
```bash
# Git状態
git status -sb
git log --oneline -3
```
```bash
# Plans.md
cat Plans.md 2>/dev/null || echo "Plans.md not found"
```
```bash
# AGENTS.md の要点
head -50 AGENTS.md 2>/dev/null || echo "AGENTS.md not found"
```
### Step 2: タスク状況の把握
Plans.md から以下を抽出:
- `cc:WIP` - 前回から継続中のタスク
- `pm:依頼中` - PM から新規依頼されたタスク(互換: cursor:依頼中)
- `cc:TODO` - 未着手だが割り当て済みのタスク
### Step 3: 状況レポートの出力
```markdown
## 🚀 セッション開始
**日時**: {{YYYY-MM-DD HH:MM}}
**ブランチ**: {{branch}}
---
### 📋 今日のタスク
**優先タスク**:
- {{pm:依頼中(互換: cursor:依頼中) または cc:WIP のタスク}}
**その他のタスク**:
- {{cc:TODO のタスク一覧}}
---
### ⚠️ 注意事項
{{AGENTS.md からの重要な制約・禁止事項}}
---
**作業を開始しますか?**
```
---
## 出力フォーマット
セッション開始時は、以下の情報を簡潔に提示:
| 項目 | 内容 |
|------|------|
| 現在のブランチ | `staging` など |
| 優先タスク | 最も重要な 1-2 件 |
| 注意事項 | 禁止事項の要約 |
| 次のアクション | 具体的な提案 |
---
## 関連コマンド
- `/work` - タスク実行(並列実行対応)
- `/sync-status` - Plans.md の進捗サマリー
- `/cleanup` - ファイルの自動整理
---
## 注意事項
- **AGENTS.md を必ず確認**: 役割分担を把握してから作業開始
- **Plans.md が無い場合**: `/harness-init` を案内
- **前回の作業が中断している場合**: 継続するか確認Related Skills
kpi-definition-helper
Kpi Definition Helper - Auto-activating skill for Data Analytics. Triggers on: kpi definition helper, kpi definition helper Part of the Data Analytics skill category.
ecs-task-definition-creator
Ecs Task Definition Creator - Auto-activating skill for AWS Skills. Triggers on: ecs task definition creator, ecs task definition creator Part of the AWS Skills skill category.
definition-of-done-generator
Definition Of Done Generator - Auto-activating skill for Enterprise Workflows. Triggers on: definition of done generator, definition of done generator Part of the Enterprise Workflows skill category.
session-logs
Search your complete conversation history stored in session JSONL files. Use this when a user references older/parent conversations or asks what was said before.
terminal-session
tmux 持久化终端会话控制。通过向 tmux 发送按键、读取输出,管理 Claude Code、Codex、SSH 等长时间运行的交互式进程。跨多轮对话保持进程状态。需预装 tmux(Linux/macOS 默认提供;Windows 用户需 WSL2)。
../../../engineering/agenthub/skills/init/SKILL.md
No description provided.
memory-init
在当前目录下初始化记忆系统,生成 CLAUDE.md(可选 AGENT.md 给 Cursor 用)、MEMORY.md 和 memory/ 目录。当用户说"初始化记忆"、"搭建记忆"、"memory init"、"/memory-init"时触发。
session-handoff
Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state', 'create handoff', 'I need to pause', 'context is getting full', (6) resuming work with 'load handoff', 'resume from', 'continue where we left off'. Proactively suggests handoffs after substantial work (multiple file edits, complex debugging, architecture decisions). Solves long-running agent context exhaustion by enabling fresh agents to continue with zero ambiguity.
infinite-gratitude
Multi-agent research skill for parallel research execution (10 agents, battle-tested with real case studies).
chronicle-session-documenter
Document AI-assisted development sessions to Obsidian vault using Chronicle data. Works with MCP (fastest) or CLI commands (portable). Use when completing a coding session, creating development logs, or maintaining a knowledge base of past work. Automatically creates structured notes with metadata, summaries, and wikilinks.
session-memory
Manages cross-session learning and memory persistence. Use when user mentions 前回何をした, 履歴, 過去の作業, セッション記録, continue from before, session history. Do NOT load for: 実装作業, レビュー, 一時的な情報.
git-workspace-init
Initialize a new git worktree and branch for feature development or bug fixes. Use when: (1) Starting work on a new feature, (2) Beginning a bug fix, (3) Creating an isolated workspace for any task, (4) You want to work in parallel on multiple branches. This skill handles branch naming with conventional branch conventions, worktree creation, and remote push setup.