--- description: dagang --- ```mermaid flowchart TD start_node_default([Start]) check_settings[check-settings] settings_exists_check{If/Else:
Conditional Branch} prompt_supplement_settings[您的小说设定尚未完整。请先补充以下设定内容后再进行大纲创作:] discuss_story_core[discuss-story-core] discuss_plot_conflicts[discuss-plot-conflicts] generate_outline[generate-outline] check_conflicts[check-conflicts] has_conflicts_check{If/Else:
Conditional Branch} resolve_conflicts{AskUserQuestion:
发现剧情与设定存在冲突,您希望如何处理?} apply_plot_changes[apply-plot-changes] end_node_default([End]) end_node_incomplete([End]) start_node_default --> check_settings check_settings --> settings_exists_check settings_exists_check -->|设定存在| discuss_story_core settings_exists_check -->|设定缺失| prompt_supplement_settings prompt_supplement_settings --> end_node_incomplete discuss_story_core --> discuss_plot_conflicts discuss_plot_conflicts --> generate_outline generate_outline --> check_conflicts check_conflicts --> has_conflicts_check has_conflicts_check -->|有冲突| resolve_conflicts has_conflicts_check -->|无冲突| end_node_default resolve_conflicts -->|保留剧情,修改设定| apply_plot_changes resolve_conflicts -->|保留设定,修改剧情| apply_plot_changes resolve_conflicts -->|重新审视| apply_plot_changes apply_plot_changes --> check_conflicts ``` ## 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_supplement_settings(您的小说设定尚未完整。请先补充以下设定内容后再进行大纲创作:) ``` 您的小说设定尚未完整。请先补充以下设定内容后再进行大纲创作: 1. 世界观设定(时代背景、地理环境、社会结构等) 2. 角色设定(主要角色性格、背景、动机等) 3. 核心主题/内核(您想通过故事表达什么) 请补充完整设定后重新启动流程。 ``` ### AskUserQuestion Node Details Ask the user and proceed based on their choice. #### resolve_conflicts(发现剧情与设定存在冲突,您希望如何处理?) **Selection mode:** Single Select (branches based on the selected option) **Options:** - **保留剧情,修改设定**: 剧情更重要,相应调整原有设定以配合剧情发展 - **保留设定,修改剧情**: 设定更核心,调整剧情使其符合原有设定 - **重新审视**: 需要进一步讨论,综合考虑后决定 ### If/Else Node Details #### settings_exists_check(Binary Branch (True/False)) **Branch conditions:** - **设定存在**: 设定文件已存在且内容完整 - **设定缺失**: 设定文件不存在或内容不完整 **Execution method**: Evaluate the results of the previous processing and automatically select the appropriate branch based on the conditions above. #### has_conflicts_check(Binary Branch (True/False)) **Branch conditions:** - **有冲突**: 检测到剧情与设定存在冲突 - **无冲突**: 未发现冲突或所有冲突已解决 **Execution method**: Evaluate the results of the previous processing and automatically select the appropriate branch based on the conditions above.