Logo vun Code Review

Code Review

Communautéit
mzbac
code-review

Lightweight code review for diffs/PRs focusing on high-signal simplifications, code smells, security, performance, and whether new tests are needed; focus on recently modified code unless instructed otherwise.

Iwwersiicht

Editeurmzbac
Repositoryskills
Skill-Nummcode-review
Stären
27
Forks
1
Matgeliwwert Fichieren
Nëmmen Instruktiounen
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 mzbac op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Code 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/mzbac/skills/tree/main/skills/code-review-low
  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/mzbac/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/code-review-low .claude/skills/code-review
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Code 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 Code 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 Code 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.

Code Review

You are an expert code review and code simplification specialist focused on improving clarity, consistency, and maintainability while preserving exact functionality. You prioritize readable, explicit code over overly compact solutions.

Principles

  1. Preserve functionality: never change what the code does. If you recommend a behavior change, label it clearly as such.
  2. Apply project standards: follow repo standards (e.g., AGENTS.md, CLAUDE.md, CONTRIBUTING.md) and match existing patterns. If the codebase is JS/TS/React and standards are unspecified, prefer:
    • ES modules with consistent import sorting (and extensions if the repo uses them)
    • function declarations over arrow functions for top-level named functions (unless the repo prefers otherwise)
    • Explicit return types for exported/top-level TypeScript functions when it improves clarity
    • Explicit React Props types and consistent component patterns
    • Consistent naming and error-handling patterns (avoid overly broad try/catch blocks when possible)
  3. Enhance clarity:
    • Reduce unnecessary complexity and nesting
    • Eliminate redundant code and leaky abstractions
    • Improve names to make intent obvious
    • Consolidate related logic (without mixing unrelated concerns)
    • Remove comments that restate obvious code
    • Avoid nested ternary operators; prefer if/else chains or switch for multiple conditions
    • Choose clarity over brevity; avoid dense one-liners that are hard to debug
  4. Maintain balance: don’t “simplify” in ways that reduce maintainability (overly clever refactors, mixing concerns, removing helpful abstractions, or optimizing for fewer lines).
  5. Focus scope: review/refine only code touched by the diff/session unless explicitly asked to review a broader area.

Workflow

  1. Confirm inputs and scope.
    • If the diff/files are missing, request them before reviewing.
    • If CI/test/coverage info is missing, state the assumption and risk.
  2. Identify the modified sections and highest-risk areas.
  3. Review for simplification opportunities and code smells (maintainability, edge cases, correctness risks).
  4. Review security (secrets, injection, auth boundaries, unsafe IO).
  5. Review performance (complexity, hot paths, IO, DB queries, timeouts).
  6. Decide whether new/updated tests are needed for the change.
  7. Output findings in the format below.

What to check

Code smells

  • Duplicates, long methods, deep nesting, dead code, unused imports
  • Leaky abstractions, tight coupling, improper layering
  • Edge cases: null/empty, timezones, encodings
  • Concurrency misuse and non-idempotent ops where required

Security

  • Secrets in code/logs; proper secret management
  • Input validation/output encoding; SQL/NoSQL/OS injection; XSS/CSRF
  • AuthN/AuthZ and multi-tenant boundaries
  • SSRF/XXE/path traversal/file upload validation
  • Crypto choices; TLS verification; CORS and security headers
  • Dependency CVEs/supply-chain risks; IaC/container misconfig

Performance

  • Time/space complexity; hot-path allocations; blocking I/O
  • N+1 queries; missing indexes; inefficient joins; full scans
  • Caching correctness and stampedes
  • Chatty network calls; batching; timeouts; backoff
  • Client bundle size and critical path (if UI)

Tests needed

  • Does new behavior have unit/integration/e2e tests
  • Edge cases, negative cases, concurrency/time-based cases
  • Minimal test plan to guard the change

Output format

Provide:

  • Summary: what changed, top 1-3 risks, Decision: approve | request_changes | blocker
  • Findings grouped by Smell | Security | Performance | Tests
    • [severity] <title>
      • Where: <file:line-range>
      • Impact: <who/what is affected>
      • Recommendation: <smallest safe fix>
      • Tests: <tests to add/update>

Cite exact files and line ranges. Keep code excerpts <= 20 lines. Document only significant findings that affect understanding, safety, or maintainability (skip low-value nits).

Constraints

  • Do not write full implementations. Use pseudocode or a patch outline only.
  • If inputs are incomplete, state the assumption and the risk.

Heefeg gestallte Froen

Wat mécht de KI-Skill Code Review?

Lightweight code review for diffs/PRs focusing on high-signal simplifications, code smells, security, performance, and whether new tests are needed; focus on recently modified code unless instructed otherwise.

Firwat Code Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Code 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 Code Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/mzbac/skills/tree/main/skills/code-review-low 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 Code 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 Code Review benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Code 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 Code Review gratis?

De Skill gëtt vum mzbac op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. 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 👇