code-polish
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCode Polish
代码精修
Combined simplification and review pipeline. This skill orchestrates two sub-skills in sequence:
- — simplify for readability and maintainability
code-simplify - — review for correctness, security, and quality, auto-applying all fixes
code-review --fix
这是一个集简化与审查于一体的工作流。本Skill会按顺序协调两个子Skill的执行:
- — 提升代码的可读性与可维护性
code-simplify - — 审查代码的正确性、安全性与质量,并自动应用所有修复方案
code-review --fix
Prerequisites
前置条件
Both the and skills MUST be installed. If either skill is missing, stop immediately and report the error:
code-simplifycode-reviewERROR:requires thecode-polishandcode-simplifyskills to be installed. Missing:code-review.<skill-name>
必须已安装和这两个Skill。若缺少其中任意一个,需立即停止操作并报告错误:
code-simplifycode-review错误:需要安装code-polish和code-simplifySkill。缺失:code-review。<skill-name>
Workflow
工作流
1) Run code-simplify
code-simplify1) 执行code-simplify
code-simplifyInvoke the skill, forwarding as-is.
code-simplify$ARGUMENTS调用Skill,原样传递参数。
code-simplify$ARGUMENTS2) Run code-review --fix
code-review --fix2) 执行code-review --fix
code-review --fixInvoke the skill with the flag appended to .
code-review--fix$ARGUMENTS调用Skill,在后追加标志。
code-review$ARGUMENTS--fix3) Report
3) 生成报告
Combine the outputs from both skills into a single summary:
- Scope: Files and functions touched.
- Simplifications: Key changes from .
code-simplify - Review findings and fixes: Findings and applied fixes from .
code-review - Verification: Commands run and outcomes.
- Residual risks: Assumptions or items needing manual review.
将两个Skill的输出结果整合为一份汇总报告:
- 范围:涉及的文件与函数。
- 简化内容:来自的主要修改。
code-simplify - 审查结果与修复:来自的审查发现及已应用的修复。
code-review - 验证情况:执行的命令及结果。
- 剩余风险:存在的假设或需要人工审查的内容。