simplify

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Run the cdd-code-simplifier agent to review and simplify code for clarity, consistency, and maintainability.
运行cdd-code-simplifier Agent以审查并简化代码,提升代码的清晰性、一致性和可维护性。

Your Task

你的任务

Use the Task tool with
subagent_type: "cdd-code-simplifier"
to run the code simplifier.
Scope determination:
  1. If guidance was provided after
    /simplify
    , pass it to the agent as part of the prompt
  2. If no guidance provided, have the agent focus on recently modified files (use
    git diff --name-only main...HEAD
    or
    git status
    to identify them)
User guidance: $ARGUMENTS
After the agent completes:
  1. Review the changes made
  2. If changes were made, ask if the user wants to commit them
  3. Provide a brief summary of what was simplified
使用Task工具,设置
subagent_type: "cdd-code-simplifier"
来运行代码简化工具。
范围确定:
  1. 如果在
    /simplify
    后提供了指导说明,将其作为提示语的一部分传递给Agent
  2. 如果没有提供指导说明,让Agent专注于最近修改的文件(使用
    git diff --name-only main...HEAD
    git status
    来识别这些文件)
用户指导: $ARGUMENTS
Agent完成后:
  1. 审查所做的更改
  2. 如果有更改,询问用户是否要提交这些更改
  3. 简要总结简化的内容

Examples

示例

  • /simplify
    - Simplify recently modified files
  • /simplify focus on build.sh error handling
    - Simplify with specific guidance
  • /simplify only look at the new functions I added
    - Narrow the scope
  • /simplify
    - 简化最近修改的文件
  • /simplify focus on build.sh error handling
    - 根据特定指导进行简化
  • /simplify only look at the new functions I added
    - 缩小处理范围