--- description: yudao-code-review-fix --- ```mermaid flowchart TD start_node_default([Start]) prompt_input[请提供要审查的代码文件路径或Git diff信息。] subagent_review[subagent-review] switch_results{Switch:
Conditional Branch} prompt_pass[代码审查已通过!🎉] subagent_fix[subagent-fix] end_pass([End]) end_fix([End]) start_node_default --> prompt_input prompt_input --> subagent_review subagent_review --> switch_results switch_results -->|全部通过| prompt_pass switch_results -->|存在问题| subagent_fix prompt_pass --> end_pass subagent_fix --> end_fix ``` ## 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_input(请提供要审查的代码文件路径或Git diff信息。) ``` 请提供要审查的代码文件路径或Git diff信息。 支持以下输入方式: 1. 单个文件路径(如:src/views/system/post/index.vue) 2. 目录路径(如:src/views/system/post/) 3. Git diff 输出 4. 要审查的功能描述 请提供完整的信息以便进行代码审查。 ``` #### prompt_pass(代码审查已通过!🎉) ``` 代码审查已通过!🎉 所有代码都符合 ruoyi-vue-pro (芋道) 开发规范。 审查通过的项目: {请在此处列出通过的项目} 这是对代码质量的肯定,请继续保持! ``` ### Switch Node Details #### switch_results(Multiple Branch (2-N)) **Evaluation Target**: 检查审查结果中是否存在不符合规范的问题 **Branch conditions:** - **全部通过**: 没有发现任何不符合规范的问题 - **存在问题**: 发现一个或多个不符合规范的问题 - **default**: Other cases **Execution method**: Evaluate the results of the previous processing and automatically select the appropriate branch based on the conditions above.