Agent skill

Code Review

by OpenDCAI in OpenDCAI/DataMind

Comprehensive code review guidance — process, checklist, feedback conventions.

Apache-2.0Auto-check passedDevelopment

Install Code Review

skills CLI
$ npx skills add OpenDCAI/DataMind --skill code-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenDCAI/DataMind code-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenDCAI/DataMind.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/code-review .claude/skills/code-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-review
GitHub stars
406
Token cost
~340 tokens
SKILL.md length
111 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

Comprehensive code review guidance — process, checklist, feedback conventions.

  • Works in 5 steps: 代码能正常编译和运行 → 所有单元测试通过 → 没有遗留的 TODO 或调试代码 → …
  • The user asks about code review flow
  • SKILL.md covers 适用场景, 一、审查流程, 二、审查重点 and 三、反馈规范, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Code Review is an agent skill from OpenDCAI/DataMind. Comprehensive code review guidance — process, checklist, feedback conventions. Use when the user asks about code review flow, review criteria, best practices, or how to give/receive review feedback.

Its SKILL.md is about 340 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review and Knowledge graphs. The repository describes itself as: All-in-one intelligent assistant powered by LlamaIndex — RAG, GraphRAG, NL2SQL, Skills & Memory with multimodal support. The licence is Apache-2.0.

When your agent uses it

  • The user asks about code review flow
  • Review criteria
  • How to give/receive review feedback

Example prompts

  • “/code-review”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 代码能正常编译和运行
  2. 所有单元测试通过
  3. 没有遗留的 TODO 或调试代码
  4. 代码风格符合团队规范
  5. 提交信息清晰描述了变更内容

What it can do on your machine

Read from SKILL.md and the folder at commit 61fd482. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Review loads about 340 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 111 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~340

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OpenDCAI/DataMind at commit 61fd482, republished under its Apache-2.0 licence (© OpenDCAI). 111 words, ~340 tokens.

Download SKILL.mdSave it as .claude/skills/code-review/SKILL.md (or your agent's skills folder).
name
code-review
description
Comprehensive code review guidance — process, checklist, feedback conventions. Use when the user asks about code review flow, review criteria, best practices, or how to give/receive review feedback.
keywords
code review, 代码审查, PR, pull request, review, 审查

代码审查指南

适用场景

当用户咨询代码审查流程、审查标准、最佳实践等问题时,参考本指南进行回答。

一、审查流程

1.1 提交前自查

开发者在提交 Code Review 前应完成以下自查:

  1. 代码能正常编译和运行
  2. 所有单元测试通过
  3. 没有遗留的 TODO 或调试代码
  4. 代码风格符合团队规范
  5. 提交信息清晰描述了变更内容
1.2 审查步骤
  1. 了解背景: 阅读 PR 描述和关联的需求/Bug 单
  2. 整体浏览: 先看文件变更列表,理解改动范围
  3. 逐文件审查: 从核心逻辑文件开始,关注重点代码
  4. 运行验证: 对关键改动 checkout 代码本地运行验证
  5. 给出反馈: 区分"必须修改"和"建议优化"

二、审查重点

2.1 功能正确性
  • 逻辑是否正确,边界条件是否处理
  • 异常情况是否妥善处理(空值、超时、并发)
  • 数据校验是否充分
2.2 代码质量
维度检查项
可读性命名是否清晰,注释是否必要且准确
简洁性是否有重复代码可提取,逻辑是否过于复杂
可维护性是否易于扩展,依赖是否合理
一致性是否遵循项目现有的代码风格和模式
2.3 安全性
  • 用户输入是否做了校验和转义
  • SQL 是否使用参数化查询(防注入)
  • 敏感数据是否加密存储
  • API 接口是否有鉴权
2.4 性能
  • 是否有 N+1 查询问题
  • 大数据量操作是否有分页
  • 是否有不必要的重复计算
  • 数据库查询是否使用了索引

三、反馈规范

3.1 反馈分级
  • [MUST]: 必须修改,存在 Bug 或安全隐患
  • [SHOULD]: 建议修改,影响代码质量
  • [NICE]: 可选优化,锦上添花
3.2 反馈示例

好的反馈:

[MUST] 这里没有处理 user 为 null 的情况,当用户未登录时会抛出 NullPointerException。建议加一个空值检查。

不好的反馈:

这段代码有问题。

四、审查效率建议

  • 单次审查不超过 400 行代码
  • 审查时间不超过 60 分钟
  • 使用工具辅助(静态分析、CI 检查)
  • 重要改动应有两人以上审查

© OpenDCAI, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/code-review of OpenDCAI/DataMind.

Open the folder on GitHubat commit 61fd482

Compare with similar skills

Code Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Review this skillOpenDCAI/DataMind406—~340Automated safety check: PassApache-2.0
Understand Diff AnalysisEgonex-AI/Understand-Anything85k1 repos~1.4kAutomated safety check: PassMIT
Knowledge Graph PR Reviewtirth8205/code-review-graph32k—~452Automated safety check: PassMIT
Code Review Graph Buildertirth8205/code-review-graph32k—~295Automated safety check: PassMIT
Graphxwtro0tk1t-cloud/harness265—~1.1kAutomated safety check: PassNone
Codexqa Code Wikiopenqa-cn/codexqa152—~1.3kAutomated safety check: PassApache-2.0

Similar skills

  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    85k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Knowledge Graph PR Review

    tirth8205/code-review-graph

    Reviews a pull request or branch diff with a code knowledge graph and produces a structured review that includes blast-radius analysis.

    32k GitHub stars~452 tokensUpdated today
    DevelopmentAuto-check passed
  • Code Review Graph Builder

    tirth8205/code-review-graph

    Builds or incrementally updates the code-review knowledge graph for a repository and reports whether the build succeeded, partly or failed.

    32k GitHub stars~295 tokensUpdated today
    DevelopmentAuto-check passed
  • Graph

    xwtro0tk1t-cloud/harness

    Manage code knowledge graphs via code-review-graph (CRG). An agent skill from xwtro0tk1t-cloud/harness.

    265 GitHub stars~1.1k tokensUpdated 5 mo ago
    Knowledge ManagementAuto-check passed
  • Codexqa Code Wiki

    openqa-cn/codexqa

    Builds a local architecture wiki for a repository from the CodexQA symbol graph (no model needed): modules, who calls whom and how often, reading paths, and one self-contained HTML page.

    152 GitHub stars~1.3k tokensUpdated 4 days ago
    Knowledge ManagementAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed

More from OpenDCAI/DataMind

  • DB Ops Sop

    OpenDCAI/DataMind

    Database operations runbook — backup, recovery, performance tuning, troubleshooting.

    406 GitHub stars~388 tokensUpdated 17 days ago
    Auto-check passed
  • Datamind Context

    OpenDCAI/DataMind

    Use DataMind from Codex to ingest local files, query RAG or graph knowledge, store facts, and inspect profiles.

    406 GitHub stars~528 tokensUpdated 17 days ago
    Auto-check passed

Categories

Questions about Code Review

What does Code Review do?

Comprehensive code review guidance — process, checklist, feedback conventions. Code Review is an agent skill from OpenDCAI/DataMind. Comprehensive code review guidance — process, checklist, feedback conventions.

When should I use Code Review?

Code Review fits situations like: the user asks about code review flow; review criteria; how to give/receive review feedback.

How do I install Code Review in Claude Code?

Run `npx skills add OpenDCAI/DataMind --skill code-review -a claude-code`. Or copy the skill folder (.claude/skills/code-review in OpenDCAI/DataMind) into .claude/skills/code-review in your project. Claude Code loads it when a task matches its description.

How do I install Code Review in Codex?

Run `npx skills add OpenDCAI/DataMind --skill code-review -a codex`. Or copy the skill folder (.claude/skills/code-review in OpenDCAI/DataMind) into .agents/skills/code-review in your project. Codex loads it when a task matches its description.

Can I use Code Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenDCAI/DataMind --skill code-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-review, .gemini/skills/code-review, .github/skills/code-review and .opencode/skills/code-review in your project.

What does Code Review need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Review is instructions for the agent only.

Does Code Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Review use?

Code Review is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Review use?

About 340 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Review?

Skills that share tags, products or a category with Code Review: Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars), Knowledge Graph PR Review (tirth8205/code-review-graph, 32k stars), Code Review Graph Builder (tirth8205/code-review-graph, 32k stars) and Graph (xwtro0tk1t-cloud/harness, 265 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Review?

OpenDCAI (a GitHub organization) maintains it in OpenDCAI/DataMind, which has 406 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 20, 2026.

Source: OpenDCAI/DataMind on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.