From 50570a982018067637c0935f2865f387fe7c4493 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sat, 7 Feb 2026 23:45:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E8=B7=AF=E5=BE=84=E8=87=B3=E7=94=A8=E6=88=B7=E4=B8=BB?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=EF=BC=8C=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/agents/issue-plan-agent.md | 4 ++-- .claude/agents/memory-bridge.md | 4 ++-- .codex/agents/issue-plan-agent.md | 4 ++-- .codex/agents/memory-bridge.md | 4 ++-- CHANGELOG.md | 14 +++++++------- ccw/src/commands/workflow.ts | 4 ++-- ccw/src/tools/generate-module-docs.ts | 2 +- ccw/src/tools/ui-generate-preview.js | 2 +- ccw/src/tools/update-module-claude.js | 2 +- .../visual/ui-generate-preview.visual.test.ts | 2 +- package.json | 2 +- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.claude/agents/issue-plan-agent.md b/.claude/agents/issue-plan-agent.md index 13c59d29..8a447458 100644 --- a/.claude/agents/issue-plan-agent.md +++ b/.claude/agents/issue-plan-agent.md @@ -344,7 +344,7 @@ Write({ file_path: filePath, content: newContent }) .workflow/issues/solutions/{issue-id}.jsonl ``` -Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cli-templates/schemas/solution-schema.json` +Each line is a solution JSON containing tasks. Schema: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json` ### 2.2 Return Summary @@ -384,7 +384,7 @@ Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cl **ALWAYS**: 1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) -2. Read schema first: `cat .claude/workflows/cli-templates/schemas/solution-schema.json` +2. Read schema first: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json` 3. Use ACE semantic search as PRIMARY exploration tool 4. Fetch issue details via `ccw issue status --json` 5. **Analyze failure history**: Check `issue.feedback` for type='failure', stage='execute' diff --git a/.claude/agents/memory-bridge.md b/.claude/agents/memory-bridge.md index 7b732bd2..c993e5d3 100644 --- a/.claude/agents/memory-bridge.md +++ b/.claude/agents/memory-bridge.md @@ -42,8 +42,8 @@ TodoWrite([ # 3. Launch parallel jobs (max 4) # Depth 5 example (Layer 3 - use multi-layer): -ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/analysis","tool":"gemini"}' & -ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/development","tool":"gemini"}' & +ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/analysis","tool":"gemini"}' & +ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/development","tool":"gemini"}' & # Depth 1 example (Layer 2 - use single-layer): ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/auth","tool":"gemini"}' & diff --git a/.codex/agents/issue-plan-agent.md b/.codex/agents/issue-plan-agent.md index 13c59d29..8a447458 100644 --- a/.codex/agents/issue-plan-agent.md +++ b/.codex/agents/issue-plan-agent.md @@ -344,7 +344,7 @@ Write({ file_path: filePath, content: newContent }) .workflow/issues/solutions/{issue-id}.jsonl ``` -Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cli-templates/schemas/solution-schema.json` +Each line is a solution JSON containing tasks. Schema: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json` ### 2.2 Return Summary @@ -384,7 +384,7 @@ Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cl **ALWAYS**: 1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) -2. Read schema first: `cat .claude/workflows/cli-templates/schemas/solution-schema.json` +2. Read schema first: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json` 3. Use ACE semantic search as PRIMARY exploration tool 4. Fetch issue details via `ccw issue status --json` 5. **Analyze failure history**: Check `issue.feedback` for type='failure', stage='execute' diff --git a/.codex/agents/memory-bridge.md b/.codex/agents/memory-bridge.md index 7b732bd2..c993e5d3 100644 --- a/.codex/agents/memory-bridge.md +++ b/.codex/agents/memory-bridge.md @@ -42,8 +42,8 @@ TodoWrite([ # 3. Launch parallel jobs (max 4) # Depth 5 example (Layer 3 - use multi-layer): -ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/analysis","tool":"gemini"}' & -ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/development","tool":"gemini"}' & +ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/analysis","tool":"gemini"}' & +ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/development","tool":"gemini"}' & # Depth 1 example (Layer 2 - use single-layer): ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/auth","tool":"gemini"}' & diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a44c0d6..716c72b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -767,10 +767,10 @@ This release introduces a comprehensive reorganization of the CLI template syste #### 📦 Modified Files **Templates** (19 renames, 2 directory removals): -- `.claude/workflows/cli-templates/prompts/analysis/` - 8 templates reorganized -- `.claude/workflows/cli-templates/prompts/development/` - 5 templates reorganized -- `.claude/workflows/cli-templates/prompts/planning/` - 5 templates reorganized -- `.claude/workflows/cli-templates/prompts/memory/` - 1 template reorganized +- `~/.ccw/workflows/cli-templates/prompts/analysis/` - 8 templates reorganized +- `~/.ccw/workflows/cli-templates/prompts/development/` - 5 templates reorganized +- `~/.ccw/workflows/cli-templates/prompts/planning/` - 5 templates reorganized +- `~/.ccw/workflows/cli-templates/prompts/memory/` - 1 template reorganized - Removed: `implementation/`, `review/` directories **Commands** (5 files, 21 references): @@ -781,8 +781,8 @@ This release introduces a comprehensive reorganization of the CLI template syste - `.claude/commands/workflow/tools/test-task-generate.md` **Documentation**: -- `.claude/workflows/intelligent-tools-strategy.md` -- `.claude/workflows/command-template-update-summary.md` (new) +- `~/.ccw/workflows/intelligent-tools-strategy.md` +- `~/.ccw/workflows/command-template-update-summary.md` (new) #### 🔗 Upgrade Notes @@ -1067,7 +1067,7 @@ This release consolidates the agent architecture and enhances workflow commands - `.claude/agents/universal-executor.md` - New consolidated agent definition - `.claude/commands/workflow/session/complete.md` - Enhanced session management - `.claude/commands/workflow/tools/context-gather.md` - Improved context filtering -- `.claude/workflows/cli-templates/prompts/archive/` - Legacy template archive +- `~/.ccw/workflows/cli-templates/prompts/archive/` - Legacy template archive --- diff --git a/ccw/src/commands/workflow.ts b/ccw/src/commands/workflow.ts index 88e04d3a..7ee45d4b 100644 --- a/ccw/src/commands/workflow.ts +++ b/ccw/src/commands/workflow.ts @@ -8,7 +8,7 @@ import { getPackageRoot as findPackageRoot, getPackageVersion } from '../utils/p // Workflow source directories (relative to package root) const WORKFLOW_SOURCES = [ - { name: '.claude/workflows', description: 'Claude workflows' }, + { name: '~/.ccw/workflows', description: 'Claude workflows' }, { name: '.claude/scripts', description: 'Claude scripts' }, { name: '.claude/templates', description: 'Claude templates' }, { name: '.codex/prompts', description: 'Codex prompts' }, @@ -314,7 +314,7 @@ function showWorkflowHelp(): void { console.log(chalk.white(' Examples:')); console.log(chalk.gray(' ccw workflow install # Install all workflows')); console.log(chalk.gray(' ccw workflow install -f # Force install')); - console.log(chalk.gray(' ccw workflow install --source .claude/workflows')); + console.log(chalk.gray(' ccw workflow install --source ~/.ccw/workflows')); console.log(chalk.gray(' ccw workflow list # List installed')); console.log(chalk.gray(' ccw workflow sync # Update workflows')); console.log(''); diff --git a/ccw/src/tools/generate-module-docs.ts b/ccw/src/tools/generate-module-docs.ts index 01184949..6257cc48 100644 --- a/ccw/src/tools/generate-module-docs.ts +++ b/ccw/src/tools/generate-module-docs.ts @@ -31,7 +31,7 @@ const DEFAULT_MODELS: Record = { }; // Template paths (relative to user home directory) -const TEMPLATE_BASE = '.claude/workflows/cli-templates/prompts/documentation'; +const TEMPLATE_BASE = '~/.ccw/workflows/cli-templates/prompts/documentation'; // Define Zod schema for validation const ParamsSchema = z.object({ diff --git a/ccw/src/tools/ui-generate-preview.js b/ccw/src/tools/ui-generate-preview.js index 9d3a7f5a..8514da00 100644 --- a/ccw/src/tools/ui-generate-preview.js +++ b/ccw/src/tools/ui-generate-preview.js @@ -40,7 +40,7 @@ function detectMatrixDimensions(prototypesDir) { function loadTemplate(templatePath) { const defaultPath = resolve( process.env.HOME || process.env.USERPROFILE, - '.claude/workflows/_template-compare-matrix.html' + '~/.ccw/workflows/_template-compare-matrix.html' ); const path = templatePath || defaultPath; diff --git a/ccw/src/tools/update-module-claude.js b/ccw/src/tools/update-module-claude.js index 4cbde532..50d5080e 100644 --- a/ccw/src/tools/update-module-claude.js +++ b/ccw/src/tools/update-module-claude.js @@ -130,7 +130,7 @@ function scanDirectoryStructure(targetPath, strategy) { function loadTemplate() { const templatePath = join( process.env.HOME || process.env.USERPROFILE, - '.claude/workflows/cli-templates/prompts/memory/02-document-module-structure.txt' + '~/.ccw/workflows/cli-templates/prompts/memory/02-document-module-structure.txt' ); if (existsSync(templatePath)) { diff --git a/ccw/tests/visual/ui-generate-preview.visual.test.ts b/ccw/tests/visual/ui-generate-preview.visual.test.ts index 67b4e64c..21077df1 100644 --- a/ccw/tests/visual/ui-generate-preview.visual.test.ts +++ b/ccw/tests/visual/ui-generate-preview.visual.test.ts @@ -150,7 +150,7 @@ function writePrototypeHtml(filePath: string, target: string, style: number, lay describe('ui_generate_preview visual regression', () => { const prototypesDir = mkdtempSync(join(tmpdir(), 'ccw-ui-generate-preview-')); - const templatePath = resolve(process.cwd(), '.claude/workflows/_template-compare-matrix.html'); + const templatePath = resolve(process.cwd(), '~/.ccw/workflows/_template-compare-matrix.html'); let server: StaticServer | undefined; let browser: import('playwright').Browser | undefined; diff --git a/package.json b/package.json index 416dcc55..f19dbc41 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ ".claude/agents/", ".claude/commands/", ".claude/output-styles/", - ".claude/workflows/", + "~/.ccw/workflows/", ".claude/scripts/", ".claude/prompt-templates/", ".claude/python_script/",