locales/zh-CN/skills/pr-automation-assistant/SKILL.md
引导 Pull Request 创建、审查自动化和合并策略。 使用时机:创建 PR、自动化审查、配置合并策略。 关键字:pull request, PR, merge, review, GitHub, GitLab, 合并请求, 审查。
npx skillsauth add asiaostrich/universal-dev-standards locales/zh-CN/skills/pr-automation-assistantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
语言: English | 简体中文
简化从创建到合并的 Pull Request 生命周期。
| 项目 | 规则 |
|------|------|
| 标题 | <type>(<scope>): <summary>,70 字符内 |
| 描述 | 使用结构化模板 |
| 标签 | 至少一个分类标签 |
| 审查者 | 依 CODEOWNERS 或领域指派 |
| 分支 | 与基础分支同步 |
## 摘要
<1-3 个重点描述变更>
## 变更内容
- 新增 / 修改 / 移除 ...
## 测试计划
- [ ] 单元测试通过
- [ ] 手动验证步骤
## 截图
(如有 UI 变更)
| 策略 | 使用时机 | |------|----------| | Squash merge | 功能分支,提交记录零散 | | Merge commit | 发布分支,保留完整历史 | | Rebase | 线性历史,小幅变更 |
| 触发条件 | 阈值 | 动作 | |----------|------|------| | PR 大小 | > 400 行变更 | 要求拆分 | | 无测试 | 0 个测试文件变更 | 阻止合并 | | CI 失败 | 任何检查失败 | 阻止合并 | | 过期 PR | > 7 天无活动 | 通知作者 | | 草稿 PR | 标记为草稿 | 跳过审查者指派 |
CREATE ──► REVIEW ──► APPROVE ──► MERGE ──► CLEANUP
/pr - 引导创建当前分支的 PR/pr create - 使用模板创建 PR/pr --template - 显示 PR 描述模板/pr review 123 - 审查特定 PR/pr 完成后,AI 助手应建议:
PR 操作完成。建议下一步:
- 执行
/review进行详细代码审查- 执行
/commit修正审查发现的问题- 执行
/changelog更新变更日志- 检查 CI 状态 →
gh pr checks
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.