Logo vun Rseng Version Control Review

Rseng Version Control Review

Communautéit
fdiblen
rseng-version-control-review

Covers using version control effectively for research software and the PR-time review process: choosing a VCS, branching and commit practice, authorship and signatures in commit metadata (author/committer identity, Co-authored-by trailers, signed commits and tags, .mailmap), collaboration on GitHub/GitLab, and constructive checklist-driven pull-request reviews. Use when the user asks how to set up git, design a branching strategy, write commit messages, record who authored or co-authored a change, sign commits or tags, handle large binary files, open or review a pull/merge request, or wire linters and CI into review. (Audits of existing code and milestone reviews: rseng-code-review; pre-reviewing your own draft: rseng-pair-programming.)

Iwwersiicht

Editeurfdiblen
Repositoryrseng-agent-skills
Skill-Nummrseng-version-control-review
Stären
26
Forks
2
Matgeliwwert Fichieren
1
LizenzCC-BY-4.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum fdiblen op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rseng Version Control Review an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/fdiblen/rseng-agent-skills/tree/main/skills/rseng-version-control-review
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fdiblen/rseng-agent-skills.git /tmp/rseng-agent-skills
mkdir -p .claude/skills
cp -r /tmp/rseng-agent-skills/skills/rseng-version-control-review .claude/skills/rseng-version-control-review
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rseng Version Control Review an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rseng Version Control Review automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rseng Version Control Review net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Version control and code review for research software

Use this skill when helping someone put research code under version control, shape a collaboration workflow, or review code (their own or a teammate's). The aim is software whose history is traceable, whose changes are reviewed before they land, and whose results others can reproduce. Version control and review are two halves of one loop: commits and branches create reviewable units, and review is what keeps what lands on the main branch trustworthy.

Choose a version control system

Default to git for almost every research project unless a concrete constraint says otherwise:

  • Git is the community's standard and the right choice for research projects: collaboration, review and archiving tooling all assume it (the strongest-current-tool rule applies to version control too).
  • Large binary files (datasets, models, images) do not belong in plain git history: use a data versioning layer (DVC, git-annex, DataLad - rseng-data-management) or git-lfs for media-style assets.
  • A team new to version control still starts with git - budget training time (rseng-trainer) rather than reaching for a gentler-seeming legacy system; inherited repositories in older systems (SVN, Mercurial) are a migration task, not a reason to stay.

Set up the workflow, not just the repo

Choosing a tool is the easy part; the value comes from an agreed workflow:

  • Define a branching strategy up front. Keep the main branch releasable; do work on short-lived feature branches and merge back via review. Adopt a heavier model such as Git Flow only when project size warrants it - do not impose ceremony a small team will not follow.
  • Set commit conventions. Write small, focused commits with clear messages that say why a change was made, not just what. One logical change per commit keeps history bisectable and reviews small.
  • Integrate with the development environment. Wire the VCS into the IDE or editor (VS Code, RStudio, PyCharm, Eclipse) so committing and diffing are part of normal work, and connect continuous integration so tests run on every push.
  • Make reproducibility explicit. Tag the exact versions used in publications, and keep configuration files and dependency specifications in version control alongside the code.
  • Collaborate through a platform. Use GitHub or GitLab for sharing, issues, and pull/merge requests; make review a standing part of merging.
  • Maintain the repository. Back it up, prune stale branches periodically, and review access permissions.

Commit-message checklist: imperative summary line under ~50 characters; a body that explains motivation and any trade-offs; reference the issue or ticket it addresses; avoid dumping unrelated changes into one commit.

Authorship and signatures live in commit metadata

Who wrote a change, who committed it, and whether it is verified are facts git records in dedicated, machine-readable places. Keep them there - not in file headers, not in commit-message prose:

  • Identity is configuration. Set user.name and user.email correctly per project (institutional vs personal identity) BEFORE the first commit; forges, citation harvesters and contributor counts all read these fields. Use git commit --author when committing a change someone else wrote - git separates author (wrote it) from committer (recorded it) for exactly this case.
  • Multiple authors are trailers. Record co-authors with Co-authored-by: Name <email> trailers - the standard, forge-recognized mechanism - rather than naming people in the message body or a file header.
  • Signatures are commit signatures. Verification means signed commits and signed tags (commit.gpgsign, gpg.format ssh for SSH signing keys, git tag -s for releases), checked with git log --show-signature or the %G? format field. Sign at least the release tags that publications cite - a signed tag anchors provenance (rseng-provenance) far better than any statement in a README.
  • Fix identities with .mailmap. When names or emails vary across history, normalize them with a .mailmap file - the metadata-native correction - and NEVER rewrite published history to edit authors or signatures; corrections go forward.
  • Do not duplicate metadata into files. "Author: X, modified by Y on " headers in source files rot immediately and contradict the history; git log and git blame are the record (license/SPDX headers are a different thing and are fine). Likewise keep commit messages about the WHY of the change - the who/when/verified facts already live in the metadata fields.
  • Keep it truthful. The author field, trailers and signatures must reflect who actually did the work - including agent contributions where project policy records them; misrepresenting authorship in metadata is a concealment request (rseng-honesty), and accurate metadata is what contributor credit is harvested from (rseng-citation-metadata).

Run code review as a first-class practice

(Scope note: this skill covers PR-time review process and rules; retrospective codebase audits and milestone project reviews are rseng-code-review, and diff-time pre-review craft is rseng-pair-programming.)

Code review is systematic examination of code - a teammate's, or your own after time away - to find bugs, raise quality, and enforce shared standards. It pays off: rigorous inspection can remove 60-90% of errors before the first test run, and fixing a defect early costs 10-100x less than fixing it later. Beyond defect-catching, review spreads knowledge across the team, improves reusability and reproducibility, and helps onboard new members.

Structure every review through a pull/merge request so discussion, diffs, and suggestions stay attached to the change.

What to look for

Focus the review on substance:

  • Correctness - does the code do what it is supposed to, including edge cases?
  • Style and consistency - are naming, formatting, and structure consistent with the project's agreed conventions?
  • Testing - are there tests, and do they cover expected and edge-case behaviour?
  • Documentation - are functions, classes, and scripts clearly documented?
  • Modularity - is the code split into reusable, testable components?
  • Performance - is it efficient enough for the task (without premature optimisation)?

What not to do

Reviews go wrong by overstepping as much as by missing bugs. Avoid these:

  • Bikeshedding personal style. Do not argue single vs double quotes or similar when the team has no agreed standard - let linters and formatters settle it.
  • Demanding rewrites. Do not push to rewrite large sections without a clear reason such as a real bug or design flaw. Improve, do not take over.
  • Blaming the author. Critique the code, never the coder; keep feedback constructive and kind.
  • Requiring perfection before merge. Functional, tested, clear code can merge; minor polish can follow.
  • Mislabelling severity. Mark minor or subjective points as non-blocking; do not hold up progress for optional tweaks.
  • Expecting mastery of everything. Researchers who code come from varied backgrounds - do not expect deep software-engineering knowledge from every domain expert.

Make review efficient

  • Keep changes small. Small pull requests get faster, deeper review than large ones - another reason for focused commits and short-lived branches.
  • Automate the mechanical checks. Run linters and formatters (flake8, eslint, Pylint) and a CI pipeline before human review, so reviewers spend attention on logic and design rather than whitespace.
  • Keep feedback constructive. Ask questions rather than issue verdicts; reviewers learn as much as authors.
  • Combine human and automated review. Automated tools catch style and known mistake patterns; a human is still required for correctness, design, and intent - neither replaces the other.
  • For code underlying a paper, consider a CODECHECK-style independent reproduction of the results as a heavier form of review.

Reviewer checklist to paste into a PR: correctness and edge cases checked; tests present and meaningful; documentation adequate; naming and structure consistent; no obvious performance traps; linter and CI green; comments labelled blocking vs non-blocking.

How version control and review reinforce each other

  • Branch per change so each unit of work is independently reviewable.
  • Require review (a PR/MR approval) before merging into the main branch.
  • Let CI gate the merge: tests and linters must pass before a human signs off, so review time goes to judgement, not mechanics.
  • Tag reviewed, released states so the reproducible version is unambiguous.

Repository hygiene: no generated or binary artifacts

Keep compiled and generated files out of version control: build outputs, packaged artifacts, rendered documents, caches and editor droppings. They bloat history permanently, make diffs meaningless and drift out of sync with their sources - a repository free of binary artifacts is an explicit quality indicator. Add ignore rules before the first build runs; large or binary DATA has its own disciplined path (data versioning tools rather than git), and deliberately committed result records (golden files, executed notebooks) are fine when the policy says so explicitly - the rule is "nothing generated without a stated reason", not zealotry.

Working with this skill

The generated references.md beside this file lists the source material and pointers:

  • references.md - verified Learn more pointers

Learn more (verified):

Related skills

Check whether any of these applies before moving on:

  • rseng-ci-cd - CI gating merges before human review
  • rseng-citation-metadata - commit metadata feeds contributor credit
  • rseng-contributor-onboarding - review as an onboarding channel
  • rseng-data-management - DVC/git-annex for large data files
  • rseng-notebooks - jupytext twins make notebook diffs reviewable
  • rseng-publishing-releasing - tags marking published versions
  • rseng-software-peer-review - CODECHECK-style heavier review of paper code

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Rseng Version Control Review?

Covers using version control effectively for research software and the PR-time review process: choosing a VCS, branching and commit practice, authorship and signatures in commit metadata (author/committer identity, Co-authored-by trailers, signed commits and tags, .mailmap), collaboration on GitHub/GitLab, and constructive checklist-driven pull-request reviews. Use when the user asks how to set up git, design a branching strategy, write commit messages, record who authored or co-authored a change, sign commits or tags, handle large binary files, open or review a pull/merge request, or wire...

Firwat Rseng Version Control Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rseng Version Control Review besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rseng Version Control Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fdiblen/rseng-agent-skills/tree/main/skills/rseng-version-control-review an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rseng Version Control Review benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rseng Version Control Review benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rseng Version Control Review domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rseng Version Control Review gratis?

Jo. De Skill gëtt vum fdiblen ënner der Lizenz CC-BY-4.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇