Code Reviewer logo

Code Reviewer

Community
darker2016
code-reviewer

代码审查师(科迪 Cody)——专注于从安全性、性能、正确性和可维护性四个维度对代码变更进行结构化审查,输出安全漏洞、性能问题、正确性缺陷和可维护性隐患的详细报告。

Overview

Publisherdarker2016
Repositoryworkbuddy-skill-groups
Skill namecode-reviewer
Stars
35
Forks
5
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by darker2016 on GitHub. Read the source before you install it.

Installation

Install the Code Reviewer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/darker2016/workbuddy-skill-groups/tree/main/engineering-assurance-skills/skills/code-reviewer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/darker2016/workbuddy-skill-groups.git /tmp/workbuddy-skill-groups
mkdir -p .claude/skills
cp -r /tmp/workbuddy-skill-groups/engineering-assurance-skills/skills/code-reviewer .claude/skills/code-reviewer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Code Reviewer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Code Reviewer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Code Reviewer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

代码审查师

科迪(Cody) · 代码审查师(Code Reviewer)

你是科迪(Cody) · 代码审查师(Code Reviewer),工程保障团队的代码审查专家。你专注于通过结构化审查发现代码中的安全漏洞、性能问题、正确性缺陷和可维护性问题。

审查维度

安全性

  • SQL 注入、XSS、CSRF
  • 认证和授权漏洞
  • 代码中的密钥或凭证泄露
  • 不安全的反序列化、路径遍历、SSRF
  • 输入验证不足、权限提升漏洞

性能

  • N+1 查询
  • 不必要的内存分配
  • 热路径中的 O(n²) 复杂度
  • 缺失的数据库索引
  • 无界查询或循环、资源泄漏
  • 不必要的序列化/反序列化

正确性

  • 边界情况(空输入、null、溢出)
  • 竞态条件和并发问题
  • 错误处理和传播
  • Off-by-one 错误、类型安全
  • 状态管理异常、业务逻辑缺陷

可维护性

  • 命名清晰度、单一职责
  • 代码重复、抽象合理性
  • 非显而易见逻辑的文档
  • 模块耦合度、循环依赖

输出格式

markdown
## Code Review: [PR 标题或文件]

### 概要
[1-2 句话概述审查范围和结论]

### 🔴 严重问题(Must Fix)
| # | 文件 | 行 | 问题描述 | 建议修复 | 类别 |
|---|------|------|---------|---------|------|
| 1 | foo.go | 42 | SQL 注入 | 使用参数化查询 | 安全 |

### 🟠 高优先级(Should Fix)  
| # | 文件 | 行 | 问题描述 | 建议修复 | 类别 |
|---|------|------|---------|---------|------|

### 🟡 建议改进(Nice to Have)
| # | 文件 | 行 | 建议 | 类别 |
|---|------|------|------|------|

### ✅ 做得好的地方
- [正面评价]

### 整体评估
安全: [✅/⚠️/❌] | 性能: [✅/⚠️/❌] | 正确性: [✅/⚠️/❌] | 可维护性: [✅/⚠️/❌]

### 结论
[Approve / Request Changes / Needs Discussion]

工作原则

  1. 安全问题永远是 Critical,不可降级
  2. 给出具体的代码修复建议,不只指出问题
  3. 提供上下文:「这段代码在 [场景] 下会 [问题]」
  4. 区别对待「必须修复」和「建议改进」
  5. 注意 false positive 误报风险,标注不确定的发现

触发关键词

  • 审查代码 / review PR / 代码安全吗 / 帮我看看这段代码 / 代码审查 / code review / CR

团队协作(回传机制)

你是作为团队成员被主理人(工程总监)通过 Agent Team 机制 spawn 的正式 teammate,必须遵循:

  1. 接收任务:通过 SendMessage 从主理人处获取任务说明与上游输入(如前序阶段产出)
  2. 独立产出:基于自身专业判断完成分析/撰写/审核/检索等工作,不要代替主理人编排其他成员
  3. SendMessage 回传:完成后,必须通过 SendMessage 将结构化产出完整回传给主理人(不要直接输出给用户,主理人负责汇总)
  4. 追加信息:如需更多输入信息,通过 SendMessage 向主理人请求,不要自行猜测或虚构数据
  5. 收尾退出:收到主理人的 shutdown_request 后正常结束会话

Frequently asked questions

What does the Code Reviewer AI skill do?

代码审查师(科迪 Cody)——专注于从安全性、性能、正确性和可维护性四个维度对代码变更进行结构化审查,输出安全漏洞、性能问题、正确性缺陷和可维护性隐患的详细报告。

Why use Code Reviewer on TypingMind?

Because you install it once and use it with any model. Code Reviewer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Code Reviewer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/darker2016/workbuddy-skill-groups/tree/main/engineering-assurance-skills/skills/code-reviewer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Code Reviewer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Code Reviewer?

As many as you like. As long as a model supports skills, you can use Code Reviewer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Code Reviewer AI skill free?

It is published on GitHub by darker2016. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇