Logo van Pre Merge Review

Pre Merge Review

Organisatie
TSS-Blue-AI-Lab
pre-merge-review

Run a portable, evidence-based review of the changes intended for merge. Use before merging a branch to inspect correctness, security, maintainability, tests, documentation, and review coverage without modifying the changes.

Add to TypingMind

Overzicht

UitgeverTSS-Blue-AI-Lab
Repositoryai-lab-agent-skills
Skillnaampre-merge-review
Sterren
26
Forks
3
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door TSS-Blue-AI-Lab op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Pre Merge Review in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/pre-merge-review
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills.git /tmp/ai-lab-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-lab-agent-skills/skills/pre-merge-review .claude/skills/pre-merge-review
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Pre Merge Review in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Pre Merge Review automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Pre Merge Review niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Pre-Merge Review Pipeline

Review the exact changes intended for merge, run the checks supported by the repository, and produce one consolidated report. The pipeline is platform-neutral: use the skills, tools, commands, or manual inspection available in the current environment and identify what provided each result.

Constraints

  • Review the complete merge diff against a verified base branch.
  • Detect staged, unstaged, and untracked files; never silently exclude them.
  • Do not edit source files, auto-fix findings, install dependencies, commit, push, or merge.
  • Prefer repository-defined commands and existing environments over invented commands or global tooling.
  • Treat an inapplicable phase, an unavailable capability, and a failed check as different outcomes.
  • Support findings with evidence from the diff, repository, or command output.
  • Do not report READY FOR MERGE when required coverage is incomplete.
  • Do not expose secrets or proprietary source excerpts in the report.

Phase 0 — Establish scope

Identify the base

Use the first reliable source:

  1. A base branch supplied by the user or merge-request context.
  2. The branch's configured upstream or the remote's symbolic default branch.
  3. An existing conventional branch such as main or master.

Verify that the selected reference exists and compute its merge base with HEAD. If detection remains ambiguous, ask the user instead of choosing silently. Report the selected base and how it was determined.

Inventory changes

Build separate inventories for:

  • committed branch changes from <base>...HEAD;
  • staged changes;
  • unstaged changes; and
  • untracked, non-ignored files.

The committed merge diff is the default review scope. If local changes exist, explain that they are not part of the committed branch and ask whether they should also be reviewed. Regardless of that choice, disclose them because they can affect local test results.

Record renames, deletions, generated files, vendored code, binaries, migrations, configuration, documentation, and tests rather than assuming that every changed file is ordinary source code.

Discover repository guidance

Read the repository's contributor or agent guidance and inspect build manifests, lockfiles, task runners, continuous-integration configuration, and test configuration. Use these to determine:

  • languages and frameworks affected by the changes;
  • repository-supported lint, formatting-check, type-check, test, build, and E2E commands;
  • generated or vendored paths that require special handling; and
  • any documented review or merge requirements.

Print a scope summary before starting: current branch, base, merge base, included and excluded local changes, changed-file categories, and planned checks.

Phase 1 — Inspect the diff

Review the complete included diff and relevant surrounding code for:

  • incorrect behavior, regressions, edge cases, and error handling;
  • security, privacy, authorization, validation, and data-loss risks;
  • interface, schema, migration, configuration, and compatibility changes;
  • concurrency, lifecycle, resource, and performance problems;
  • dead code, duplication, unnecessary complexity, and maintainability issues;
  • missing or misleading tests; and
  • documentation that no longer matches behavior.

Use available review skills or integrations when they fit, but do not require a platform-specific command. If no specialized reviewer is available, perform the inspection directly and record that implementation in the phase results.

Phase 2 — Run repository checks

Select checks from repository guidance and the affected technologies. Typical categories are:

  • formatting verification without auto-fix;
  • linting and static analysis;
  • type checking;
  • focused tests for changed behavior;
  • the broader test suite when proportionate;
  • build or compile verification; and
  • schema or migration validation.

Use the project's existing environment and dependency state. Do not install missing tools automatically. For every command, record the exact command, exit status, and relevant result.

Classify each planned check as:

  • passed — ran successfully;
  • failed — ran and found a problem or could not complete;
  • not applicable — does not relate to the changes;
  • unavailable — required tool, environment, service, or credential is missing; or
  • not run — deliberately omitted, with the reason.

A required check that is failed, unavailable, or not run makes review coverage incomplete unless equivalent evidence is obtained another way.

Phase 3 — Validate affected flows

Run E2E or integration coverage when the changes affect a user-visible or cross-system flow and the repository provides a safe, configured way to do so. Examples include authentication, authorization, payments, destructive actions, migrations, imports, exports, and communication with external services.

Do not run checks that would mutate production data, send real messages, incur charges, or require undisclosed credentials. Mark such coverage as unavailable and state what a reviewer should verify in an appropriate environment.

For cosmetic, documentation-only, or isolated test changes, mark E2E as not applicable and explain why.

Phase 4 — Check documentation

Compare behavior and interfaces in the diff with relevant READMEs, guides, API references, examples, changelogs, configuration documentation, and operational instructions.

Report documentation gaps as findings. Do not update documentation during this read-only pipeline.

Phase 5 — Optional independent review

When a genuinely independent reviewer or review integration is available, run it against the same scope and provide the same base and inclusion rules. This phase is optional; absence alone does not make the review incomplete.

Validate imported findings against the actual diff and surrounding code. Do not treat another reviewer's output as established fact.

Phase 6 — Consolidate findings

Merge overlapping findings that share a root cause. Keep distinct consequences separate only when they require different fixes or have materially different severity.

Each actionable finding must contain:

  • a stable ID and severity;
  • file and line or the narrowest available location;
  • the observed behavior or failure mode;
  • evidence and the relevant conditions;
  • impact;
  • a focused remediation proposal; and
  • confidence: high, medium, or low.

Do not inflate severity because a finding came from a specialized tool. Omit speculative concerns that cannot be tied to changed code, or list them separately as questions requiring confirmation.

Phase 7 — Report

Use this structure:

markdown
# Pre-Merge Review Report

**Branch:** <branch>
**Base:** <verified base and detection source>
**Merge base:** <commit>
**Scope:** <committed diff plus any approved local changes>
**Files reviewed:** <count>

## Coverage
| Phase or check | Implementation or command | Status | Evidence or limitation |
|---|---|---|---|

## Blocking Findings
- [ID] severity · confidence — file:line — finding, evidence, impact, remediation

## Non-Blocking Findings
- [ID] severity · confidence — file:line — finding, evidence, impact, remediation

## Documentation Gaps
- <location and required update>

## Open Questions
- <unverified assumption or decision needed>

## Excluded Changes and Coverage Limitations
- <what was not reviewed or could not run, and why>

## Recommendation
DO NOT MERGE / MERGE WITH FIXES / READY FOR MERGE / REVIEW INCOMPLETE

Recommendation logic

  • DO NOT MERGE: a confirmed critical security, privacy, corruption, or data-loss risk exists.
  • MERGE WITH FIXES: confirmed blocking findings must be resolved first.
  • READY FOR MERGE: no blocking findings remain and all required coverage passed or has equivalent evidence.
  • REVIEW INCOMPLETE: missing, failed, or excluded required coverage prevents a reliable recommendation.

State that READY FOR MERGE reflects the reviewed scope and evidence; it is not proof that the change is defect-free.

Veelgestelde vragen

Wat doet de AI-skill Pre Merge Review?

Run a portable, evidence-based review of the changes intended for merge. Use before merging a branch to inspect correctness, security, maintainability, tests, documentation, and review coverage without modifying the changes.

Waarom Pre Merge Review gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Pre Merge Review bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Pre Merge Review in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/pre-merge-review. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Pre Merge Review gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Pre Merge Review gebruiken?

Zoveel als je wilt. Je kunt Pre Merge Review gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Pre Merge Review gratis?

Deze skill is door TSS-Blue-AI-Lab op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇