Logo di Code Review

Code Review

Community
kazdenc
code-review

Perform a structured code review covering correctness, readability, performance, security, and maintainability. Use when user says "review this code", "code review", "check this PR", "review my changes", "is this code good", or needs expert feedback on code quality.

Panoramica

Autorekazdenc
Repositorybuilder-skills
Nome della skillcode-review
Stelle
46
Fork
5
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da kazdenc su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Code Review in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/code-review
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kazdenc/builder-skills.git /tmp/builder-skills
mkdir -p .claude/skills
cp -r /tmp/builder-skills/.claude/skills/dev/review/code-review .claude/skills/code-review
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Code Review in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Code Review non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Code Review non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Review code across five dimensions and produce a prioritized list of findings. Suggest improvements; don't demand them. Praise good patterns alongside issues.

Step 1: Read the Code

Understand intent before judging implementation. Before writing a single finding:

  • Identify the purpose of the change (feature, fix, refactor, test).
  • Note the architectural context (framework, patterns, conventions in use).
  • Read related tests and documentation if available.
  • If reviewing a PR, read the description and linked issues first.

Step 2: Review Across Five Dimensions

Evaluate the code against each dimension using the specific checks below.

Correctness

CheckWhat to look for
Logic errorsIncorrect conditionals, wrong operator precedence, inverted boolean logic
Off-by-oneFence-post errors in loops, slices, pagination, boundary conditions
Null / undefined handlingMissing optional chaining, unchecked nullable returns, empty-array assumptions
Race conditionsShared mutable state, unguarded async sequences, stale closures
Error pathsSwallowed exceptions, missing try/catch, unhelpful error messages, no fallback
Edge casesEmpty inputs, very large inputs, unicode, negative numbers, timezone boundaries

Readability

CheckWhat to look for
NamingAmbiguous variable names, misleading function names, inconsistent conventions
Function lengthFunctions doing more than one thing, > 40 lines is a smell
Nesting depthMore than 3 levels of nesting; consider early returns or extraction
CommentsMissing "why" comments on non-obvious logic; remove comments that restate code
ConsistencyStyle deviations from the rest of the codebase
Cognitive loadComplex ternaries, implicit type coercion, magic numbers or strings

Performance

CheckWhat to look for
Unnecessary re-rendersMissing memoization, inline object/function creation in render path
N+1 queriesDatabase calls inside loops, unbatched API requests
Missing memoizationExpensive computations recalculated on every render or call
Large bundlesHeavy imports that could be lazy-loaded or replaced with lighter alternatives
Algorithmic complexityO(n^2) or worse where O(n) or O(n log n) is achievable
Memory leaksUncleared intervals/timeouts, missing event listener cleanup, growing caches

Security

CheckWhat to look for
InjectionUnsanitized user input in SQL, shell commands, templates, or regex
XSSUnescaped output, dangerouslySetInnerHTML, innerHTML without sanitization
Auth bypassMissing authorization checks, client-side-only access control
Secrets in codeAPI keys, tokens, passwords committed or logged
Unsafe deserializationParsing untrusted JSON/YAML without validation, eval of user input
CSRF / CORSMissing CSRF tokens, overly permissive CORS configuration

Maintainability

CheckWhat to look for
CouplingComponents tightly bound to implementation details of other modules
DuplicationSame logic repeated in multiple places; candidate for extraction
Test coverageUntested happy paths, missing edge-case tests, brittle test setup
Dead codeUnused exports, commented-out blocks, unreachable branches
Unclear abstractionsOver-abstraction (unnecessary indirection) or under-abstraction (god functions)
Upgrade pathDeprecated APIs, framework-version-specific hacks, pinned dependencies

Step 3: Output as a Prioritized Finding List

Organize every finding by severity using the classification table below.

Severity Classification

SeverityQualifies when...Examples
CriticalCauses data loss, security breach, or crash in productionSQL injection, unhandled null on critical path, race condition corrupting state
HighBreaks functionality or significantly degrades UXLogic error in business rule, missing error handling on API call, auth check skipped
MediumImpacts quality but doesn't break thingsN+1 query on secondary page, moderate duplication, missing test for edge case
LowMinor improvement opportunitySlightly better naming, small refactor for clarity, non-critical performance tweak
NitStylistic or trivial; optional to addressExtra whitespace, import order, comment wording, personal preference

Finding Format

For each finding, include:

  • Severity: Critical / High / Medium / Low / Nit
  • Dimension: Which of the five dimensions it falls under
  • Location: File path and line number (or range)
  • Issue: What the problem is (one sentence)
  • Suggestion: How to improve it (concrete, with code snippet when helpful)
  • Why it matters: Impact on users, developers, or the system

Summary Section

After all findings, include:

  • Total count by severity
  • Top 3 priorities to address first
  • Positive patterns observed (what the code does well)
  • Overall assessment (one paragraph)

Tone Guidance

  • Use "Consider X" not "You should X."
  • Use "This could Y" not "This will Y" unless certain.
  • Praise good patterns: "Nice use of early returns here" or "Good separation of concerns."
  • Explain the "why" for every suggestion; reviewees learn more from reasoning than rules.
  • Acknowledge trade-offs: "This adds complexity but improves testability."
  • When uncertain, say so: "I'm not sure about the intent here — if Z is the goal, then consider W."

NEVER:

  • Nitpick style when there are critical issues (prioritize ruthlessly)
  • Flag something without a concrete suggestion for improvement
  • Assume malice or carelessness — the author may have context you don't
  • Rewrite entire functions in suggestions — keep diffs small and focused

Domande frequenti

Cosa fa la skill IA Code Review?

Perform a structured code review covering correctness, readability, performance, security, and maintainability. Use when user says "review this code", "code review", "check this PR", "review my changes", "is this code good", or needs expert feedback on code quality.

Perché usare Code Review su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Code Review è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Code Review in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/code-review. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Code Review?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Code Review?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Code Review: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Code Review è gratuita?

Sì. È pubblicata su GitHub da kazdenc con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇