refactor: Rename context command to workflow:status and reorganize structure

- Rename /context command to /workflow:status for better namespace organization
- Move command file from .claude/commands/context.md to .claude/commands/workflow/status.md
- Update all command references and usage examples in documentation
- Maintain all original functionality while improving command hierarchy
- Create workflow subdirectory for better command organization

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-09-15 16:55:21 +08:00
parent 09c58ec0e5
commit 61045bb44f

View File

@@ -1,16 +1,16 @@
--- ---
name: context name: workflow:status
description: Generate on-demand views from JSON task data description: Generate on-demand views from JSON task data
usage: /context [task-id] [--format=<format>] [--validate] usage: /workflow:status [task-id] [--format=<format>] [--validate]
argument-hint: [optional: task-id, format, validation] argument-hint: [optional: task-id, format, validation]
examples: examples:
- /context - /workflow:status
- /context impl-1 - /workflow:status impl-1
- /context --format=hierarchy - /workflow:status --format=hierarchy
- /context --validate - /workflow:status --validate
--- ---
# Context Command (/context) # Workflow Status Command (/workflow:status)
## Overview ## Overview
Generates on-demand views from JSON task data. No synchronization needed - all views are calculated from the current state of JSON files. Generates on-demand views from JSON task data. No synchronization needed - all views are calculated from the current state of JSON files.
@@ -35,7 +35,7 @@ Generates on-demand views from JSON task data. No synchronization needed - all v
### Default Overview ### Default Overview
```bash ```bash
/context /workflow:status
``` ```
Generates current workflow overview: Generates current workflow overview:
@@ -49,7 +49,7 @@ Generates current workflow overview:
- [⚠️] impl-1: Build authentication module (code-developer) - [⚠️] impl-1: Build authentication module (code-developer)
- [⚠️] impl-2: Setup user management (code-developer) - [⚠️] impl-2: Setup user management (code-developer)
## Completed Tasks ## Completed Tasks
- [✅] impl-0: Project setup - [✅] impl-0: Project setup
## Stats ## Stats
@@ -61,7 +61,7 @@ Generates current workflow overview:
### Specific Task View ### Specific Task View
```bash ```bash
/context impl-1 /workflow:status impl-1
``` ```
Shows detailed task information: Shows detailed task information:
@@ -95,7 +95,7 @@ Shows detailed task information:
### Hierarchy View ### Hierarchy View
```bash ```bash
/context --format=hierarchy /workflow:status --format=hierarchy
``` ```
Shows task relationships: Shows task relationships:
@@ -118,16 +118,16 @@ Shows task relationships:
### Data Loading ### Data Loading
```pseudo ```pseudo
function generate_context_view(task_id, format): function generate_workflow_status(task_id, format):
// Load all current data // Load all current data
session = load_workflow_session() session = load_workflow_session()
all_tasks = load_all_task_json_files() all_tasks = load_all_task_json_files()
// Filter if specific task requested // Filter if specific task requested
if task_id: if task_id:
target_task = find_task(all_tasks, task_id) target_task = find_task(all_tasks, task_id)
return generate_task_detail_view(target_task) return generate_task_detail_view(target_task)
// Generate requested format // Generate requested format
switch format: switch format:
case 'hierarchy': case 'hierarchy':
@@ -145,7 +145,7 @@ function generate_context_view(task_id, format):
### Basic Validation ### Basic Validation
```bash ```bash
/context --validate /workflow:status --validate
``` ```
Performs integrity checks: Performs integrity checks:
@@ -156,7 +156,7 @@ Performs integrity checks:
✅ All task JSON files are valid ✅ All task JSON files are valid
✅ Session file is valid and readable ✅ Session file is valid and readable
## Relationship Validation ## Relationship Validation
✅ All parent-child relationships are valid ✅ All parent-child relationships are valid
✅ All dependencies reference existing tasks ✅ All dependencies reference existing tasks
✅ No circular dependencies detected ✅ No circular dependencies detected
@@ -185,7 +185,7 @@ Performs integrity checks:
❌ Session file not found ❌ Session file not found
→ Initialize new workflow session? (y/n) → Initialize new workflow session? (y/n)
❌ Task impl-5 not found ❌ Task impl-5 not found
→ Available tasks: impl-1, impl-2, impl-3, impl-4 → Available tasks: impl-1, impl-2, impl-3, impl-4
``` ```
@@ -222,9 +222,9 @@ Performs integrity checks:
```bash ```bash
# Common workflow # Common workflow
/task:create "New feature" /task:create "New feature"
/context # Check current state /workflow:status # Check current state
/task:breakdown impl-1 /task:breakdown impl-1
/context --format=hierarchy # View new structure /workflow:status --format=hierarchy # View new structure
/task:execute impl-1.1 /task:execute impl-1.1
``` ```
@@ -239,20 +239,20 @@ Performs integrity checks:
### Custom Filtering ### Custom Filtering
```bash ```bash
# Show only active tasks # Show only active tasks
/context --format=tasks --filter=active /workflow:status --format=tasks --filter=active
# Show completed tasks only # Show completed tasks only
/context --format=tasks --filter=completed /workflow:status --format=tasks --filter=completed
# Show tasks for specific agent # Show tasks for specific agent
/context --format=tasks --agent=code-developer /workflow:status --format=tasks --agent=code-developer
``` ```
## Related Commands ## Related Commands
- `/task:create` - Create tasks (generates JSON data) - `/task:create` - Create tasks (generates JSON data)
- `/task:execute` - Execute tasks (updates JSON data) - `/task:execute` - Execute tasks (updates JSON data)
- `/task:breakdown` - Create subtasks (generates more JSON data) - `/task:breakdown` - Create subtasks (generates more JSON data)
- `/workflow:vibe` - Coordinate agents (uses context for coordination) - `/workflow:vibe` - Coordinate agents (uses workflow status for coordination)
This context system provides instant, accurate views of workflow state without any synchronization complexity or performance overhead. This workflow status system provides instant, accurate views of workflow state without any synchronization complexity or performance overhead.