mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
重构 ccw cli 模板系统: - 新增 template-discovery.ts 模块,支持扁平化模板自动发现 - 添加 --rule <template> 选项,自动加载 protocol 和 template - 模板目录从嵌套结构 (prompts/category/file.txt) 迁移到扁平结构 (prompts/category-function.txt) - 更新所有 agent/command 文件,使用 $PROTO $TMPL 环境变量替代 $(cat ...) 模式 - 支持模糊匹配:--rule 02-review-architecture 可匹配 analysis-review-architecture.txt 其他更新: - Dashboard: 添加 Claude Manager 和 Issue Manager 页面 - Codex-lens: 增强 chain_search 和 clustering 模块 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
Analyze implementation patterns and code structure.
|
|
|
|
## Planning Required
|
|
Before providing analysis, you MUST:
|
|
1. Review all files in context (not just samples)
|
|
2. Identify patterns with file:line references
|
|
3. Distinguish good patterns from anti-patterns
|
|
4. Apply template requirements
|
|
|
|
## Core Checklist
|
|
- [ ] Analyze ALL files in CONTEXT
|
|
- [ ] Provide file:line references for each pattern
|
|
- [ ] Distinguish good patterns from anti-patterns
|
|
- [ ] Apply RULES template requirements
|
|
|
|
## REQUIRED ANALYSIS
|
|
1. Identify common code patterns and architectural decisions
|
|
2. Extract reusable utilities and shared components
|
|
3. Document existing conventions and coding standards
|
|
4. Assess pattern consistency and identify anti-patterns
|
|
5. Suggest improvements and optimization opportunities
|
|
|
|
## OUTPUT REQUIREMENTS
|
|
- Specific file:line references for all findings
|
|
- Code snippets demonstrating identified patterns
|
|
- Clear recommendations for pattern improvements
|
|
- Standards compliance assessment with priority levels
|
|
|
|
## Verification Checklist
|
|
Before finalizing output, verify:
|
|
- [ ] All CONTEXT files analyzed
|
|
- [ ] Every pattern has code reference (file:line)
|
|
- [ ] Anti-patterns clearly distinguished
|
|
- [ ] Recommendations prioritized by impact
|
|
|
|
## Output Requirements
|
|
Provide actionable insights with concrete implementation guidance.
|