Logo di Safe To Merge

Safe To Merge

Organizzazione
off-grid-ai
safe-to-merge

Take a pull request from "the diff exists" to "ready to merge" and keep it there. Your agent audits its diff, gathers every review signal, answers each comment, fixes behind the checks and re-reviews until nothing blocks. Use when you say "review this PR", "get this PR merge-ready", "/safe-to-merge", "address the review comments", or after pushing to a PR with open comments.

Panoramica

Pubblicato daoff-grid-ai
Repositoryskills
Nome della skillsafe-to-merge
Stelle
189
Fork
23
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 off-grid-ai su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Safe To Merge 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/off-grid-ai/skills/tree/main/review/skills/safe-to-merge
  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/off-grid-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/review/skills/safe-to-merge .claude/skills/safe-to-merge
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Safe To Merge 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 Safe To Merge 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 Safe To Merge 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à.

Get PRs merge-ready

A pull request is not done when the code is written. It is done when it is verified and clean under review. This skill is the loop that gets it there and keeps it there. It is iterative on purpose: review, triage, fix behind the gates, push, re-review, until the exit criteria hold. Then it feeds what it learned back into the standard.

The rubric for "good" is the code-check skill. This loop does not re-derive quality; it applies that skill's AUDIT mode to a live PR and manages the round trip with reviewers.

First, find the repo and the PR. gh pr view --json number,headRefName,baseRefName,title,url (or your git host's CLI). If several PRs are open, confirm which one. Note which repo and stack it is: the gates and tokens differ per repo (code-check, Mechanical gates).

Posting is outward-facing. Replying to a reviewer, pushing commits and merging are visible to others. Draft first. Post replies and push freely on the PR's own branch (that is the loop), but never merge without an explicit go from the user, and never push to the main branch.


The loop

Phase 1: Self-audit (before you read anyone else's comments)

Run code-check in AUDIT mode against git diff <base>...HEAD. Produce the per-dimension PASS / FAIL / N/A verdict with evidence (run the mechanical gates, paste the output). Fix your own blocking issues before inviting review: a reviewer's time is not your linter. Record the AUDIT verdict; it is half of the exit criteria.

Phase 2: Gather every review signal

Collect all of them; do not cherry-pick:

  • Automated reviewers: whatever the repo uses. Common ones: AI review bots (Gemini Code Assist, CodeRabbit, Copilot review; trigger them the way the repo does, for example a /gemini review comment), coverage (Codecov, Coveralls: coverage change and patch coverage), static analysis (SonarCloud, CodeQL: new issues, quality gate, security hotspots). CI status: gh pr checks.
  • Human comments: gh pr view <n> --comments, and review threads via gh api repos/{owner}/{repo}/pulls/{n}/comments (inline) and .../reviews.

List every open, unresolved comment in one place. That list is the work.

Phase 3: Triage each comment (one verdict per comment, no silent skips)

For every comment, choose exactly one, with a one-line reason:

  • ACCEPT, then fix: valid; fix it in this PR (most CI findings).
  • REJECT, then reply: not valid or not applicable; reply with the specific reason. A false positive from a bot still gets a polite, concrete answer so the thread resolves.
  • DEFER, as a gap: real but outside this PR's one concern. Log it in the project's backlog (an issue, or docs/GAPS_BACKLOG.md if the repo keeps one) with a link, and reply saying so. One concern per PR; gaps are surfaced, never hidden.

Reply to each comment on its own thread. Reviewers and threads resolve one by one, never with one blanket comment. A bot comment you fixed gets a short "fixed in ".

Watch for the trap: a bot flags a symptom, and the real defect is a standard broken underneath (a caller branching on a concrete type, a duplicated constant, a mock asserting itself). Fix the seam (code-check: Separation of concerns, SOLID), not the symptom the bot happened to see.

Phase 4: Fix behind the mechanical gates

Make the accepted fixes on the PR branch. Every fix clears the repo's mechanical gates before it is pushed: formatter, linter, type check, the fix's own tests, coverage against the repo's bar, and a production build if native code, dependencies, config or imports changed. New behaviour ships with a test that proves it (code-check: Testing). Never skip hooks (--no-verify). Never bundle a repo-wide reformat: format only the lines you touched. A whole-file reformat that trips a size or complexity rule, or bloats the diff, is its own defect: revert it and re-apply minimally.

Commit per concern with a real message, and push. Reply "fixed in " on each thread you closed.

Phase 5: Re-review (the loop)

After the push, CI runs again. Go back to Phase 2: pull the new signal, triage new and repeated comments, fix, push. Repeat until the exit criteria hold. Each pass should shrink the open list. If it grows, a fix brought a regression: treat it as a Phase 1 miss.

Exit criteria (all must hold):

  1. code-check AUDIT: overall PASS, zero blocking issues.
  2. Every review thread resolved (fixed, answered, or deferred with a link). None left open.
  3. All CI checks green: no AI reviewer blocker left unaddressed, patch coverage meets the repo's bar, the static analysis gate passes, the build is clean.
  4. Evidence attached to the PR: for UI changes, a screenshot per changed surface (read each one and confirm it matches the claim) and a video for any interaction; for every change, the pasted test output and the test that proves the new behaviour; on mobile, the journey run on a device.
  5. Honesty check: what is NOT verified is named (not run on a device, not tested with two devices, native linking untested, a bug that could not be reproduced is "candidate, not confirmed"). No inflated "done".

State the exit verdict as one of three gates: code / wired / verified. Only "verified" is done. Merging waits for the user's explicit go, and follows the repo's merge style (ask if it is not written down).

Phase 6: Distill (feed the standard)

The review just taught you something. Before closing out, run never-twice (/never-twice, or ask your agent to use never-twice) on this PR's review comments. The generic lessons sharpen code-check; the specific ones are discarded. A review whose lessons evaporate is re-learned the hard way on the next PR. This phase is not optional: it is how the loop compounds.


Notes

  • Scope discipline. If review surfaces a real but unrelated problem, it is a gap in the backlog, not scope creep. One concern per PR.
  • The author and the reviewer can be the same agent. That does not lower the bar. Audit your own diff as a hostile stranger would; the point is to catch the thing you were sure was fine.
  • Green CI with a broken feature is a FAIL. Checks passing does not mean the feature works; the integration test through the real seam is what proves it.

Domande frequenti

Cosa fa la skill IA Safe To Merge?

Take a pull request from "the diff exists" to "ready to merge" and keep it there. Your agent audits its diff, gathers every review signal, answers each comment, fixes behind the checks and re-reviews until nothing blocks. Use when you say "review this PR", "get this PR merge-ready", "/safe-to-merge", "address the review comments", or after pushing to a PR with open comments.

Perché usare Safe To Merge su TypingMind?

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

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/off-grid-ai/skills/tree/main/review/skills/safe-to-merge. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Safe To Merge?

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 Safe To Merge?

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

La skill IA Safe To Merge è gratuita?

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