Code Reviewer logo

Code Reviewer

Community
einverne
code-reviewer

进行系统化的代码审查,检查代码质量、安全性和性能。当用户要求审查代码、review 或检查代码时使用

Overview

Publishereinverne
Repositorydotfiles
Skill namecode-reviewer
Stars
121
Forks
24
Bundled files
Instructions only
LicenseGPL-3.0
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 einverne 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.
  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/einverne/dotfiles.git /tmp/dotfiles
mkdir -p .claude/skills
cp -r /tmp/dotfiles/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.

代码审查助手

审查目标

对代码进行全面、系统的质量检查,识别潜在问题并提供改进建议。

审查维度

必须按以下顺序检查:

功能正确性

  1. 逻辑完整性:功能是否按预期工作
  2. 边界条件:是否处理了极端情况
  3. 错误处理:异常是否被妥善处理
  4. 数据验证:输入是否经过验证

代码质量

  1. 命名规范:变量、函数、类名是否清晰表意
  2. 代码复杂度:单个函数是否过于复杂(圈复杂度 >10 需要重构)
  3. 重复代码:是否存在可提取的重复逻辑(DRY 原则)
  4. 注释质量:复杂逻辑是否有充分注释

性能考虑

  1. 算法效率:时间和空间复杂度是否合理
  2. 资源管理:内存、文件、网络资源是否正确释放
  3. 数据库查询:是否存在 N+1 查询问题
  4. 缓存策略:是否合理使用缓存

安全性

  1. 输入验证:用户输入是否经过清理
  2. SQL 注入:数据库操作是否使用参数化查询
  3. XSS 防护:前端输出是否转义
  4. 认证授权:权限检查是否完整
  5. 敏感信息:是否暴露密钥、密码等

可维护性

  1. 模块化:代码组织是否清晰
  2. 单一职责:每个模块是否职责明确
  3. 依赖管理:依赖是否合理
  4. 测试覆盖:是否有足够的单元测试

输出格式

按严重程度分类报告:

严重(必须修复)

阻塞问题,必须在合并前解决

重要(强烈建议)

显著影响质量或安全,应尽快解决

次要(建议改进)

可以改进的地方,不阻塞合并

优化建议

性能或可读性优化建议

每个问题必须包含:

  • 文件路径和行号
  • 问题描述
  • 影响分析
  • 修复建议或示例代码

示例输出

## 审查结果

### 严重(1 个问题)

**SQL 注入风险** - src/api/user.js:45
问题:直接拼接用户输入到 SQL 查询
风险:攻击者可以注入恶意 SQL 代码
建议:使用参数化查询
```javascript
// 修复前
const query = `SELECT * FROM users WHERE id = ${userId}`;

// 修复后
const query = 'SELECT * FROM users WHERE id = ?';
db.execute(query, [userId]);

重要(2 个问题)

...

Frequently asked questions

What does the Code Reviewer AI skill do?

进行系统化的代码审查,检查代码质量、安全性和性能。当用户要求审查代码、review 或检查代码时使用

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/einverne/dotfiles/tree/master/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?

Yes. It is published on GitHub by einverne under the GPL-3.0 license. 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 👇