--- description: xigang --- ```mermaid flowchart TD start_node_default([Start]) check_outline{If/Else:
Conditional Branch} prompt_add_outline[请先创建小说大纲文件,然后再使用此助手。] end_no_outline([End]) check_progress{If/Else:
Conditional Branch} analyze_progress[analyze-progress] create_detailed_outline[create-detailed-outline] review_and_refine[review-and-refine] end_node_default([End]) start_node_default --> check_outline check_outline -->|存在大纲| check_progress check_outline -->|不存在大纲| prompt_add_outline prompt_add_outline --> end_no_outline check_progress -->|存在进度文件| create_detailed_outline check_progress -->|不存在进度文件| analyze_progress analyze_progress --> create_detailed_outline create_detailed_outline --> review_and_refine review_and_refine --> end_node_default ``` ## Workflow Execution Guide Follow the Mermaid flowchart above to execute the workflow. Each node type has specific execution methods as described below. ### Execution Methods by Node Type - **Rectangle nodes**: Execute Sub-Agents using the Task tool - **Diamond nodes (AskUserQuestion:...)**: Use the AskUserQuestion tool to prompt the user and branch based on their response - **Diamond nodes (Branch/Switch:...)**: Automatically branch based on the results of previous processing (see details section) - **Rectangle nodes (Prompt nodes)**: Execute the prompts described in the details section below ### Prompt Node Details #### prompt_add_outline(请先创建小说大纲文件,然后再使用此助手。) ``` 请先创建小说大纲文件,然后再使用此助手。 大纲文件应包含: - 故事背景设定 - 主要人物设定 - 整体剧情结构 - 主要情节节点 请创建大纲后重新运行。 ``` ### If/Else Node Details #### check_outline(Binary Branch (True/False)) **Branch conditions:** - **存在大纲**: 项目目录中存在大纲文件(outline.md或大纲.md或类似文件) - **不存在大纲**: 项目目录中不存在大纲文件 **Execution method**: Evaluate the results of the previous processing and automatically select the appropriate branch based on the conditions above. #### check_progress(Binary Branch (True/False)) **Branch conditions:** - **存在进度文件**: 项目中存在进度文档文件(progress.md或进度.md) - **不存在进度文件**: 项目中不存在进度文档文件 **Execution method**: Evaluate the results of the previous processing and automatically select the appropriate branch based on the conditions above.