Logo di Lean Pr Review

Lean Pr Review

Community
ahmadrosid
lean-pr-review

Esamina una PR su GitHub, dando priorità ai problemi gravi e poi alla complessità superflua. Approva la PR esaminata e apri una PR separata per correggere i problemi verificati. Non pubblicare commenti sulla review e non aspettare che l’autore risolva i problemi. Usalo per una review essenziale di una PR, con /lean-pr-review o /lean-review, oppure per segnalare un’eccessiva complessità.

Add to TypingMind

Panoramica

Pubblicato daahmadrosid
Repositorynakama
Nome della skilllean-pr-review
Stelle
492
Fork
91
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 ahmadrosid su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Lean Pr 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/ahmadrosid/nakama/tree/main/.agents/skills/lean-pr-review
  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/ahmadrosid/nakama.git /tmp/nakama
mkdir -p .claude/skills
cp -r /tmp/nakama/.agents/skills/lean-pr-review .claude/skills/lean-pr-review
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

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

Lean PR review

Review a GitHub PR for major issues, then over-engineering. Never mention internal frameworks, scoring tags, or this skill by name in comments or commit messages.

Input

PR URL or number (e.g. https://github.com/OWNER/REPO/pull/N).

Default: approve and open a fix PR

“Accept” means approve, not merge. For any author, fix verified findings in a separate PR instead of posting comments or waiting for the author. Explicit user instructions override this default.

Steps

  1. Fetch the PR with gh (REST preferred):

    • Metadata: title, body, base/head, author login, additions/deletions, changed files
    • Full diff for every changed file
    • Head SHA (needed to approve the reviewed version and prepare fixes)
    • Authenticated login: gh api user --jq .login
  2. First trace the changed behavior and its callers. Find concrete major issues: broken behavior, security or data exposure, data loss, or serious performance regressions. Report only issues supported by a clear failure scenario. Do not invent risks or flag style nits and minor test gaps. Fix these findings before any complexity findings.

  3. Then review for unnecessary complexity. A single smoke / assert-based self-check is fine — never ask to delete it.

    Ask: what can get shorter or go away without losing behavior?

    Look for:

    • Dead code, unused flexibility, speculative features → cut
    • Hand-rolled stdlib / platform features → use the built-in
    • Abstraction with one implementation, config nobody sets, layer with one caller
    • Same logic in fewer lines
    • Tests that re-prove the same property twice (e.g. two phases inside one try/finally when one hang + one failure already covers the lock)

    If neither pass finds anything, proceed to approval without inventing nits.

  4. Draft findings privately as file:Lline: problem, impact, and concrete fix for major issues, or file:Lline: what to cut. what replaces it. for lean cuts.

  5. If findings exist, prepare and open the separate fix PR below. Then re-fetch the original PR head SHA. If it changed, review the new changes and update the fixes before approving.

  6. Approve the reviewed SHA for an open PR by someone else using REST:

    bash
    gh api repos/OWNER/REPO/pulls/N/reviews --method POST --input review.json

    Write review.json with commit_id set to the reviewed head SHA and event set to APPROVE. Omit body and comments. GitHub does not allow approving your own PR; skip approval in that case. Skip approval for closed or merged PRs. Report API or permission failures in chat; do not substitute a comment or claim approval succeeded.

  7. Return the approval URL and fix PR URL with a short summary of the fixes. With no findings, return “LGTM” and the approval URL. Briefly state if approval was skipped or failed.

Separate fix PR

  1. Check out the reviewed head SHA in an isolated worktree when practical. Create a new branch, such as fix/pr-N-review, so the user's checkout stays untouched. Do not push fixes to the original PR branch.
  2. Fix verified major issues first, then apply lean cuts as minimal edits. No drive-by refactors beyond the findings.
  3. Run the smallest relevant tests and required checks for the touched files.
  4. Commit with a clear message focused on the fixes. Follow the user's git commit rules. Push to the original PR's base repository, or to your own fork if you cannot write there. Never push to the original author's fork.
  5. Open one ready-for-review PR containing the fixes:
    • Always open the fix PR in the original PR's base repository, targeting its base branch. Never open a PR in the original author's fork or target the author's branch.
    • Original PR open: base the fix branch on its reviewed head and state that the fix depends on the original PR. Its diff will narrow after the original PR merges. Do not merge the fix PR first.
    • Original PR merged: start from the updated base branch, apply only fixes still needed, test, and target that base branch.
    • Original PR closed without merging: report this in chat; do not reopen its changes through a fix PR.
  6. Link the original PR in the fix PR body. Explain the concrete failure, resulting behavior, and validation. Follow the repository's PR template and PR description skill. Do not rewrite the original PR description.
  7. If permissions or GitHub branch rules prevent opening the fix PR, preserve the prepared changes and report the blocker in chat. Do not post findings on the original PR or wait for its author to implement them.

Boundaries

  • Apply only verified major fixes and lean cuts.
  • Do not post issue comments, inline review comments, or request changes under the default workflow.
  • Approval does not authorize merging either PR.
  • Do not rewrite the original PR description.
  • Do not mention internal review frameworks, skills, or scoring in reviews or commit messages.
  • Do not flag production code that is already the minimal pattern (e.g. a boolean in-flight guard with try/finally).
  • Verify approval, push, and PR creation before claiming success.

Domande frequenti

Cosa fa la skill IA Lean Pr Review?

Esamina una PR su GitHub, dando priorità ai problemi gravi e poi alla complessità superflua. Approva la PR esaminata e apri una PR separata per correggere i problemi verificati. Non pubblicare commenti sulla review e non aspettare che l’autore risolva i problemi. Usalo per una review essenziale di una PR, con /lean-pr-review o /lean-review, oppure per segnalare un’eccessiva complessità.

Perché usare Lean Pr Review su TypingMind?

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

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/ahmadrosid/nakama/tree/main/.agents/skills/lean-pr-review. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Lean Pr Review?

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 Lean Pr Review?

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

La skill IA Lean Pr Review è gratuita?

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