refactor: Reorganize template structure and consolidate cli-templates

- 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 <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-09-15 16:07:37 +08:00
parent 12f9e34223
commit 09c58ec0e5
17 changed files with 40 additions and 29 deletions

View File

@@ -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