mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
feat: Add comprehensive test generation and evaluation commands
- Introduced `/workflow:test-gen` command to automate test workflow generation based on completed implementation tasks, including detailed lifecycle phases, task decomposition, and agent assignment. - Implemented `/workflow:concept-eval` command for pre-planning evaluation of concepts, assessing feasibility, risks, and optimization recommendations using strategic and technical analysis tools. - Added `/workflow:docs` command for generating hierarchical architecture and API documentation, with structured task creation and session management. - Developed `/workflow:status` command to provide on-demand views of workflow state, supporting multiple formats and validation checks for task integrity and relationships.
This commit is contained in:
@@ -1,69 +1,82 @@
|
||||
---
|
||||
name: start
|
||||
description: Start a new workflow session
|
||||
usage: /workflow:session:start "task description"
|
||||
|
||||
description: Discover existing sessions or start a new workflow session with intelligent session management
|
||||
usage: /workflow:session:start [task_description]
|
||||
argument-hint: [optional: task description for new session]
|
||||
examples:
|
||||
- /workflow:session:start "implement OAuth2 authentication"
|
||||
- /workflow:session:start "fix login bug"
|
||||
- /workflow:session:start
|
||||
---
|
||||
|
||||
# Start Workflow Session (/workflow:session:start)
|
||||
|
||||
## Purpose
|
||||
Initialize a new workflow session for the given task description.
|
||||
## Overview
|
||||
Manages workflow sessions - discovers existing active sessions or creates new ones.
|
||||
|
||||
## Usage
|
||||
```bash
|
||||
/workflow/session/start "task description"
|
||||
/workflow:session:start # Discover/select existing sessions
|
||||
/workflow:session:start "task description" # Create new session
|
||||
```
|
||||
|
||||
## Automatic Behaviors
|
||||
## Implementation Flow
|
||||
|
||||
### Session Creation
|
||||
- Generates unique session ID: WFS-[topic-slug]
|
||||
- Creates `.workflow/.active-[session-name]` marker file
|
||||
- Deactivates any existing active session
|
||||
|
||||
### Complexity Detection
|
||||
Automatically determines complexity based on task description:
|
||||
- **Simple**: Single module, <5 tasks
|
||||
- **Medium**: Multiple modules, 5-15 tasks
|
||||
- **Complex**: Large scope, >15 tasks
|
||||
|
||||
### Directory Structure
|
||||
Creates session directory with:
|
||||
```
|
||||
.workflow/WFS-[topic-slug]/
|
||||
├── workflow-session.json # Session metadata
|
||||
├── IMPL_PLAN.md # Initial planning template
|
||||
├── .task/ # Task management
|
||||
└── reports/ # Report generation
|
||||
### Step 1: Check for Active Sessions
|
||||
```bash
|
||||
ls .workflow/.active-* 2>/dev/null
|
||||
```
|
||||
|
||||
### Phase Initialization
|
||||
- **Simple**: Ready for direct implementation
|
||||
- **Medium/Complex**: Ready for planning phase
|
||||
### Step 2: List Existing Sessions
|
||||
```bash
|
||||
ls -1 .workflow/WFS-* 2>/dev/null | head -5
|
||||
```
|
||||
|
||||
## Session State
|
||||
Creates `workflow-session.json` with:
|
||||
- Session ID and description
|
||||
- Current phase: INIT → PLAN
|
||||
- Document tracking
|
||||
- Task system configuration
|
||||
- Active marker reference
|
||||
### Step 3: Create New Session (if needed)
|
||||
```bash
|
||||
mkdir -p .workflow
|
||||
echo "auth-system" | sed 's/[^a-zA-Z0-9]/-/g' | tr '[:upper:]' '[:lower:]'
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
After starting a session:
|
||||
- Use `/workflow/plan` to create implementation plan
|
||||
- Use `/workflow/execute` to begin implementation
|
||||
- Use `/context` to view session status
|
||||
### Step 4: Create Session Directory Structure
|
||||
```bash
|
||||
mkdir -p .workflow/WFS-auth-system/.process
|
||||
mkdir -p .workflow/WFS-auth-system/.task
|
||||
mkdir -p .workflow/WFS-auth-system/.summaries
|
||||
```
|
||||
|
||||
## Error Handling
|
||||
- **Duplicate session**: Warns if similar session exists
|
||||
- **Invalid description**: Prompts for valid task description
|
||||
- **Directory conflicts**: Handles existing directories gracefully
|
||||
### Step 5: Create Session Metadata
|
||||
```bash
|
||||
echo '{"session_id":"WFS-auth-system","project":"authentication system","status":"planning"}' > .workflow/WFS-auth-system/workflow-session.json
|
||||
```
|
||||
|
||||
---
|
||||
### Step 6: Mark Session as Active
|
||||
```bash
|
||||
touch .workflow/.active-WFS-auth-system
|
||||
```
|
||||
|
||||
**Creates**: New active workflow session ready for planning and execution
|
||||
### Step 7: Clean Old Active Markers (if creating new)
|
||||
```bash
|
||||
rm .workflow/.active-WFS-* 2>/dev/null
|
||||
```
|
||||
|
||||
## Simple Bash Commands
|
||||
|
||||
### Basic Operations
|
||||
- **Check sessions**: `ls .workflow/.active-*`
|
||||
- **List sessions**: `ls .workflow/WFS-*`
|
||||
- **Create directory**: `mkdir -p .workflow/WFS-session-name/.process`
|
||||
- **Create file**: `echo 'content' > .workflow/session/file.json`
|
||||
- **Mark active**: `touch .workflow/.active-WFS-session-name`
|
||||
- **Clean markers**: `rm .workflow/.active-*`
|
||||
|
||||
### No Complex Logic
|
||||
- No variables or functions
|
||||
- No conditional statements
|
||||
- No loops or pipes
|
||||
- Direct bash commands only
|
||||
|
||||
## Related Commands
|
||||
- `/workflow:plan` - Uses this for session management
|
||||
- `/workflow:execute` - Uses this for session discovery
|
||||
- `/workflow:session:status` - Shows session information
|
||||
Reference in New Issue
Block a user