Files
Claude-Code-Workflow/.claude/commands/workflow/issue/update.md
catlog22 754f9b8da0 修复所有命令文件的usage格式:斜杠改为冒号
统一命令调用格式从 /workflow/session/list 改为 /workflow:session:list

## 修复范围
- workflow/session/: 6个子命令 (start, pause, resume, list, status, switch)
- workflow/issue/: 4个子命令 (create, list, update, close)
- workflow/: 3个主命令 (plan, execute, review)
- task/: 4个命令 (create, execute, breakdown, replan)
- gemini/: 3个命令 (chat, execute, analyze)

## 格式统一
- usage行: /workflow:session:list
- examples: /workflow:session:start "任务"
- 标题: # Command (/workflow:session:start)
- 内容引用: 所有命令路径统一使用冒号格式

## 验证完成
 24个命令文件全部采用统一格式
 所有examples和内容引用保持一致
 parent字段同步更新

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 16:32:41 +08:00

3.2 KiB

name, description, usage, parent, examples
name description usage parent examples
workflow-issue-update Update an existing workflow issue /workflow:issue:update <issue-id> [changes] /workflow:issue
/workflow:issue:update ISS-001
/workflow:issue:update ISS-001 --priority=critical
/workflow:issue:update ISS-001 --status=closed

Update Workflow Issue (/workflow:issue:update)

Purpose

Modify attributes and status of an existing workflow issue.

Usage

/workflow:issue:update <issue-id> [options]

Quick Updates

Simple attribute changes:

/workflow:issue:update ISS-001 --priority=critical
/workflow:issue:update ISS-001 --status=closed
/workflow:issue:update ISS-001 --blocking
/workflow:issue:update ISS-001 --type=bug

Interactive Mode (Default)

Without options, opens interactive editor:

Issue ISS-001: Add OAuth2 social login support
Current Status: Open | Priority: High | Type: Feature

What would you like to update?
1. Status (open → closed/integrated)
2. Priority (high → critical/medium/low)  
3. Type (feature → bug/optimization/etc)
4. Description
5. Add comment
6. Toggle blocking status
7. Cancel

Choice: _

Available Updates

Status Changes

  • openclosed: Issue resolved
  • openintegrated: Linked to workflow task
  • closedopen: Reopen issue
  • integratedopen: Unlink from tasks

Priority Levels

  • critical: Urgent, blocking progress
  • high: Important, should address soon
  • medium: Standard priority
  • low: Nice-to-have, can defer

Issue Types

  • bug: Something broken that needs fixing
  • feature: New functionality to implement
  • optimization: Performance or efficiency improvement
  • refactor: Code structure improvement
  • documentation: Documentation updates

Additional Options

  • blocking/non-blocking: Whether issue blocks progress
  • description: Update issue description
  • comments: Add notes and updates

Update Process

Validation

  • Verifies issue exists in current session
  • Checks valid status transitions
  • Validates priority and type values

Change Tracking

  • Records update timestamp
  • Tracks who made changes
  • Maintains change history

File Updates

  • Updates ISS-XXX.json file
  • Refreshes issue-registry.json
  • Updates session statistics

Change History

Maintains audit trail:

{
  "changes": [
    {
      "timestamp": "2025-09-08T10:30:00Z",
      "field": "priority",
      "old_value": "high",
      "new_value": "critical",
      "reason": "Security implications discovered"
    }
  ]
}

Integration Effects

Task Integration

When status changes to "integrated":

  • Links to workflow task (optional)
  • Updates task context with issue reference
  • Creates bidirectional linking

Session Updates

  • Updates session issue statistics
  • Refreshes TodoWrite if applicable
  • Updates workflow progress tracking

Output

Shows:

  • What was changed
  • Before and after values
  • Integration status
  • Available next actions

Error Handling

  • Issue not found: Lists available issues
  • Invalid status: Shows valid transitions
  • Permission errors: Clear error messages
  • File corruption: Validates and repairs

Result: Issue successfully updated with change tracking and integration