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: 実装作業, レビュー, セッション途中の作業.

16 stars

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

$curl -o ~/.claude/skills/session-init/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/cli-automation/session-init/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/session-init/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How session-init Compares

Feature / Agentsession-initStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

minitest-testing

16
from diegosouzapw/awesome-omni-skill

Write, review, and improve Minitest tests for Ruby on Rails applications. Covers model tests, controller tests, system tests, fixtures, and best practices from Rails Testing Guide.

init

16
from diegosouzapw/awesome-omni-skill

Initialize warehouse schema discovery. Generates .astro/warehouse.md with all table metadata for instant lookups. Run once per project, refresh when schema changes. Use when user says "/data:init" or asks to set up data discovery.

codex-sessions-skill-scan

16
from diegosouzapw/awesome-omni-skill

Daily skill health scan: analyze ~/.codex/sessions plus per-repo session logs under ~/dev (default last 1 day) and summarize skill invocations + likely failures for personal skills in ~/dev/agent-skills (missing paths, tool failures, complex-task word triggers). Optional: include best-effort local OTel signals.

aix-init

16
from diegosouzapw/awesome-omni-skill

Initialize or upgrade aix framework in a project. Detects tech stack, generates appropriate tier structure, and sets up Claude Code integration.

analyzing-git-sessions

16
from diegosouzapw/awesome-omni-skill

Analyzes git commits and changes within a timeframe or commit range, providing structured summaries for code review, retrospectives, work logs, or session documentation.

always-init

16
from diegosouzapw/awesome-omni-skill

Universal task initializer that automatically loads PAI context for all user requests. Ensures complete context availability (contacts, preferences, protocols) before responding to any task. (project, gitignored)

agentuity-cli-project-auth-init

16
from diegosouzapw/awesome-omni-skill

Set up Agentuity Auth for your project. Requires authentication. Use for managing authentication credentials

affinity-mcp-workflows

16
from diegosouzapw/awesome-omni-skill

Use when working with Affinity CRM via MCP tools - find entities, manage workflows, log interactions, prepare briefings, find warm intros. Also use when user mentions "pipeline", "deals", "relationship strength", or wants to prepare for meetings.

agentuity-cli-cloud-session-list

16
from diegosouzapw/awesome-omni-skill

List recent sessions. Requires authentication. Use for Agentuity cloud platform operations

init-agents

16
from diegosouzapw/awesome-omni-skill

Initialize or update AGENTS.md (or CLAUDE.md for Claude Code) with AI agent guidance. Use when user says 'init agents', 'create AGENTS.md', 'setup agent instructions', or wants project-specific AI coding assistant configuration.

agent-sdk-definitions

16
from diegosouzapw/awesome-omni-skill

Programmatic agent definitions for the Claude Agent SDK in TypeScript and Python. Use when creating agents for SDK-based applications rather than filesystem-based Claude Code.

agent-init

16
from diegosouzapw/awesome-omni-skill

Initialize or improve AGENTS.md files that define how coding agents operate in a repo. Use when asked to set up or replace an agent init command (Codex, Claude), standardize multi-agent behavior, or audit an existing AGENTS.md for clarity, commands, boundaries, and repo-specific context. For Claude Code, also create CLAUDE.md as a symlink to AGENTS.md.