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
usage: /context [task-id] [--format=<format>] [--validate]
usage: /workflow:status [task-id] [--format=<format>] [--validate]
argument-hint: [optional: task-id, format, validation]
examples:
- /context
- /context impl-1
- /context --format=hierarchy
- /context --validate
- /workflow:status
- /workflow:status impl-1
- /workflow:status --format=hierarchy
- /workflow:status --validate
---
# Context Command (/context)
# Workflow Status Command (/workflow:status)
## Overview
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
```bash
/context
/workflow:status
```
Generates current workflow overview:
@@ -61,7 +61,7 @@ Generates current workflow overview:
### Specific Task View
```bash
/context impl-1
/workflow:status impl-1
```
Shows detailed task information:
@@ -95,7 +95,7 @@ Shows detailed task information:
### Hierarchy View
```bash
/context --format=hierarchy
/workflow:status --format=hierarchy
```
Shows task relationships:
@@ -118,7 +118,7 @@ Shows task relationships:
### Data Loading
```pseudo
function generate_context_view(task_id, format):
function generate_workflow_status(task_id, format):
// Load all current data
session = load_workflow_session()
all_tasks = load_all_task_json_files()
@@ -145,7 +145,7 @@ function generate_context_view(task_id, format):
### Basic Validation
```bash
/context --validate
/workflow:status --validate
```
Performs integrity checks:
@@ -222,9 +222,9 @@ Performs integrity checks:
```bash
# Common workflow
/task:create "New feature"
/context # Check current state
/workflow:status # Check current state
/task:breakdown impl-1
/context --format=hierarchy # View new structure
/workflow:status --format=hierarchy # View new structure
/task:execute impl-1.1
```
@@ -239,13 +239,13 @@ Performs integrity checks:
### Custom Filtering
```bash
# Show only active tasks
/context --format=tasks --filter=active
/workflow:status --format=tasks --filter=active
# Show completed tasks only
/context --format=tasks --filter=completed
/workflow:status --format=tasks --filter=completed
# Show tasks for specific agent
/context --format=tasks --agent=code-developer
/workflow:status --format=tasks --agent=code-developer
```
## Related Commands
@@ -253,6 +253,6 @@ Performs integrity checks:
- `/task:create` - Create tasks (generates JSON data)
- `/task:execute` - Execute tasks (updates 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.