mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-28 09:23:08 +08:00
Refactor and enhance workflow commands and skills
- Removed obsolete ccw-test command file. - Updated ccw command to include new team workflows and collaborative planning features. - Enhanced review-cycle skill with unified auto mode detection for streamlined user experience. - Improved team-quality-assurance monitoring command to utilize consistent auto mode detection. - Standardized auto mode detection across workflow-execute and workflow-multi-cli-plan skills. - Introduced cycle workflows for integration testing and refactoring with self-iterating capabilities. - Added detailed usage examples for new team workflows and collaborative planning commands.
This commit is contained in:
@@ -27,6 +27,15 @@ Unified code review orchestrator with mode-based routing. Detects input type and
|
||||
review-session.md review-module.md review-fix.md
|
||||
```
|
||||
|
||||
## Auto Mode Detection
|
||||
|
||||
```javascript
|
||||
// ★ 统一 auto mode 检测:-y/--yes 从 $ARGUMENTS 或 ccw 传播
|
||||
const autoYes = /\b(-y|--yes)\b/.test($ARGUMENTS)
|
||||
```
|
||||
|
||||
When `autoYes` is true, skip all interactive confirmations and use defaults throughout the review cycle phases.
|
||||
|
||||
## Mode Detection
|
||||
|
||||
```javascript
|
||||
@@ -56,6 +65,7 @@ Skill(skill="review-cycle", args="WFS-payment-integration")
|
||||
Skill(skill="review-cycle", args="") # Session: auto-detect
|
||||
Skill(skill="review-cycle", args="--fix .workflow/active/WFS-123/.review/") # Fix mode
|
||||
Skill(skill="review-cycle", args="--fix --resume") # Fix: resume
|
||||
Skill(skill="review-cycle", args="-y src/auth/**") # Auto mode (skip confirmations)
|
||||
|
||||
# Common flags (all modes):
|
||||
--dimensions=dim1,dim2,... Custom dimensions (default: all 7)
|
||||
|
||||
@@ -57,7 +57,7 @@ const SLEEP_CMD = process.platform === 'win32'
|
||||
: `sleep ${POLL_INTERVAL_SEC}`
|
||||
|
||||
// ★ 统一 auto mode 检测:-y/--yes 从 $ARGUMENTS 或 ccw 传播
|
||||
const autoMode = /\b(-y|--yes)\b/.test(args)
|
||||
const autoYes = /\b(-y|--yes)\b/.test(args)
|
||||
```
|
||||
|
||||
## Execution Steps
|
||||
@@ -123,7 +123,7 @@ for (const stageTask of pipelineTasks) {
|
||||
if (!stageComplete) {
|
||||
const elapsedMin = Math.round(pollCount * POLL_INTERVAL_SEC / 60)
|
||||
|
||||
if (autoMode) {
|
||||
if (autoYes) {
|
||||
// 自动模式:记录日志,自动跳过
|
||||
mcp__ccw-tools__team_msg({
|
||||
operation: "log", team: teamName, from: "coordinator",
|
||||
@@ -286,7 +286,7 @@ const summary = {
|
||||
|----------|------------|
|
||||
| Message bus unavailable | Fall back to TaskList polling only |
|
||||
| Stage timeout (交互模式) | AskUserQuestion:继续等待 / 跳过 / 终止流水线 |
|
||||
| Stage timeout (自动模式 `-y`/`--yes`) | 自动跳过,记录日志,继续流水线 |
|
||||
| Stage timeout (自动模式 `-y`/`--yes`,`autoYes`) | 自动跳过,记录日志,继续流水线 |
|
||||
| Teammate unresponsive (2x no response) | Respawn teammate with same task |
|
||||
| Deadlock detected (tasks blocked indefinitely) | Identify cycle, manually unblock |
|
||||
| Quality gate FAIL | Report to user, suggest targeted re-run |
|
||||
|
||||
@@ -41,7 +41,8 @@ When `--with-commit` flag is used:
|
||||
|
||||
**Flag Parsing**:
|
||||
```javascript
|
||||
const autoYes = $ARGUMENTS.includes('--yes') || $ARGUMENTS.includes('-y')
|
||||
// ★ 统一 auto mode 检测:-y/--yes 从 $ARGUMENTS 或 ccw 传播
|
||||
const autoYes = /\b(-y|--yes)\b/.test($ARGUMENTS)
|
||||
const withCommit = $ARGUMENTS.includes('--with-commit')
|
||||
```
|
||||
|
||||
@@ -170,7 +171,8 @@ bash(for dir in .workflow/active/WFS-*/; do [ -d "$dir" ] || continue; session=$
|
||||
|
||||
**Parse --yes flag**:
|
||||
```javascript
|
||||
const autoYes = $ARGUMENTS.includes('--yes') || $ARGUMENTS.includes('-y')
|
||||
// ★ 统一 auto mode 检测:-y/--yes 从 $ARGUMENTS 或 ccw 传播
|
||||
const autoYes = /\b(-y|--yes)\b/.test($ARGUMENTS)
|
||||
```
|
||||
|
||||
**Conditional Selection**:
|
||||
@@ -324,7 +326,8 @@ while (TODO_LIST.md has pending tasks) {
|
||||
|
||||
```javascript
|
||||
// Parse --yes flag
|
||||
const autoYes = $ARGUMENTS.includes('--yes') || $ARGUMENTS.includes('-y')
|
||||
// ★ 统一 auto mode 检测:-y/--yes 从 $ARGUMENTS 或 ccw 传播
|
||||
const autoYes = /\b(-y|--yes)\b/.test($ARGUMENTS)
|
||||
|
||||
if (autoYes) {
|
||||
// Auto mode: Complete session automatically
|
||||
|
||||
@@ -49,7 +49,13 @@ function detectMode() {
|
||||
Before dispatching, collect workflow preferences via AskUserQuestion:
|
||||
|
||||
```javascript
|
||||
if (mode === 'plan') {
|
||||
// ★ 统一 auto mode 检测:-y/--yes 从 $ARGUMENTS 或 ccw 传播
|
||||
const autoYes = /\b(-y|--yes)\b/.test($ARGUMENTS)
|
||||
|
||||
if (autoYes) {
|
||||
// 自动模式:跳过所有询问,使用默认值
|
||||
workflowPreferences = { autoYes: true }
|
||||
} else if (mode === 'plan') {
|
||||
const prefResponse = AskUserQuestion({
|
||||
questions: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user