Logo von Cmd Review

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>])

Übersicht

Herausgebervinhnx
RepositoryVTCode
Skill-Namecmd-review
Sterne
878
Forks
90
Mitgelieferte Dateien
Nur Anweisungen
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von vinhnx auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Cmd Review in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/vinhnx/VTCode/tree/main/crates/codegen/vtcode-skills/src/skills/assets/samples/cmd-review
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Cmd Review in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Cmd Review automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Cmd Review nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.

Häufig gestellte Fragen

Was macht der KI-Skill Cmd Review?

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

Warum Cmd Review in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Cmd Review besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Cmd Review in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/vinhnx/VTCode/tree/main/crates/codegen/vtcode-skills/src/skills/assets/samples/cmd-review ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Cmd Review nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Cmd Review verwenden?

So viele Sie möchten. In TypingMind können Sie Cmd Review mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Cmd Review kostenlos?

Ja. Der Skill wird von vinhnx auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇