Logo di Code Review Github

Code Review Github

Organizzazione
initializ
code-review-github

GitHub PR workflow orchestration for code review — list PRs, post comments, apply labels, and guarded auto-merge

Add to TypingMind

Panoramica

Pubblicato dainitializ
Repositoryforge
Nome della skillcode-review-github
Stelle
242
Fork
14
File inclusi
Solo istruzioni
LicenzaApache-2.0
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 initializ su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Code Review Github 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/initializ/forge/tree/main/forge-skills/local/embedded/code-review-github
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi 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 della skill nella directory delle skill di quell'agente.

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

Usala in TypingMind

Attiva Code Review Github 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 Github 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 Github 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 GitHub Integration

Orchestrates GitHub PR workflows for AI code review. Provides tools to list pull requests, post inline review comments, apply labels based on review findings, and (with explicit opt-in) auto-merge clean PRs.

All GitHub API interactions go through the gh CLI. Direct HTTP requests and web searches are denied to ensure all operations are auditable and respect GitHub's rate limiting.

Authentication

bash
export GH_TOKEN="ghp_..."

The token needs read-write access since this skill posts comments, applies labels, and can merge PRs:

Scope (classic PAT)Fine-grained permissionWhy
repoPull requests: Read & WriteList PRs, post review comments, merge
repoContents: ReadRead PR diff and file contents
repoIssues: WriteApply and remove labels
read:org (optional)Organization: ReadOrg-level label policies

Minimum fine-grained token permissions: pull_requests: write, contents: read, issues: write on the target repository.

For read-only review without GitHub interaction, use the code-review skill instead — it only needs read access.

Environment Variables

VariableRequiredDescription
GH_TOKENyesGitHub personal access token or fine-grained token
REVIEW_AUTO_MERGEnoSet to true to enable guarded auto-merge. Default: disabled
REVIEW_LABEL_PREFIXnoPrefix for review labels (default: review/). Labels: review/approved, review/needs-changes, review/security-concern

Tool: review_github_list_prs

List open pull requests for a repository, optionally filtered by author or label.

Input:

ParameterTypeRequiredDescription
repostringyesRepository in owner/repo format
authorstringnoFilter by PR author username
labelstringnoFilter by label
limitintegernoMaximum PRs to return (default: 10, max: 100)

Output: JSON array of pull requests with number, title, author, url, labels, created_at, updated_at, mergeable_state.

Detection Heuristics

The agent selects this tool when it detects:

  • Requests to "list PRs", "show open pull requests", "what PRs need review"
  • Requests to find PRs by a specific author or with specific labels

Tool: review_github_post_comments

Post inline review comments on a GitHub pull request based on code review findings.

Input:

ParameterTypeRequiredDescription
repostringyesRepository in owner/repo format
pr_numberintegeryesPull request number
findingsarrayyesArray of findings from code_review_diff output
submit_reviewbooleannoSubmit as a formal review (not just individual comments). Default: true
review_eventstringnoReview event type: COMMENT, APPROVE, REQUEST_CHANGES. Default: COMMENT

Each finding in the array should have: file, line, severity, title, description, suggestion.

Output: JSON object with comments_posted, review_url, and any errors for comments that failed.

Detection Heuristics

The agent selects this tool when it detects:

  • Requests to "post review comments", "comment on the PR", "submit review"
  • After running code_review_diff, user asks to post findings to GitHub

Comment Format

Comments are posted as inline review comments with this format:

**[severity] category: title**

description

💡 **Suggestion:** suggestion

Tool: review_github_apply_labels

Apply review-status labels to a pull request based on review findings.

Input:

ParameterTypeRequiredDescription
repostringyesRepository in owner/repo format
pr_numberintegeryesPull request number
risk_levelstringyesOverall risk level from review: low, medium, high, critical
has_security_findingsbooleannoWhether security issues were found. Default: false

Output: JSON object with labels_applied and labels_removed.

Label Mapping

Risk LevelLabel Applied
lowreview/approved
mediumreview/needs-changes
highreview/needs-changes
criticalreview/security-concern

If has_security_findings is true, review/security-concern is always applied regardless of risk level.

Previous review labels (with the configured prefix) are removed before applying new ones.

Detection Heuristics

The agent selects this tool when it detects:

  • Requests to "label the PR", "apply review labels", "mark PR as approved"
  • After completing a review, user asks to update PR status

Tool: review_github_auto_merge

Merge a pull request after verifying safety conditions. Requires explicit opt-in via REVIEW_AUTO_MERGE=true.

Input:

ParameterTypeRequiredDescription
repostringyesRepository in owner/repo format
pr_numberintegeryesPull request number
merge_methodstringnoMerge method: merge, squash, rebase. Default: squash
require_clean_reviewbooleannoRequire no error-severity findings before merging. Default: true
review_resultobjectnoReview result from code_review_diff to verify cleanliness

Output: JSON object with merged, sha, message, or blocked_reason if merge was prevented.

Detection Heuristics

The agent selects this tool when it detects:

  • Requests to "merge the PR", "auto-merge if clean"
  • Requests to "merge after review passes"

Safety Guards

This tool enforces multiple safety layers:

  1. Env var gate: REVIEW_AUTO_MERGE must be explicitly set to true. If unset or any other value, merge is blocked with a clear message.
  2. Clean review required: By default, the PR must have no error-severity findings. Override with require_clean_review: false.
  3. CI checks: All required status checks must pass (enforced by GitHub's branch protection).
  4. No dismissed reviews: The tool never dismisses existing review requests or approvals.
  5. Merge conflicts: GitHub API rejects merges with conflicts — the tool surfaces this clearly.

Workflow: Full PR Review Cycle

A typical end-to-end review workflow using all three code-review skills:

  1. List PRs → review_github_list_prs to find PRs needing review
  2. Run review → code_review_diff with the PR URL to generate findings
  3. Post comments → review_github_post_comments to post findings as inline comments
  4. Apply labels → review_github_apply_labels to set status labels
  5. Auto-merge (optional) → review_github_auto_merge if review is clean and opt-in is enabled

Safety Constraints

This skill MUST:

  • Never merge without REVIEW_AUTO_MERGE=true explicitly set
  • Never dismiss existing reviews or review requests
  • Never force-push or modify PR branch contents
  • Never delete branches (leave that to GitHub's auto-delete setting)
  • Never bypass branch protection rules
  • Never approve its own PRs (if the token belongs to the PR author)
  • Post comments as the authenticated user — never impersonate
  • All GitHub operations go through gh CLI — http_request and web_search tools are denied
  • Rate-limit awareness: back off on 403/429 responses from GitHub API

Autonomous Compatibility

This skill is designed to work in automated pipelines:

  • All inputs and outputs are structured JSON
  • Error states return JSON with error field and descriptive messages
  • Idempotent: re-running label application or comment posting produces consistent results
  • Labels are prefix-scoped to avoid conflicting with other label systems

Domande frequenti

Cosa fa la skill IA Code Review Github?

GitHub PR workflow orchestration for code review — list PRs, post comments, apply labels, and guarded auto-merge

Perché usare Code Review Github su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Code Review Github è 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 la skill 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 Github in TypingMind?

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

Quali modelli IA possono usare Code Review Github?

Qualsiasi modello che colleghi a 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 Github?

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

La skill IA Code Review Github è gratuita?

Sì. È pubblicata su GitHub da initializ con licenza Apache-2.0. 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, template 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.

Elenco completo

Crea subito il tuo spazio di lavoro AI

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