Initializes session with environment check and task status overview. Use when user mentions セッション開始, 作業開始, 状況確認, what should I work on, start session. Do NOT load for: 実装作業, レビュー, セッション途中の作業.
/plugin marketplace add Chachamaru127/claude-code-harness/plugin install claude-code-harness@claude-code-harness-marketplaceThis skill is limited to using the following tools:
セッション開始時の環境確認と現在のタスク状況把握を行うスキル。
このスキルは以下のフレーズで起動します:
Session Init スキルは、Claude Code セッション開始時に自動的に以下を確認します:
セッション開始前にファイルサイズをチェック:
# Plans.md の行数チェック
if [ -f "Plans.md" ]; then
lines=$(wc -l < Plans.md)
if [ "$lines" -gt 200 ]; then
echo "⚠️ Plans.md が ${lines} 行です。/cleanup で整理を推奨"
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} 行です。/cleanup sessions で整理を推奨"
fi
fi
整理が必要な場合は提案を表示(作業には影響しない)。
Claude-mem が有効な場合、過去の文脈を自動表示:
# 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 有効時に表示する内容:
過去のガードレール発動:
mem-search で guard タイプの観測を検索直近の作業サマリー:
継続タスクの提案:
## 📚 過去の文脈(Claude-mem)
**ガードレール履歴**:
- テスト改ざん防止: 2回
**前回のセッション**:
- Feature X 設計完了
- RBAC 採用を決定
**💡 継続推奨**: Plans.md の「Feature X 実装」から開始
注: Claude-mem が未設定の場合、このステップはスキップされます。
以下を並列で実行:
# Git状態
git status -sb
git log --oneline -3
# Plans.md
cat Plans.md 2>/dev/null || echo "Plans.md not found"
# AGENTS.md の要点
head -50 AGENTS.md 2>/dev/null || echo "AGENTS.md not found"
Plans.md から以下を抽出:
cc:WIP - 前回から継続中のタスクpm:依頼中 - PM から新規依頼されたタスク(互換: cursor:依頼中)cc:TODO - 未着手だが割り当て済みのタスク## 🚀 セッション開始
**日時**: {{YYYY-MM-DD HH:MM}}
**ブランチ**: {{branch}}
---
### 📋 今日のタスク
**優先タスク**:
- {{pm:依頼中(互換: cursor:依頼中) または cc:WIP のタスク}}
**その他のタスク**:
- {{cc:TODO のタスク一覧}}
---
### ⚠️ 注意事項
{{AGENTS.md からの重要な制約・禁止事項}}
---
**作業を開始しますか?**
セッション開始時は、以下の情報を簡潔に提示:
| 項目 | 内容 |
|---|---|
| 現在のブランチ | staging など |
| 優先タスク | 最も重要な 1-2 件 |
| 注意事項 | 禁止事項の要約 |
| 次のアクション | 具体的な提案 |
/work - タスク実行(並列実行対応)/sync-status - Plans.md の進捗サマリー/cleanup - ファイルの自動整理/harness-init を案内This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.