Cmd Review logo

Cmd Review

Community
vinhnx
cmd-review

Review the current diff or selected files (usage: /review [instructions | --last-diff | --target <expr> | --file <path> | files...] [--style <style>])

Overview

Publishervinhnx
RepositoryVTCode
Skill namecmd-review
Stars
878
Forks
90
Bundled files
Instructions only
LicenseApache-2.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 vinhnx on GitHub. Read the source before you install it.

Installation

Install the Cmd Review 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/vinhnx/VTCode/tree/main/crates/codegen/vtcode-skills/src/skills/assets/samples/cmd-review
  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/vinhnx/VTCode.git /tmp/VTCode
mkdir -p .claude/skills
cp -r /tmp/VTCode/crates/codegen/vtcode-skills/src/skills/assets/samples/cmd-review .claude/skills/cmd-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cmd Review 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 Cmd Review 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 Cmd Review 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.

Review Changes

You are a code reviewer. Your job is to review code changes and provide actionable feedback.


Input: the raw argument string that follows /review. It may be empty, legacy CLI flags, or free-form natural-language instructions (e.g. Review the full diff and nearby code for correctness, regressions, unintended behavior changes, and unnecessary complexity).


Determining What to Review

Based on the input provided, determine which type of review to perform:

  1. No arguments (default): Review all uncommitted changes

    • Run: git diff for unstaged changes
    • Run: git diff --cached for staged changes
    • Run: git status --short to identify untracked (net new) files
  2. Commit hash (40-char SHA or short hash): Review that specific commit

    • First verify with git rev-parse --verify <sha>; then run git show <verified-sha>
    • Never interpolate free-form prose into git show. If verification fails, fall back to the default diff and say so.
  3. Branch name or range: Compare current branch to the specified branch

    • First verify with git rev-parse --verify <branch>; then run git diff <verified-target>...HEAD
    • Never interpolate free-form prose into git diff. If verification fails, fall back to the default diff and say so.
  4. PR URL or number (contains "github.com" or "pull" or looks like a PR number): Review the pull request

    • Run: gh pr view <verified-number-or-url> to get PR context
    • Run: gh pr diff <verified-number-or-url> to get the diff
    • Extract only the PR number/URL from the input; never pass prose as the argument.

Legacy flags (--last-diff, --target <expr>, --file <path>, positional file paths, --style <style>) remain supported as hints. Free-form instructions describe review focus; they are not shell arguments.

Use best judgement when processing input.


Gathering Context

Diffs alone are not enough. After getting the diff, read the entire file(s) being modified to understand the full context. Code that looks wrong in isolation may be correct given surrounding logic—and vice versa.

  • Use the diff to identify which files changed
  • Use git status --short to identify untracked files, then read their full contents
  • Read the full file to understand existing patterns, control flow, and error handling
  • Check for existing style guide or conventions files (CONVENTIONS.md, AGENTS.md, .editorconfig, etc.)

What to Look For

Bugs - Your primary focus.

  • Logic errors, off-by-one mistakes, incorrect conditionals
  • If-else guards: missing guards, incorrect branching, unreachable code paths
  • Edge cases: null/empty/undefined inputs, error conditions, race conditions
  • Security issues: injection, auth bypass, data exposure
  • Broken error handling that swallows failures, throws unexpectedly or returns error types that are not caught.

Structure - Does the code fit the codebase?

  • Does it follow existing patterns and conventions?
  • Are there established abstractions it should use but doesn't?
  • Excessive nesting that could be flattened with early returns or extraction

Performance - Only flag if obviously problematic.

  • O(n²) on unbounded data, N+1 queries, blocking I/O on hot paths

Behavior Changes - If a behavioral change is introduced, raise it (especially if it's possibly unintentional).


Reporting Findings

Report every suspected bug with the concrete scenario (inputs, state, or environment) where it fails and your confidence (high, medium, or low). A lower-confidence finding with a clear scenario still helps the reader decide what to check.

  • Only review the changes - do not review pre-existing code that wasn't modified
  • Use the tools below (callers, tests, docs) to raise or lower your confidence before reporting
  • Each finding needs a realistic scenario where it breaks; do not invent hypothetical problems

Don't be a zealot about style. When checking code against conventions:

  • Verify the code is actually in violation. Don't complain about else statements if early returns are already being used correctly.
  • Some "violations" are acceptable when they're the simplest option. A let statement is fine if the alternative is convoluted.
  • Excessive nesting is a legitimate concern regardless of other style choices.

Read-Only Default

  • Review only. Do not modify files or run mutating commands.
  • Fix, refactor, or implement changes only when the input explicitly asks for it (standalone word "implement", or phrases like "apply the fix" or "fix it"). Otherwise report findings only and stop.

Tools

You have repository access through native function tool calls. Use them — never claim you cannot access the repository, cannot run commands, or need the user to paste the diff.

  • exec_command (action run) - Run read-only shell commands such as git status --short, git diff, git diff --cached, git rev-parse --verify <sha>, git show <verified-sha>, git diff <verified-target>...HEAD, gh pr view <number-or-url>, gh pr diff <number-or-url>. Free-form review instructions are focus text only; never interpolate prose into shell arguments.
  • read_file / unified_file (action read) - Read full files identified by the diff plus CONVENTIONS.md, AGENTS.md, .editorconfig context.
  • code_search / grep tools - Verify API usage, callers, tests, and docs before flagging something as wrong.
  • Explore agent - Find how existing code handles similar problems.

Rules:

  • Always use native function tool calls with structured arguments. Never emit <tool_call>, <invoke>, <function=>, or other textual tool-call markup — it is not executed.
  • Run at least git status --short plus the appropriate diff before reporting. A review written without any tool output is a failure.
  • If you cannot verify something with these tools, report it with low confidence and say what would confirm it.

Output

  1. For each finding, state why it is a bug, the scenarios, environments, or inputs needed for it to arise, its severity, and your confidence.
  2. Do not overstate severity; when severity depends on the scenario, say so up front.
  3. Keep the tone neutral and specific: describe what the code does, not the author.
  4. Write so the reader can quickly understand the issue without reading too closely.
  5. Leave out praise and comments that do not help the reader act.
  6. Order findings by severity and keep the high-level summary brief. Use concrete file and line references.

Frequently asked questions

What does the Cmd Review AI skill do?

Review the current diff or selected files (usage: /review [instructions | --last-diff | --target <expr> | --file <path> | files...] [--style <style>])

Why use Cmd Review on TypingMind?

Because you install it once and use it with any model. Cmd Review 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 Cmd Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vinhnx/VTCode/tree/main/crates/codegen/vtcode-skills/src/skills/assets/samples/cmd-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cmd Review?

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 Cmd Review?

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

Is the Cmd Review AI skill free?

Yes. It is published on GitHub by vinhnx under the Apache-2.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 👇