From 09c58ec0e52eca06e16420d676cff4113d55f206 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 15 Sep 2025 16:07:37 +0800 Subject: [PATCH] refactor: Reorganize template structure and consolidate cli-templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move planning-templates to .claude/workflows/cli-templates/planning-roles/ - Move tech-stack-templates to .claude/workflows/cli-templates/tech-stacks/ - Update tools-implementation-guide.md with comprehensive template documentation - Add planning role templates section with 10 specialized roles - Add tech stack templates section with 6 technology-specific templates - Simplify template quick reference map with consolidated base path structure 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../planning-roles}/business-analyst.md | 0 .../planning-roles}/data-architect.md | 0 .../planning-roles}/feature-planner.md | 0 .../planning-roles}/innovation-lead.md | 0 .../planning-roles}/product-manager.md | 0 .../planning-roles}/security-expert.md | 0 .../planning-roles}/system-architect.md | 0 .../planning-roles}/test-strategist.md | 0 .../planning-roles}/ui-designer.md | 0 .../planning-roles}/user-researcher.md | 0 .../cli-templates/tech-stacks}/go-dev.md | 0 .../cli-templates/tech-stacks}/java-dev.md | 0 .../tech-stacks}/javascript-dev.md | 0 .../cli-templates/tech-stacks}/python-dev.md | 0 .../cli-templates/tech-stacks}/react-dev.md | 0 .../tech-stacks}/typescript-dev.md | 0 .../workflows/tools-implementation-guide.md | 69 +++++++++++-------- 17 files changed, 40 insertions(+), 29 deletions(-) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/business-analyst.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/data-architect.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/feature-planner.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/innovation-lead.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/product-manager.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/security-expert.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/system-architect.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/test-strategist.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/ui-designer.md (100%) rename .claude/{planning-templates => workflows/cli-templates/planning-roles}/user-researcher.md (100%) rename .claude/{tech-stack-templates => workflows/cli-templates/tech-stacks}/go-dev.md (100%) rename .claude/{tech-stack-templates => workflows/cli-templates/tech-stacks}/java-dev.md (100%) rename .claude/{tech-stack-templates => workflows/cli-templates/tech-stacks}/javascript-dev.md (100%) rename .claude/{tech-stack-templates => workflows/cli-templates/tech-stacks}/python-dev.md (100%) rename .claude/{tech-stack-templates => workflows/cli-templates/tech-stacks}/react-dev.md (100%) rename .claude/{tech-stack-templates => workflows/cli-templates/tech-stacks}/typescript-dev.md (100%) diff --git a/.claude/planning-templates/business-analyst.md b/.claude/workflows/cli-templates/planning-roles/business-analyst.md similarity index 100% rename from .claude/planning-templates/business-analyst.md rename to .claude/workflows/cli-templates/planning-roles/business-analyst.md diff --git a/.claude/planning-templates/data-architect.md b/.claude/workflows/cli-templates/planning-roles/data-architect.md similarity index 100% rename from .claude/planning-templates/data-architect.md rename to .claude/workflows/cli-templates/planning-roles/data-architect.md diff --git a/.claude/planning-templates/feature-planner.md b/.claude/workflows/cli-templates/planning-roles/feature-planner.md similarity index 100% rename from .claude/planning-templates/feature-planner.md rename to .claude/workflows/cli-templates/planning-roles/feature-planner.md diff --git a/.claude/planning-templates/innovation-lead.md b/.claude/workflows/cli-templates/planning-roles/innovation-lead.md similarity index 100% rename from .claude/planning-templates/innovation-lead.md rename to .claude/workflows/cli-templates/planning-roles/innovation-lead.md diff --git a/.claude/planning-templates/product-manager.md b/.claude/workflows/cli-templates/planning-roles/product-manager.md similarity index 100% rename from .claude/planning-templates/product-manager.md rename to .claude/workflows/cli-templates/planning-roles/product-manager.md diff --git a/.claude/planning-templates/security-expert.md b/.claude/workflows/cli-templates/planning-roles/security-expert.md similarity index 100% rename from .claude/planning-templates/security-expert.md rename to .claude/workflows/cli-templates/planning-roles/security-expert.md diff --git a/.claude/planning-templates/system-architect.md b/.claude/workflows/cli-templates/planning-roles/system-architect.md similarity index 100% rename from .claude/planning-templates/system-architect.md rename to .claude/workflows/cli-templates/planning-roles/system-architect.md diff --git a/.claude/planning-templates/test-strategist.md b/.claude/workflows/cli-templates/planning-roles/test-strategist.md similarity index 100% rename from .claude/planning-templates/test-strategist.md rename to .claude/workflows/cli-templates/planning-roles/test-strategist.md diff --git a/.claude/planning-templates/ui-designer.md b/.claude/workflows/cli-templates/planning-roles/ui-designer.md similarity index 100% rename from .claude/planning-templates/ui-designer.md rename to .claude/workflows/cli-templates/planning-roles/ui-designer.md diff --git a/.claude/planning-templates/user-researcher.md b/.claude/workflows/cli-templates/planning-roles/user-researcher.md similarity index 100% rename from .claude/planning-templates/user-researcher.md rename to .claude/workflows/cli-templates/planning-roles/user-researcher.md diff --git a/.claude/tech-stack-templates/go-dev.md b/.claude/workflows/cli-templates/tech-stacks/go-dev.md similarity index 100% rename from .claude/tech-stack-templates/go-dev.md rename to .claude/workflows/cli-templates/tech-stacks/go-dev.md diff --git a/.claude/tech-stack-templates/java-dev.md b/.claude/workflows/cli-templates/tech-stacks/java-dev.md similarity index 100% rename from .claude/tech-stack-templates/java-dev.md rename to .claude/workflows/cli-templates/tech-stacks/java-dev.md diff --git a/.claude/tech-stack-templates/javascript-dev.md b/.claude/workflows/cli-templates/tech-stacks/javascript-dev.md similarity index 100% rename from .claude/tech-stack-templates/javascript-dev.md rename to .claude/workflows/cli-templates/tech-stacks/javascript-dev.md diff --git a/.claude/tech-stack-templates/python-dev.md b/.claude/workflows/cli-templates/tech-stacks/python-dev.md similarity index 100% rename from .claude/tech-stack-templates/python-dev.md rename to .claude/workflows/cli-templates/tech-stacks/python-dev.md diff --git a/.claude/tech-stack-templates/react-dev.md b/.claude/workflows/cli-templates/tech-stacks/react-dev.md similarity index 100% rename from .claude/tech-stack-templates/react-dev.md rename to .claude/workflows/cli-templates/tech-stacks/react-dev.md diff --git a/.claude/tech-stack-templates/typescript-dev.md b/.claude/workflows/cli-templates/tech-stacks/typescript-dev.md similarity index 100% rename from .claude/tech-stack-templates/typescript-dev.md rename to .claude/workflows/cli-templates/tech-stacks/typescript-dev.md diff --git a/.claude/workflows/tools-implementation-guide.md b/.claude/workflows/tools-implementation-guide.md index 02158cbb..75b60367 100644 --- a/.claude/workflows/tools-implementation-guide.md +++ b/.claude/workflows/tools-implementation-guide.md @@ -22,38 +22,49 @@ type: technical-guideline **Usage**: `$(cat ~/.claude/workflows/cli-templates/prompts/[category]/[template].txt)` +### 🎭 Planning Role Templates + +**Location**: `~/.claude/workflows/cli-templates/planning-roles/` + +**Specialized Planning Roles**: +- **business-analyst.md** - Business requirements and process analysis +- **data-architect.md** - Data modeling and architecture design +- **feature-planner.md** - Feature specification and planning +- **innovation-lead.md** - Innovation strategy and technology exploration +- **product-manager.md** - Product roadmap and user story management +- **security-expert.md** - Security architecture and threat modeling +- **system-architect.md** - System design and technical architecture +- **test-strategist.md** - Testing strategy and quality assurance +- **ui-designer.md** - User interface and experience design +- **user-researcher.md** - User research and requirements gathering + +**Usage**: `$(cat ~/.claude/workflows/cli-templates/planning-roles/[role].md)` + +### 🛠️ Tech Stack Templates + +**Location**: `~/.claude/workflows/cli-templates/tech-stacks/` + +**Technology-Specific Development Templates**: +- **go-dev.md** - Go development patterns and best practices +- **java-dev.md** - Java enterprise development standards +- **javascript-dev.md** - JavaScript development fundamentals +- **python-dev.md** - Python development conventions and patterns +- **react-dev.md** - React component development and architecture +- **typescript-dev.md** - TypeScript development guidelines and patterns + +**Usage**: `$(cat ~/.claude/workflows/cli-templates/tech-stacks/[stack]-dev.md)` + ### 📚 Template Quick Reference Map -**Full Path Format**: All templates use complete paths starting with `~/.claude/` +**Base Path**: `~/.claude/workflows/cli-templates/prompts/` -**Analysis Templates**: -- `~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt` - Pattern detection and convention analysis -- `~/.claude/workflows/cli-templates/prompts/analysis/architecture.txt` - System architecture review -- `~/.claude/workflows/cli-templates/prompts/analysis/security.txt` - Security vulnerability assessment -- `~/.claude/workflows/cli-templates/prompts/analysis/performance.txt` - Performance bottleneck analysis -- `~/.claude/workflows/cli-templates/prompts/analysis/quality.txt` - Code quality and maintainability review - -**Development Templates**: -- `~/.claude/workflows/cli-templates/prompts/development/feature.txt` - Feature implementation guidance -- `~/.claude/workflows/cli-templates/prompts/development/component.txt` - Component development patterns -- `~/.claude/workflows/cli-templates/prompts/development/refactor.txt` - Refactoring strategies -- `~/.claude/workflows/cli-templates/prompts/development/testing.txt` - Test generation and coverage -- `~/.claude/workflows/cli-templates/prompts/development/debugging.txt` - Issue diagnosis and resolution - -**Planning Templates**: -- `~/.claude/workflows/cli-templates/prompts/planning/task-breakdown.txt` - Task decomposition strategy -- `~/.claude/workflows/cli-templates/prompts/planning/migration.txt` - Migration planning and execution - -**Automation Templates**: -- `~/.claude/workflows/cli-templates/prompts/automation/scaffold.txt` - Project scaffolding automation -- `~/.claude/workflows/cli-templates/prompts/automation/deployment.txt` - Deployment configuration - -**Review Templates**: -- `~/.claude/workflows/cli-templates/prompts/review/code-review.txt` - Code review checklist - -**Integration Templates**: -- `~/.claude/workflows/cli-templates/prompts/integration/api-design.txt` - API design patterns -- `~/.claude/workflows/cli-templates/prompts/integration/database.txt` - Database schema design +**Templates by Category**: +- **analysis/** - pattern.txt, architecture.txt, security.txt, performance.txt, quality.txt +- **development/** - feature.txt, component.txt, refactor.txt, testing.txt, debugging.txt +- **planning/** - task-breakdown.txt, migration.txt +- **automation/** - scaffold.txt, deployment.txt +- **review/** - code-review.txt +- **integration/** - api-design.txt, database.txt ### 📂 File Pattern Wildcards