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:
@@ -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,7 +118,7 @@ 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()
@@ -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:
@@ -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,13 +239,13 @@ 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
@@ -253,6 +253,6 @@ Performs integrity checks:
- `/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.