Logo di Code Review

Code Review

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

Panoramica

Autoremzbac
Repositoryskills
Nome della skillcode-review
Stelle
27
Fork
1
File inclusi
Solo istruzioni
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 mzbac 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/mzbac/skills/tree/main/skills/code-review-low
  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/mzbac/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/code-review-low .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à.

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.

Domande frequenti

Cosa fa la skill IA 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.

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/mzbac/skills/tree/main/skills/code-review-low. 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?

È pubblicata su GitHub da mzbac. Consulta il repository per i termini di licenza. 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 👇