Logo di Pr Reviewer

Pr Reviewer

Community
AndrewNgGirl
pr-reviewer

Use when the user asks to review, audit, comment on, or 评审 / 审查 a GitHub Pull Request. Generates structured review comments covering team-specific code style, naming, and structural conventions — complements (not replaces) bug-finding tools like Copilot Code Review or CodeQL.

Panoramica

Pubblicato daAndrewNgGirl
RepositorySkillLens
Nome della skillpr-reviewer
Stelle
45
Fork
5
File inclusi
9
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.

  • File inclusi: 9

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

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

Installazione

Installa la skill IA Pr Reviewer 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/AndrewNgGirl/SkillLens/tree/main/skills/skill-scorer/examples/pr-reviewer
  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/AndrewNgGirl/SkillLens.git /tmp/SkillLens
mkdir -p .claude/skills
cp -r /tmp/SkillLens/skills/skill-scorer/examples/pr-reviewer .claude/skills/pr-reviewer
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Pr Reviewer 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 Pr Reviewer 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 Pr Reviewer 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à.

pr-reviewer

When to use

When the user asks to review / audit / comment / 评审 / 审查 a GitHub PR by URL or local diff. Trigger phrases include:

Not suitable for: bug-hunting (use Copilot Code Review), security scans (use CodeQL), runtime performance review.

Target users

  • Open-source maintainers handling 5–20 PRs/week
  • Small dev teams (3–8 engineers) without a dedicated reviewer
  • Solo developers who want a second pair of eyes on style and structure

Estimated frequency: per-PR (high-frequency, daily for active repos).

Why this skill

Unlike GitHub Copilot Code Review (focuses on bugs) or CodeQL (focuses on security), pr-reviewer focuses on team-specific style and structural conventions — the kind of rules that are written down in your team handbook but no off-the-shelf tool knows about.

Quantified value: cuts the average human "first-pass review" from ~30 min to ~5 min per PR — saves about 25 min/PR × 10 PRs/week ≈ 4 h/week per reviewer.

Inputs

FieldTypeRequiredNotes
pr_urlstringyese.g. https://github.com/owner/repo/pull/123
team_rulesstringoptionalpath to team convention markdown; defaults to references/default-rules.md
languageenumoptionalone of python, typescript, go; auto-detect if omitted

Cache key: SHA-256 of (pr_url, head_sha, team_rules_hash) — same PR + same head SHA reuses cached review without re-calling the LLM.

Workflow

  1. Fetch diff: call scripts/fetch_pr.py with pr_url → returns unified diff + file list.
  2. Static lint: run language-specific linter (ruff / eslint / golangci-lint) for objective issues.
  3. Style review (LLM): feed diff + team_rules to the LLM, ask for ≤ 5 most impactful style issues with line refs.
  4. Compose comments: merge linter issues + LLM issues into JSON, deduplicated by (file, line, message_first_30_chars).
  5. Validate output: pass through scripts/validate_review.py against assets/review.schema.json; on fail, regenerate once, then escalate to user.
  6. Output: structured JSON ready for gh pr review --comment or copy-paste into a GitHub review.

Outputs

json
{
  "summary": "string, ≤ 200 chars",
  "comments": [
    { "file": "path/to/file.py", "line": 42, "severity": "info|warn|error", "message": "string" }
  ],
  "approve": "comment | request_changes | approve"
}

Schema lives at assets/review.schema.json; comments[].severity must be one of the three enum values.

Dependencies

NameTypePaid?Approx cost / call
GitHub API (read-only)APIfree (60 req/h unauth, 5000/h with token)$0
ruff / eslint / golangci-lintCLIfree$0
Skill's underlying LLM providerAPIyes~$0.005 / PR

Determinism

  • Steps 1, 2, 5 are fully deterministic (scripts only).
  • Step 3 (LLM) uses temperature=0.2; same diff + same rules produces ≈ same output across reruns.
  • Step 4 deduplicates by (file, line, message_first_30_chars) so result order doesn't matter.

Failure handling

  • GitHub API 403 / 404 → tell user "PR not accessible; check URL or auth token"; do not retry.
  • Linter binary missing → skip step 2 with a warning, continue with LLM-only review.
  • LLM output schema validation fails twice → return raw LLM output verbatim with a _schema_failed: true flag and surface the validation error to the user.
  • Rate limit hit → exponential backoff up to 3 retries; if all fail, return the partial review with _partial: true.

Privacy

Diff content is sent to the LLM provider configured by the host (e.g. DeepSeek / Anthropic). Do NOT use this skill on PRs containing secrets, credentials, or internal-only code without first checking your provider's data retention policy. See references/privacy.md for per-provider notes. No PR data is persisted by this skill itself.

Example

bash
# input
pr-reviewer review https://github.com/octocat/hello-world/pull/42

# output (truncated)
{
  "summary": "3 minor style issues; safe to merge after fixes.",
  "comments": [
    {"file": "src/utils.py", "line": 18, "severity": "warn",
     "message": "Function process_data has 4 params; consider grouping into a dataclass per team rule §2.3."},
    {"file": "src/utils.py", "line": 45, "severity": "info",
     "message": "Magic number 0.85 — extract to a named constant THRESHOLD."}
  ],
  "approve": "comment"
}

Files

  • scripts/fetch_pr.py — GitHub API client for diff fetching
  • scripts/validate_review.py — JSON schema validator
  • references/default-rules.md — fallback team conventions if user doesn't supply one
  • references/privacy.md — per-LLM-provider data handling notes (read before reviewing PRs containing secrets)
  • assets/review.schema.json — JSON schema for output validation
  • tests/sample_inputs.json — sample PR diffs for regression testing
  • tests/expected_outputs.json — expected reviews for those diffs

Changelog

  • 0.3.0 — added schema validation step, multi-language linter support
  • 0.2.0 — switched to deterministic dedup; added cache key
  • 0.1.0 — initial release (Python only)

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Pr Reviewer?

Use when the user asks to review, audit, comment on, or 评审 / 审查 a GitHub Pull Request. Generates structured review comments covering team-specific code style, naming, and structural conventions — complements (not replaces) bug-finding tools like Copilot Code Review or CodeQL.

Perché usare Pr Reviewer su TypingMind?

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

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/AndrewNgGirl/SkillLens/tree/main/skills/skill-scorer/examples/pr-reviewer. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Pr Reviewer?

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 Pr Reviewer?

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

La skill IA Pr Reviewer è gratuita?

Sì. È pubblicata su GitHub da AndrewNgGirl 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, 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 👇