mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
refactor: Optimize document passing strategy in workflow
- **concept-enhanced**: Add explicit priority for source documents - PRIMARY: role analysis.md files (complete technical details, ADRs) - SECONDARY: synthesis-specification.md (integrated requirements) - Framework: topic-framework.md (discussion context) - **task-generate**: Enhanced artifacts array with usage guidance - Add 'usage' field for each artifact type - Support dynamic role discovery - Reorder priority: synthesis (highest) → role_analysis (high) → framework (low) - **pre_analysis**: Add explicit artifact loading instructions - Note when to consult role analysis (API schemas, caching configs, design tokens) - Load system-architect, ui-designer, product-manager analyses - **implementation_approach**: Add clear priority instructions - Primary: Use synthesis-specification.md for requirements - Secondary: Refer to artifacts[] for technical details - Update logic_flow to include "Consult artifacts when needed" - **gitignore**: Add .workflow directory to ignore list 🎯 Result: Balanced strategy - 100% fidelity in analysis phase, 78% token efficiency in planning phase, hybrid approach in execution phase 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -169,7 +169,21 @@ Task(
|
||||
{
|
||||
"type": "synthesis_specification",
|
||||
"path": "{synthesis_spec_path}",
|
||||
"priority": "highest"
|
||||
"priority": "highest",
|
||||
"usage": "Primary requirement source - use for consolidated requirements and cross-role alignment"
|
||||
},
|
||||
{
|
||||
"type": "role_analysis",
|
||||
"path": "{role_analysis_path}",
|
||||
"priority": "high",
|
||||
"usage": "Technical/design/business details from specific roles. Common roles: system-architect (ADRs, APIs, caching), ui-designer (design tokens, layouts), product-manager (user stories, metrics)",
|
||||
"note": "Dynamically discovered - multiple role analysis files included based on brainstorming results"
|
||||
},
|
||||
{
|
||||
"type": "topic_framework",
|
||||
"path": "{topic_framework_path}",
|
||||
"priority": "low",
|
||||
"usage": "Discussion context and framework structure"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -203,12 +217,13 @@ Task(
|
||||
}
|
||||
],
|
||||
"implementation_approach": {
|
||||
"task_description": "Implement '[title]' following synthesis specification",
|
||||
"task_description": "Implement '[title]' following synthesis specification. PRIORITY: Use synthesis-specification.md as primary requirement source. When implementation needs technical details (e.g., API schemas, caching configs, design tokens), refer to artifacts[] for detailed specifications from original role analyses.",
|
||||
"modification_points": ["Apply requirements from synthesis"],
|
||||
"logic_flow": [
|
||||
"Load synthesis specification",
|
||||
"Analyze existing patterns",
|
||||
"Implement following specification",
|
||||
"Consult artifacts for technical details when needed",
|
||||
"Validate against acceptance criteria"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user