Logo: Dev Local Review

Dev Local Review

Communautéit
Nebulavenus
dev-local-review

Run a local code review using the CodeRabbit agent before pushing to catch issues early

Iwwersiicht

EditeurNebulavenus
Repositoryforge-gpu
Skill-Nummdev-local-review
Stären
46
Forks
7
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzZlib
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

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

Installatioun

Installéiert de KI-Skill Dev Local Review an TypingMind, fir e mat all LLM ze benotzen, oder setzt 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 „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-local-review
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng 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 d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Nebulavenus/forge-gpu.git /tmp/forge-gpu
mkdir -p .claude/skills
cp -r /tmp/forge-gpu/.claude/skills/dev-local-review .claude/skills/dev-local-review
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Dev Local 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 Dev Local 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 Dev Local 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-Schlësselen.

  • 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.

Run a local code review before pushing to catch issues before they hit the PR and burn a review round. Uses the built-in CodeRabbit code-reviewer agent (subagent_type: "coderabbit:code-reviewer") which runs entirely locally at zero cost.

This is not a substitute for the GitHub PR review. The local review cannot access CodeRabbit's learnings from past PRs or perform repo-wide architectural analysis. It is a fast, free pre-push gate that catches the obvious issues.

How it works

The skill uses Claude Code's built-in coderabbit:code-reviewer agent type. This agent reads the diff locally and performs a thorough code review covering correctness, style, documentation accuracy, and common issues. No external service, CLI tool, or API key required.

Usage

Invoke the skill before pushing:

text
/dev-local-review

Or with a specific base branch:

text
/dev-local-review --base develop

When to use

  • Before pushing fixes during /dev-review-pr — catch new issues locally instead of waiting for the GitHub bot
  • Before creating a PR with /dev-create-pr — clean up obvious issues before the first review
  • Any time you want a quick code quality check without pushing
  • After /dev-final-pass for a second opinion from a different reviewer

Workflow

1. Determine what to review

Check git status and git diff --stat to understand the scope of changes. Use the base branch from the argument (default: main).

2. Run the CodeRabbit code-reviewer agent

Launch a single agent with subagent_type: "coderabbit:code-reviewer". The prompt must include:

  • The list of modified and new files (from git diff --stat and git status)
  • A summary of what the changes are about (infer from file paths and recent context)
  • Instructions to be thorough and report specific file paths and line numbers
  • The project's code quality requirements (C99, SDL3 GPU, CLAUDE.md conventions)
text
Agent(
  subagent_type="coderabbit:code-reviewer",
  prompt="Review all changes compared to <base-branch>. [file list, context, instructions]"
)

3. Triage findings

When the agent returns, present findings sorted by severity (Major, Medium, Low, Informational). For each finding, determine:

  • Actionable: A real issue that should be fixed before pushing
  • Intentional: Code that is correct as-is (e.g., strict 0.0f epsilon for determinism tests)
  • Out of scope: Suggestions about code not changed in this PR

4. Fix actionable findings

Implement all actionable fixes. Do not ask about each one individually — fix them all, then report what was changed.

5. Re-run review (MANDATORY — cannot skip)

After fixing, run the agent again to verify no new issues were introduced. The re-run prompt should note which issues were already addressed so the agent focuses on finding new problems.

6. Repeat until zero feedback (MANDATORY — strict rule)

This is an absolute rule with no exceptions. The review loop MUST continue until the CodeRabbit agent returns with zero findings. The agent executing this skill is not allowed to decide on its own that remaining feedback is "just a nitpick" or "informational" and stop the loop early.

The only two valid exit conditions are:

  1. The review agent reports zero findings. The loop ends. Proceed to "After a clean local review."
  2. The agent explicitly asks the user whether to stop (presenting the remaining findings), and the user agrees to stop. Without user confirmation, the loop continues.

Prohibited behaviors:

  • Deciding that remaining findings are "low severity" and stopping
  • Classifying all remaining findings as "intentional" without user input
  • Stopping after a fixed number of rounds (e.g., "typically 2-3 rounds")
  • Summarizing remaining findings and moving on without fixing or asking
  • Treating nitpicks, style suggestions, or informational comments as automatic reasons to exit the loop

Each round of the loop:

  1. Run the CodeRabbit review agent
  2. If zero findings → exit loop (clean)
  3. If findings exist → fix actionable ones, ask user about ambiguous ones
  4. Go to step 1

If the same finding keeps reappearing after being fixed, investigate the root cause rather than stopping the loop. If genuinely stuck, ask the user for guidance — do not silently exit.

What it catches

Based on project experience, this review reliably catches:

  • Missing bounds checks and safety guards
  • Stale comments (e.g., <math.h> comment listing fabsf, sqrtf but code also uses fminf)
  • Documentation/code mismatches (README describes N phases but code has M)
  • Missing inline comments on struct fields
  • Resource cleanup gaps on error paths
  • Magic numbers that should be named constants
  • Naming convention violations
  • Bare C stdlib calls without SDL_ prefix (fabsf, sinf, memset, strcmp, malloc, etc.) — use SDL equivalents or approved project wrappers (forge_isfinite, forge_fmaxf, forge_fminf) for cross-platform portability

What it cannot do

  • Access CodeRabbit's learnings from past PR interactions
  • Perform repo-wide architectural analysis beyond the changed files
  • Interact with PR feedback threads or resolve conversations
  • Update GitHub approval state
  • Guarantee a clean PR review (the GitHub bot may find additional issues)

After a clean local review

A clean local review means the obvious issues are handled. Push and request a full PR review:

  1. Push the commits (single push, never piecemeal)
  2. Wait for CodeRabbit's PR review — it may find additional issues the local review missed
  3. If the PR review finds issues, use /dev-review-pr to handle them

Heefeg gestallte Froen

Wat mécht de KI-Skill Dev Local Review?

Run a local code review using the CodeRabbit agent before pushing to catch issues early

Firwat Dev Local Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Dev Local 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 en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Dev Local Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-local-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 Dev Local 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 Dev Local Review benotzen?

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

Ass de KI-Skill Dev Local Review gratis?

Jo. Nebulavenus huet de Skill ënner der Lizenz Zlib 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 weiderverwendbare Pak vun Instruktiounen, deen 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 e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

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