Skip to content
Back to skills

Polish

ASecurity

PACE Refactor/System polish;runtime-verify 完成后、最终 review 前清理代码并更新架构。

  • 188 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
code-qualityapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add WenJunDuan/Rlues --skill polish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Polish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Polish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-polish-06ca1630/badge)](https://www.skillsdirectory.com/skills/wenjunduan-polish-06ca1630)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: polish
description: PACE Refactor/System polish;runtime-verify 完成后、最终 review 前清理代码并更新架构。
---

# /polish — Polish stage (v9.9.9)

## 触发

path ∈ {Refactor, System} 且 runtime-verify 已完成(或 skip_runtime_verify 已有效设置)→ 主 agent 进 polish。会改代码的清理 **在一次独立 review 之前**。

`_index.skip_polish = true` 时直接进入 review(用户自负责,不推荐)。

## 5 检查项

| # | 检查 | 例 |
|---|---|---|
| 1 | 临时代码 / 调试痕迹 | `console.log` / `print` / `debugger` / 无 issue 号的 TODO |
| 2 | 注释完整性 | 公开 API 缺 docstring / 复杂逻辑缺解释 |
| 3 | 冗余 / 重复代码 | 复制粘贴 / 相似函数 |
| 4 | 低效模式 | N+1 query / 阻塞 IO / 无谓循环 |
| 5 | 过度设计与过度防御 (铁律[反过度工程]) | 无消费者的抽象/配置项; 边界内死防御分支 |

## 例外

- 路径 ∈ {Hotfix, Bugfix, Quick, Feature}: 不强制 polish
- 主 agent 分派已绑定 writer,在既有实现 worktree 串行清理;**polish-worker 每次任务最多 70 轮;到限返回进度,不把截断当完成**

## 详细 playbook

完整检查项细则、模板与联动见 `references/playbook.md`。

Files in this skill

  • SKILL.md1.2 KB
  • references/playbook.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…