From ffbc4a4b763943c5870d1ef37772c5fea6f59b87 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 29 Dec 2025 19:16:25 +0800 Subject: [PATCH] style(issue/new): use hybrid Phase + table flow diagram MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Combines sequential Phase structure with inline table for branching: - Phase 1-4 for overall flow clarity - Table for Score 0/1-2/3 decision branching - More compact and scannable than pure ASCII boxes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .claude/commands/issue/new.md | 59 +++++++++++++---------------------- 1 file changed, 21 insertions(+), 38 deletions(-) diff --git a/.claude/commands/issue/new.md b/.claude/commands/issue/new.md index 3d9d6e74..5f47417f 100644 --- a/.claude/commands/issue/new.md +++ b/.claude/commands/issue/new.md @@ -221,47 +221,30 @@ if (proceed) { } ``` -## Decision Flow +## Execution Flow ``` -┌─────────────────────────────────────────────────────────┐ -│ /issue:new │ -└─────────────────────────────────────────────────────────┘ - │ - ▼ - ┌────────────────────────┐ - │ Clarity Detection │ - │ (GitHub? Structure?) │ - └────────────────────────┘ - │ - ┌───────────────┼───────────────┐ - │ │ │ - ▼ ▼ ▼ - [Score 3] [Score 1-2] [Score 0] - GitHub URL Structured Text Vague Input - │ │ │ - ▼ ▼ ▼ - Parse Parse + AskUserQuestion - Direct ACE (quick) (1 question) - │ │ │ - │ max 3 files │ - │ max 3 keywords │ - │ │ │ - └───────────────┼───────────────┘ - │ - ▼ - ┌────────────────────────┐ - │ Auto-detect Lifecycle │ - │ (NO questions) │ - └────────────────────────┘ - │ - ▼ - ┌────────────────────────┐ - │ Create Issue │ - │ (confirm only if <2) │ - └────────────────────────┘ +Phase 1: Input Analysis + └─ Detect clarity score (GitHub URL? Structured text? Keywords?) -Note: Deep exploration → /issue:plan (not here) +Phase 2: Data Extraction (branched by clarity) + ┌────────────┬─────────────────┬──────────────┐ + │ Score 3 │ Score 1-2 │ Score 0 │ + │ GitHub │ Text + ACE │ Vague │ + ├────────────┼─────────────────┼──────────────┤ + │ gh CLI │ Parse struct │ AskQuestion │ + │ → parse │ + quick hint │ (1 question) │ + │ │ (3 files max) │ │ + └────────────┴─────────────────┴──────────────┘ + +Phase 3: Lifecycle Auto-Detection + └─ Infer test_strategy from affected files (NO questions) + +Phase 4: Create Issue + ├─ Score ≥ 2: Direct creation + └─ Score < 2: Confirm first → Create + +Note: Deep exploration deferred to /issue:plan ``` ## Helper Functions