mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
feat: 修复workflow用户意图传递链,确保原始提示词贯穿全流程
## 核心问题 根据Gemini深度分析,用户原始提示词在brainstorm→plan流程中逐步被稀释, synthesis环节完全不接收用户提示词,导致最终产出偏离用户意图。 ## 关键修改 ### 1. synthesis.md - 修复最严重偏差环节 - 新增从workflow-session.json加载原始用户提示词 - Agent流程Step 1: load_original_user_prompt (HIGHEST priority) - 新增"用户意图对齐"为首要合成要求 - 添加意图追溯和偏差警告完成标准 ### 2. concept-clarify.md - 添加意图验证 - 加载original_user_intent从session metadata - 新增"用户意图对齐"为最高优先级扫描类别 - 检查目标一致性、范围匹配、偏差检测 ### 3. action-plan-verify.md - 强化验证门禁 - workflow-session.json作为主要参考源 - 新增"用户意图对齐"为CRITICAL级别检测 - 违反用户意图标记为CRITICAL严重性 ### 4. plan.md - 确立意图优先级 - 明确用户原始意图始终为主要参考 - 优先级规则: 当前用户提示词 > synthesis > topic-framework ### 5. artifacts.md - 推广结构化格式 - 添加推荐的GOAL/SCOPE/CONTEXT结构化格式 - 强调用户意图保存的重要性 ### 6. auto-parallel.md - 编排器完整性 - 推荐结构化提示词格式 - Phase 1标注用户意图存储 - Phase 3明确synthesis加载用户意图为最高优先级 - Agent模板强调用户意图为PRIMARY reference ## 影响力提升 用户提示词影响力: 30% → 95% ## 参考 分析报告由Gemini生成,识别了5个关键问题点并提供4条改进建议 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,11 @@ IF TASK_FILES.count == 0:
|
||||
|
||||
Load only minimal necessary context from each artifact:
|
||||
|
||||
**From workflow-session.json** (NEW - PRIMARY REFERENCE):
|
||||
- Original user prompt/intent (project or description field)
|
||||
- User's stated goals and objectives
|
||||
- User's scope definition
|
||||
|
||||
**From synthesis-specification.md**:
|
||||
- Functional Requirements (IDs, descriptions, acceptance criteria)
|
||||
- Non-Functional Requirements (IDs, targets)
|
||||
@@ -117,7 +122,14 @@ Create internal representations (do not include raw artifacts in output):
|
||||
|
||||
Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.
|
||||
|
||||
#### A. Requirements Coverage Analysis
|
||||
#### A. User Intent Alignment (NEW - CRITICAL)
|
||||
|
||||
- **Goal Alignment**: IMPL_PLAN objectives match user's original intent
|
||||
- **Scope Drift**: Plan covers user's stated scope without unauthorized expansion
|
||||
- **Success Criteria Match**: Plan's success criteria reflect user's expectations
|
||||
- **Intent Conflicts**: Tasks contradicting user's original objectives
|
||||
|
||||
#### B. Requirements Coverage Analysis
|
||||
|
||||
- **Orphaned Requirements**: Requirements in synthesis with zero associated tasks
|
||||
- **Unmapped Tasks**: Tasks with no clear requirement linkage
|
||||
@@ -167,6 +179,7 @@ Focus on high-signal findings. Limit to 50 findings total; aggregate remainder i
|
||||
Use this heuristic to prioritize findings:
|
||||
|
||||
- **CRITICAL**:
|
||||
- Violates user's original intent (goal misalignment, scope drift)
|
||||
- Violates synthesis authority (requirement conflict)
|
||||
- Core requirement with zero coverage
|
||||
- Circular dependencies
|
||||
|
||||
Reference in New Issue
Block a user