mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
refactor: Enforce 10-task limit and file cohesion across workflow system
- Update workflow-architecture.md: Streamline structure, enforce 10-task hard limit - Update workflow plan.md: Add file cohesion rules, similar functionality warnings - Update task breakdown.md: Manual breakdown controls, conflict detection - Update task-core.md: Sync JSON schema with workflow-architecture.md - Establish consistent 10-task maximum across all workflow commands - Add file cohesion enforcement to prevent splitting related files - Replace "Complex" classification with "Over-scope" requiring re-planning 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -37,8 +37,8 @@ You are a conceptual planning specialist focused on single-role strategic thinki
|
||||
## Analysis Method Integration
|
||||
|
||||
### Detection and Activation
|
||||
When receiving task prompt, check for analysis marker:
|
||||
- **[MULTI_STEP_ANALYSIS]** - Execute mandatory multi-step pre-execution analysis
|
||||
When receiving task prompt, check for flow control marker:
|
||||
- **[FLOW_CONTROL]** - Execute mandatory flow control steps with context accumulation
|
||||
- **ASSIGNED_ROLE** - Extract the specific role for focused analysis
|
||||
- **ANALYSIS_DIMENSIONS** - Load role-specific analysis dimensions
|
||||
|
||||
@@ -49,28 +49,28 @@ def handle_analysis_markers(prompt):
|
||||
dimensions = extract_value("ANALYSIS_DIMENSIONS", prompt)
|
||||
topic = extract_topic(prompt)
|
||||
|
||||
if "[MULTI_STEP_ANALYSIS]" in prompt:
|
||||
analysis_steps = extract_pre_analysis_array(prompt)
|
||||
for step in analysis_steps:
|
||||
if "[FLOW_CONTROL]" in prompt:
|
||||
flow_steps = extract_flow_control_array(prompt)
|
||||
context_vars = {}
|
||||
|
||||
for step in flow_steps:
|
||||
step_name = step["step"]
|
||||
action = step["action"]
|
||||
template = step["template"]
|
||||
method = step["method"]
|
||||
command = step["command"]
|
||||
output_to = step.get("output_to")
|
||||
on_error = step.get("on_error", "fail")
|
||||
|
||||
expanded_action = expand_brief_action(action, role, topic)
|
||||
# Process context variables in command
|
||||
processed_command = process_context_variables(command, context_vars)
|
||||
|
||||
if method == "gemini":
|
||||
result = execute_gemini_cli(
|
||||
command=f"bash(~/.claude/scripts/gemini-wrapper -p \"$(cat {template}) {expanded_action}\")",
|
||||
role_context=role,
|
||||
topic=topic
|
||||
)
|
||||
elif method == "codex":
|
||||
result = execute_codex_cli(
|
||||
command=f"bash(codex --full-auto exec \"$(cat {template}) {expanded_action}\")",
|
||||
role_context=role,
|
||||
topic=topic
|
||||
)
|
||||
integrate_autonomous_insights(result, role)
|
||||
try:
|
||||
result = execute_command(processed_command, role_context=role, topic=topic)
|
||||
if output_to:
|
||||
context_vars[output_to] = result
|
||||
except Exception as e:
|
||||
handle_step_error(e, on_error, step_name)
|
||||
|
||||
integrate_flow_results(context_vars, role)
|
||||
```
|
||||
|
||||
### Role-Specific Analysis Dimensions
|
||||
|
||||
Reference in New Issue
Block a user