content/skills/workflow-skills/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.
$ARGUMENTS is empty, default to current git changes or the working directory.$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.错误处理链路完整,回滚逻辑也覆盖到了超时分支。development
Use only when the user explicitly asks for swarm, subagents, parallel agents, dynamic workflow, multi-agent orchestration, 多智能体编排, or when the task truly needs coordinated research plus implementation plus review plus verification packets. Do not use for ordinary code review, planning-only work, single-line bugfixes, routine audits, or migrations unless orchestration is requested or at least two independent workflow dimensions are present.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.
development
Plan-first brainstorming workflow that turns an idea into an approved Markdown implementation plan by default. Use when the user wants to brainstorm, design, scope, or plan a feature/spec before implementation. Spark explores project context, asks only blocking questions, writes the plan under the project root's .plannings/YYYY-MM-DD-feature-slug.md path, self-reviews it, and waits for user approval. Create an HTML or visual plan/spec only when the user explicitly asks for HTML, browser-viewable, or visual output; save the paired .html beside the Markdown plan.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.