一键导入
dandy-code-flow-simplifier
Simplify control flow with early returns, shallow nesting, explicit conditions, and readable branching.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Simplify control flow with early returns, shallow nesting, explicit conditions, and readable branching.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review AI-assisted code changes for continuation bias, missing context, architectural asymmetry, security gaps, and code ownership.
Review method and object APIs for argument count, option shape, boolean flags, object parameters, and fluent configuration.
Identify small, reusable components that can be isolated from a large codebase without prematurely forcing microservices.
Review error handling, logging, exception clarity, and debugging seams so failures stay visible and testable.
Review whether code works with framework conventions instead of fighting them with unnecessary abstractions, mixed ecosystems, or upgrade-hostile choices.
Review and improve names for variables, methods, classes, files, routes, booleans, units, and paired operations.
| name | dandy-code-flow-simplifier |
| description | Simplify control flow with early returns, shallow nesting, explicit conditions, and readable branching. |
| argument-hint | [file, diff, or code snippet] |
Use this skill when code has deep nesting, confusing else blocks, dense conditions, clever ternaries, assignments inside conditions, or negated boolean logic.
The output should flatten the happy path and make decision points easy to inspect and debug.
return, throw, continue, or break.else blocks made unnecessary by early exits.This skill may read and edit source files when asked to simplify flow. Add or update tests when control-flow changes could affect behavior.
Use configured artifact language for review output. Keep code syntax and identifiers consistent with the current project.