Files
Claude-Code-Workflow/.claude/commands/workflow/session/list.md
catlog22 8b907ac80f feat(workflow): add comprehensive planning, resumption, review, status, and test generation commands
- Implemented `/workflow:plan` for creating detailed implementation plans with task decomposition and context gathering.
- Added `/workflow:resume` for intelligent session resumption with automatic progress analysis.
- Introduced `/workflow:review` for executing the final phase of quality validation and generating review reports.
- Developed `/workflow:status` to provide on-demand views of workflow status and task progress.
- Created `/workflow:test-gen` to generate comprehensive test workflows based on completed implementation tasks, ensuring full test coverage.
2025-09-29 21:22:39 +08:00

2.4 KiB

name, description, usage, examples
name description usage examples
list List all workflow sessions with status /workflow:session:list
/workflow:session:list

List Workflow Sessions (/workflow:session:list)

Overview

Display all workflow sessions with their current status, progress, and metadata.

Usage

/workflow:session:list       # Show all sessions with status

Implementation Flow

Step 1: Find All Sessions

ls .workflow/WFS-* 2>/dev/null

Step 2: Check Active Session

ls .workflow/.active-* 2>/dev/null | head -1

Step 3: Read Session Metadata

jq -r '.session_id, .status, .project' .workflow/WFS-session/workflow-session.json

Step 4: Count Task Progress

ls .workflow/WFS-session/.task/*.json 2>/dev/null | wc -l
ls .workflow/WFS-session/.summaries/*.md 2>/dev/null | wc -l

Step 5: Get Creation Time

jq -r '.created_at // "unknown"' .workflow/WFS-session/workflow-session.json

Simple Bash Commands

Basic Operations

  • List sessions: ls .workflow/WFS-*
  • Find active: ls .workflow/.active-*
  • Read session data: jq -r '.session_id, .status' session.json
  • Count tasks: ls .task/*.json | wc -l
  • Count completed: ls .summaries/*.md | wc -l
  • Get timestamp: jq -r '.created_at' session.json

Simple Output Format

Session List Display

Workflow Sessions:

✅ WFS-oauth-integration (ACTIVE)
   Project: OAuth2 authentication system
   Status: active
   Progress: 3/8 tasks completed
   Created: 2025-09-15T10:30:00Z

⏸️ WFS-user-profile (PAUSED)
   Project: User profile management
   Status: paused
   Progress: 1/5 tasks completed
   Created: 2025-09-14T14:15:00Z

📁 WFS-database-migration (COMPLETED)
   Project: Database schema migration
   Status: completed
   Progress: 4/4 tasks completed
   Created: 2025-09-13T09:00:00Z

Total: 3 sessions (1 active, 1 paused, 1 completed)

Status Indicators

  • : Active session
  • ⏸️: Paused session
  • 📁: Completed session
  • : Error/corrupted session

Quick Commands

# Count all sessions
ls .workflow/WFS-* | wc -l

# Show only active
ls .workflow/.active-* | basename | sed 's/^\.active-//'

# Show recent sessions
ls -t .workflow/WFS-*/workflow-session.json | head -3
  • /workflow:session:start - Create new session
  • /workflow:session:switch - Switch to different session
  • /workflow:session:status - Detailed session info