Skip to main content
ClaudeWave
Skill2.7k repo starsupdated today

session-control

The session-control skill manages session state transitions in /work environments by processing --resume and --fork command flags. It updates session.json and session.events.jsonl files to enable workflow resumption or branching. Use this exclusively for internal Claude Code workflow orchestration, not for user-facing session management, authentication, or application state handling.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness /tmp/session-control && cp -r /tmp/session-control/opencode/skills/session-control ~/.claude/skills/session-control
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Session Control Skill

/work の `--resume` / `--fork` フラグに応じてセッション状態を切り替える。

## 機能詳細

| 機能 | 詳細 |
|------|------|
| **セッション再開/分岐** | See [references/session-control.md](${CLAUDE_SKILL_DIR}/references/session-control.md) |

## 実行手順

1. workflow から渡された変数を確認
2. `scripts/session-control.sh` を適切な引数で実行
3. `session.json` と `session.events.jsonl` の更新を確認