mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-09 02:24:11 +08:00
Updates all command files to use consistent naming without parent field: - Remove parent field from all command frontmatter - Standardize name field to use simple names instead of prefixed names - Fix usage patterns for brainstorm commands to use proper workflow namespace - Add new medium-project-update.sh script for batch updates 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2.1 KiB
2.1 KiB
name, description, usage, examples
| name | description | usage | examples | ||
|---|---|---|---|---|---|
| switch | Switch to a different workflow session | /workflow:session:switch <session-id> |
|
Switch Workflow Session (/workflow:session:switch)
Purpose
Switch the active session to a different workflow session.
Usage
/workflow:session:switch <session-id>
Session Switching Process
Validation
- Verifies target session exists
- Checks session directory integrity
- Validates session state
Active Session Handling
- Automatically pauses currently active session
- Saves current session state
- Removes current
.active-*marker file
Target Session Activation
- Creates
.active-[target-session]marker file - Updates session status to "active"
- Loads session context and state
State Transition
Current Active → Paused (auto-saved)
Target Session → Active (context loaded)
Context Loading
After switching:
- Loads target session's phase and progress
- Restores appropriate agent context
- Makes session's documents available
- Updates TodoWrite to target session's tasks
Output
Displays:
- Previous active session (now paused)
- New active session details
- Current phase and progress
- Available next actions
Session ID Formats
Accepts various formats:
- Full ID:
WFS-oauth-integration - Partial match:
oauth(if unique) - Index from list:
1(from session list order)
Error Handling
- Session not found: Lists available sessions
- Invalid session: Shows session validation errors
- Already active: No-op with confirmation message
- Switch failure: Maintains current session, shows error
Quick Reference
After switching, shows:
- Session description and phase
- Recent activity and progress
- Suggested next commands
- Directory location
Integration
Commands executed after switch will:
- Use new active session context
- Save artifacts to new session directory
- Update new session's state and progress
Result: Different session is now active and ready for work