mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
更新所有命令文档以提高可读性和一致性: - 移除所有表情符号(⚠️, ✅, ❌, ▸等),使用纯文本替代 - 统一标题格式,改进章节结构 - 简化状态指示器和格式标记 - 添加三个新的命令模板规范文档 新增文档: - COMMAND_FLOW_STANDARD.md - 标准命令流程规范 - COMMAND_TEMPLATE_EXECUTOR.md - 执行器命令模板 - COMMAND_TEMPLATE_ORCHESTRATOR.md - 编排器命令模板 影响范围: - CLI命令(cli-init, codex-execute, discuss-plan, execute) - 内存管理命令(skill-memory, tech-research, workflow-skill-memory) - 任务管理命令(breakdown, create, execute, replan) - 工作流命令(所有workflow相关命令) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3.9 KiB
3.9 KiB
name, description, argument-hint
| name | description | argument-hint |
|---|---|---|
| create | Create implementation tasks with automatic context awareness | "task title" |
Task Create Command (/task:create)
Overview
Creates new implementation tasks with automatic context awareness and ID generation.
Core Principles
Task System: @~/.claude/workflows/task-core.md
Core Features
Automatic Behaviors
- ID Generation: Auto-generates IMPL-N format (max 2 levels)
- Context Inheritance: Inherits from active workflow session
- JSON Creation: Creates task JSON in active session
- Status Setting: Initial status = "pending"
- Agent Assignment: Suggests agent based on task type
- Session Integration: Updates workflow session stats
Context Awareness
- Validates active workflow session exists
- Avoids duplicate task IDs
- Inherits session requirements and scope
- Suggests task relationships
Usage
Basic Creation
/task:create "Build authentication module"
Output:
Task created: IMPL-1
Title: Build authentication module
Type: feature
Agent: code-developer
Status: pending
Task Types
feature- New functionality (default)bugfix- Bug fixesrefactor- Code improvementstest- Test implementationdocs- Documentation
Task Creation Process
- Session Validation: Check active workflow session
- ID Generation: Auto-increment IMPL-N
- Context Inheritance: Load workflow context
- Implementation Setup: Initialize implementation field
- Agent Assignment: Select appropriate agent
- File Creation: Save JSON to .task/ directory
- Session Update: Update workflow stats
Task Schema: See @~/.claude/workflows/task-core.md for complete JSON structure
Implementation Field Setup
Auto-Population Strategy
- Detailed info: Extract from task description and scope
- Missing info: Mark
pre_analysisas multi-step array format for later pre-analysis - Basic structure: Initialize with standard template
Analysis Triggers
When implementation details incomplete:
Task requires analysis for implementation details
Suggest running: gemini analysis for file locations and dependencies
File Management
JSON Task File
- Location:
.task/IMPL-[N].jsonin active session - Content: Complete task with implementation field
- Updates: Session stats only
Simple Process
- Validate session and inputs
- Generate task JSON
- Update session stats
- Notify completion
Context Inheritance
Tasks inherit from:
- Active Session - Requirements and scope from workflow-session.json
- Planning Document - Context from IMPL_PLAN.md
- Parent Task - For subtasks (IMPL-N.M format)
Agent Assignment
Based on task type and title keywords:
- Build/Implement → @code-developer
- Design/Plan → @planning-agent
- Test Generation → @code-developer (type: "test-gen")
- Test Execution/Fix → @test-fix-agent (type: "test-fix")
- Review/Audit → @universal-executor (optional, only when explicitly requested)
Validation Rules
- Session Check - Active workflow session required
- Duplicate Check - Avoid similar task titles
- ID Uniqueness - Auto-increment task IDs
- Schema Validation - Ensure proper JSON structure
Error Handling
# No workflow session
No active workflow found
Use: /workflow init "project name"
# Duplicate task
Similar task exists: IMPL-3
Continue anyway? (y/n)
# Max depth exceeded
Cannot create IMPL-1.2.1 (max 2 levels)
Use: IMPL-2 for new main task
Examples
Feature Task
/task:create "Implement user authentication"
Created IMPL-1: Implement user authentication
Type: feature
Agent: code-developer
Status: pending
Bug Fix
/task:create "Fix login validation bug" --type=bugfix
Created IMPL-2: Fix login validation bug
Type: bugfix
Agent: code-developer
Status: pending