Logo vun Cmd Review

Cmd Review

Communautéit
vinhnx
cmd-review

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

Iwwersiicht

Editeurvinhnx
RepositoryVTCode
Skill-Nummcmd-review
Stären
878
Forks
90
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum vinhnx op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Cmd Review an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/vinhnx/VTCode/tree/main/crates/codegen/vtcode-skills/src/skills/assets/samples/cmd-review
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Cmd Review an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Cmd Review automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Cmd Review net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Cmd Review?

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

Firwat Cmd Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Cmd Review besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Cmd Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/vinhnx/VTCode/tree/main/crates/codegen/vtcode-skills/src/skills/assets/samples/cmd-review an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Cmd Review benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Cmd Review benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Cmd Review domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Cmd Review gratis?

Jo. De Skill gëtt vum vinhnx ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇