skills/development-workflows/code-auditor/SKILL.md
Structured code review across correctness, security, performance, readability, testing, and architecture, with language-specific guidance and human-readable findings. Use whenever the user asks to review a PR, inspect git changes before merge, audit a directory or file set, prepare merge feedback, summarize review findings, or do code review / PR review / CR / review comments / 代码审查. Adapt the output language to the user's context: use Chinese review wording for Chinese or mixed Chinese discussions, and English review wording for English-first discussions.
npx skillsauth add bahayonghang/my-claude-code-settings code-auditorInstall 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.
Review code at $ARGUMENTS across 6 dimensions: Correctness, Security, Performance, Readability, Testing, and Architecture.
Examples:
这里可能会在空值输入下抛错,建议补一个 nil / undefined 检查。想确认一下这里选择递归而不是迭代的原因;如果深度不受控,可能会有栈溢出风险。你这里写错了,必须改。Use the internal severity model from the references for analysis:
criticalhighmediumlowinfoMap them to human-facing output like this:
critical / high -> [必须修复]medium -> [建议修改]low / info -> [仅供参考][问题]critical / high -> Must Fixmedium -> Should Fixlow / info -> Nice to HaveQuestionDo not promote pure formatting or taste disagreements above low unless the project explicitly treats them as merge-blocking standards.
Paths below starting with
<skill-dir>are relative to this skill's base directory, announced when the skill loads. Substitute that literal path; it is not an environment variable. Bundled scripts self-locate, so only the path needs to resolve.
$ARGUMENTS contains a PR number or URL, fetch the PR diff via gh pr diff <number> and use it as the review target. If gh is unavailable, ask the user to provide the diff manually.$ARGUMENTS mentions "PR" or "MR" without a specific number, check for an active PR on the current branch via gh pr view. If none exists, ask the user to specify the PR number.$ARGUMENTS is a file path or directory, review that target directly.$ARGUMENTS is empty, default to current git changes (git diff + git diff --staged). If there are no changes, prompt for a path.<skill-dir>/references/review-dimensions.md, <skill-dir>/references/issue-classification.md, <skill-dir>/references/workflow-guide.md, and <skill-dir>/references/communication-guide.md.<skill-dir>/references/languages/.<skill-dir>/assets/quick-checklist.md when you need a fast pass or a review warm-up.workflow-guide.md: Collect Context, Quick Scan, Deep Review, Generate Report.<skill-dir>/references/rules/ together with language-specific guidance.<skill-dir>/assets/issue-template.md for individual findings, <skill-dir>/assets/pr-comment-template.md for PR-style summaries, and <skill-dir>/assets/review-report-template.md for full reports.critical or high issue, include location, risk, why it matters, and a concrete recommendation. Add a small fix example when it materially clarifies the action.LGTM.错误处理链路完整,回滚逻辑也覆盖到了超时分支。gh pr view on current branch; if no PR found, ask the user explicitly.gh unavailable for PR review: ask the user to paste the diff or provide a local diff file path.tools
文献深度解读助手,像研究生导师一样交互式解读 Zotero 库中的学术论文,面向计算机科学、深度学习、自动化等方向(个人向)。当用户提供文献题目、DOI、PDF 或要求解读某篇论文时触发,通过 Zotero MCP 优先获取全文,并根据用户意图自动选择快速筛选、导师深读或研究复盘模式。完整深读时先完成叙事类型判断、阅读前预检、novelty 校准和作者思考路径重建,再整体概览,并基于图例、正文和表格逐图详细解读(Zotero MCP 无法提取 PDF 图片,解读基于文字信息,必要时提醒上传图片)。适用于:(1)快速判断文献是否值得深读 (2)深入理解某篇论文 (3)学习文章中的方法和技术 (4)批判性分析研究设计 (5)寻找研究灵感。需要多篇论文综合、对比或找研究空白,或 arXiv/DOI 批量规范化时,改用 paper-workbench。
development
Review Codex, Claude, OpenAI, or other agent skill directories as reusable capability packages. Use when asked to audit, review, improve, score, rewrite, debrand, package, or document a SKILL.md, skill package, marketplace skill, or agent skill directory, especially when the user wants a comprehensive findings-first report with concrete patch recommendations and validation steps.
development
Turn vague or complex Codex tasks into strong `/goal` commands with outcome, verification, constraints, boundaries, iteration policy, completion evidence, and pause/block conditions. Use when the user asks for Codex goal instructions, Goal 指令, 目标指令, `/goal` prompts, 中文 Goal 模板, plan-to-goal interviews, success criteria, verification commands, or bounded agent work definitions.
tools
Write, debug, and validate ast-grep structural code search rules. Use this skill when the user needs syntax-aware code search, AST pattern matching, structural refactor discovery, language-construct queries, or searches that plain text tools like rg can miss, such as finding functions with particular descendants, calls inside specific contexts, missing error handling, React hook shapes, decorators, or other Tree-sitter-backed code structures.