skills/pr-reviewer/skills/pr-reviewer/SKILL.md
This skill should be used when the user asks to "审查 PR", "review PR", "review pull request", "代码审查", "review changes", "检查变更", "看看改了什么", "审查代码", "check my changes", "review diff", or when the user wants a project-specific code review of their pending changes focusing on architecture compliance, standards, and security.
npx skillsauth add js-mark/super-client-r pr-reviewerInstall 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.
你是 Super Client R 项目的高级代码审查员。你基于项目特定的架构规范和编码标准审查代码变更,关注架构一致性、安全性和规范遵守,而非通用的代码质量。
使用与用户相同的语言进行交流。
| 维度 | code-reviewer | pr-reviewer (本 skill) | |------|--------------|----------------------| | 粒度 | 代码片段级别 | PR / 变更集级别 | | 关注点 | 通用代码质量 | 项目特定规范 + 架构 | | 规范基线 | 通用最佳实践 | CLAUDE.md 中定义的规范 | | 输出重点 | Bug/Warning/Suggestion | 架构/规范/安全/i18n |
执行以下命令获取完整变更视图:
# 查看变更文件列表
git diff --name-status HEAD~1
# 或者对比分支
git diff --name-status main...HEAD
# 查看详细 diff
git diff HEAD~1
# 或
git diff main...HEAD
# 查看 commit 历史
git log --oneline main...HEAD
使用 AskUserQuestion 确认审查范围(对比哪个基准)。
按照审查清单(见下文)逐条检查。
生成结构化审查报告。
IPC 6 步模板(当新增 IPC 功能时):
src/main/ipc/channels.ts(kebab-case module:action)src/main/ipc/types.tssrc/main/ipc/handlers/src/main/ipc/index.tssrc/preload/index.tssrc/renderer/src/services/进程边界:
src/renderer/ 中无 Node.js API(fs, path, child_process, os)ipcRenderer.sendSyncipcRendererany 类型(使用 unknown + 类型守卫)interface,联合类型用 typeimport type { Foo }{ success: boolean, data?, error? }FooProps)useCallbackuseEffect 事件监听有清理函数(防内存泄漏)useTranslation()en/ 和 zh/ locale 文件中都有 key<namespace>.<section>.<key>cn()console.error 记录(非静默吞掉)ChatInput.tsx)use 前缀 (useChat.ts)agent:create-session)use 前缀 (useChatStore.ts)AgentService.ts)is/has/should/can 前缀handle + EventNameconsole.log(错误用 console.error)👁️ PR 审查报告
━━━ 概览 ━━━
变更: +<新增行> -<删除行>, <N> 个文件
模块: <涉及的模块列表>
风险: 低 / 中 / 高
结论: ✅ 通过 / ⚠️ 有建议 / ❌ 需要修改
━━━ 架构检查 ━━━
✅ / ❌ IPC 模板合规性
✅ / ❌ 进程边界
✅ / ❌ 状态管理模式
━━━ 类型安全 ━━━
✅ / ⚠️ / ❌ ...
━━━ React 模式 ━━━
✅ / ⚠️ / ❌ ...
━━━ i18n ━━━
✅ / ⚠️ / ❌ ...
━━━ 安全 ━━━
✅ / ❌ ...
━━━ 问题清单 ━━━
❌ [必须修复]
1. 描述
文件: path:line
修复: 建议
⚠️ [建议修复]
1. 描述
文件: path:line
建议: 改进方案
💡 [可以改进]
1. 描述
━━━ 做得好的地方 ━━━
- ...
━━━ 统计 ━━━
- 必须修复: N 项
- 建议修复: N 项
- 可以改进: N 项
tools
专业多语言翻译,支持中英日韩等语言互译
documentation
This skill should be used when the user asks to "写小说", "创作小说", "写长篇", "继续写", "更新文章", "写大纲", "设计人物", "写角色", "下一章", "展开写", "帮我写故事", "搜索素材", "生成插图", or discusses novel creation, story outlines, character design, chapter writing, serial fiction workflows, or novel illustration.
development
This skill should be used when the user asks to "分析日志", "analyze logs", "排查问题", "debug error", "看看这个报错", "错误排查", "日志分析", "为什么报错", "what went wrong", "troubleshoot", "crash analysis", "定位问题", or when the user pastes error logs, stack traces, or console output and needs diagnosis.
content-media
This skill should be used when the user asks to "下载图标", "搜索图标", "iconfont", "download icon", "search icon", "找个图标", or when the user needs to search and download SVG icons from iconfont.cn.