mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
- session/start.md: Replace find/mkdir/echo with ccw session list/init - session/list.md: Replace find/jq with ccw session list/stats/read - session/resume.md: Replace jq status updates with ccw session status - session/complete.md: Replace jq/mv with ccw session archive - execute.md: Replace session discovery with ccw session list/status - code-developer.md: Replace jq context-package read with ccw session read Benefits: - Atomic operations (no temp files) - Auto workspace detection (works from subdirectories) - Auto session location detection (active/archived/lite) - Status history auto-tracking for tasks - Consistent error handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
87 lines
2.2 KiB
Markdown
87 lines
2.2 KiB
Markdown
---
|
|
name: resume
|
|
description: Resume the most recently paused workflow session with automatic session discovery and status update
|
|
---
|
|
|
|
# Resume Workflow Session (/workflow:session:resume)
|
|
|
|
## Overview
|
|
Resume the most recently paused workflow session, restoring all context and state.
|
|
|
|
## Usage
|
|
```bash
|
|
/workflow:session:resume # Resume most recent paused session
|
|
```
|
|
|
|
## Implementation Flow
|
|
|
|
### Step 1: Find Paused Sessions
|
|
```bash
|
|
ccw session list --location active
|
|
# Filter for sessions with status="paused"
|
|
```
|
|
|
|
### Step 2: Check Session Status
|
|
```bash
|
|
ccw session read WFS-session --type session
|
|
# Check .status field in response
|
|
```
|
|
|
|
### Step 3: Find Most Recent Paused
|
|
```bash
|
|
ccw session list --location active
|
|
# Sort by created_at, filter for paused status
|
|
```
|
|
|
|
### Step 4: Update Session Status to Active
|
|
```bash
|
|
ccw session status WFS-session active
|
|
# Or with full update:
|
|
ccw session update WFS-session --type session --content '{"status":"active","resumed_at":"2025-12-10T08:00:00Z"}'
|
|
```
|
|
|
|
## Simple Commands
|
|
|
|
### Basic Operations
|
|
- **List sessions**: `ccw session list --location active`
|
|
- **Check status**: `ccw session read WFS-xxx --type session`
|
|
- **Update status**: `ccw session status WFS-xxx active`
|
|
|
|
### Resume Result
|
|
```
|
|
Session WFS-user-auth resumed
|
|
- Status: active
|
|
- Paused at: 2025-09-15T14:30:00Z
|
|
- Resumed at: 2025-09-15T15:45:00Z
|
|
- Ready for: /workflow:execute
|
|
```
|
|
## session_manager Tool Alternative
|
|
|
|
Use `ccw tool exec session_manager` for session resume:
|
|
|
|
### Update Session Status
|
|
```bash
|
|
# Update status to active
|
|
ccw tool exec session_manager '{
|
|
"operation": "update",
|
|
"session_id": "WFS-xxx",
|
|
"content_type": "session",
|
|
"content": {
|
|
"status": "active",
|
|
"resumed_at": "2025-12-10T08:00:00Z"
|
|
}
|
|
}'
|
|
```
|
|
|
|
### Read Session Status
|
|
```bash
|
|
ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}'
|
|
```
|
|
|
|
### Operation Reference
|
|
| Old Pattern | session_manager |
|
|
|------------|-----------------|
|
|
| `jq -r '.status' session.json` | `{"operation":"read","content_type":"session"}` |
|
|
| `jq '.status = "active"' ... > temp.json && mv` | `{"operation":"update","content":{"status":"active"}}` |
|
|
| `jq '.resumed_at = "..."'` | `{"operation":"update","content":{"resumed_at":"..."}}` |
|