simplify
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRun 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 to run the code simplifier.
subagent_type: "cdd-code-simplifier"Scope determination:
- If guidance was provided after , pass it to the agent as part of the prompt
/simplify - If no guidance provided, have the agent focus on recently modified files (use or
git diff --name-only main...HEADto identify them)git status
User guidance: $ARGUMENTS
After the agent completes:
- Review the changes made
- If changes were made, ask if the user wants to commit them
- Provide a brief summary of what was simplified
使用Task工具,设置来运行代码简化工具。
subagent_type: "cdd-code-simplifier"范围确定:
- 如果在后提供了指导说明,将其作为提示语的一部分传递给Agent
/simplify - 如果没有提供指导说明,让Agent专注于最近修改的文件(使用或
git diff --name-only main...HEAD来识别这些文件)git status
用户指导: $ARGUMENTS
Agent完成后:
- 审查所做的更改
- 如果有更改,询问用户是否要提交这些更改
- 简要总结简化的内容
Examples
示例
- - Simplify recently modified files
/simplify - - Simplify with specific guidance
/simplify focus on build.sh error handling - - Narrow the scope
/simplify only look at the new functions I added
- - 简化最近修改的文件
/simplify - - 根据特定指导进行简化
/simplify focus on build.sh error handling - - 缩小处理范围
/simplify only look at the new functions I added