Synthèse automatique
Analyse toutes les modifications de la branche courante par rapport à sa base de fusion et recommande de les garder dans une seule MR ou de les découper en MR plus petites et ciblées.
Points forts
- Examine à la fois le travail non commité et les commits existants, donc fonctionne aussi sur une branche de PoC ou de MR ouverte.
- Fournit des heuristiques de découpage concrètes (backend/frontend, migrations d'abord, refactorisations indépendantes, topologie d'abord) plutôt que des conseils génériques.
- Distingue les vraies dépendances (MR empilées) du simple regroupement de commodité et privilégie des piles peu profondes avec des MR parallèles.
- Peut appliquer le plan jusqu'à l'exécution en réinitialisant les commits et en créant des MR GitLab avec glab.
Limites
- Suppose un flux GitLab et une branche de base `master` par défaut ; les dépôts sur d'autres forges ou avec une autre branche par défaut nécessitent des ajustements.
- Le chemin d'exécution peut lancer `git reset` sur des commits existants, ce qui réécrit l'historique local et doit être utilisé avec prudence.
- La qualité du découpage dépend de la lecture du diff par l'agent ; il n'exécute pas les tests et ne vérifie pas que chaque MR proposée compile indépendamment.
À utiliser lorsqu'une branche contient un mélange de modifications, commitées ou non, et que vous voulez un plan argumenté pour la découper en MR reviewables.
Ne pas utiliser pour une modification minime à concern unique ni lorsque vous ne pouvez pas réécrire l'historique local des commits.
Analyse de sécurité
SûrThe skill operates exclusively within Git version control and GitLab MR creation workflows using declared tools. It reads diffs, logs, and statuses, and may perform git reset, branch creation, and push operations, but only after explicit user confirmation as part of a standard code review and splitting process. No destructive system commands, network exfiltration, or obfuscated payloads are present.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Analyze the full diff of my current branch against master and tell me whether it should be split into smaller MRs. If it should, give me a concrete split plan.This branch has a PoC commit and some uncommitted follow-up changes. Review everything and propose which files should go into parallel MRs versus stacked MRs.Split my current changes into a migration MR, a backend MR, and a frontend MR, then create the GitLab MRs with glab.name: split-mr description: Analyze the changes on the current branch — both uncommitted work and commits already made (e.g. a PoC or existing MR) — and reason about whether they should be split into smaller, more focused MRs. Identifies natural boundaries (backend/frontend, model/spec, feature/refactor) and proposes a split plan or confirms the changes are cohesive enough to keep as one. argument-hint: "" disable-model-invocation: false allowed-tools: Bash(git diff:), Bash(git log:), Bash(git status:), Bash(git show:), Bash(git checkout:), Bash(git branch:), Bash(git push:), Bash(glab mr create:), Bash(glab mr view:*), Read, Grep, Glob
MR Split Analysis
Establish the base the branch diverges from (usually master) with git merge-base HEAD master, then run git diff <base>...HEAD --stat and --name-only to get the full file list. This covers all changes on the branch — both uncommitted work and commits already made — so the analysis works the same whether the user has staged nothing yet or is pointing the skill at a branch that already has commits (a PoC or an open MR). Reason about whether to split from that complete picture.
When the changes are already committed and the user wants to act on a split, the existing commits can be unwound with git reset <base> (or git reset HEAD~N for the last N commits) before re-distributing files across the proposed MRs in the Execution step.
Split heuristics
-
Backend/frontend split — Ruby and Vue/JS changes that depend on a new field or endpoint: split, with the frontend MR targeting the backend branch.
-
Migration-first — Migrations that add columns/tables should land alone ahead of the code that uses them.
-
Specs travel with code — Don't split specs out unless you're refactoring shared test infrastructure.
-
Independent refactors — Unrelated cleanups or renames alongside a feature: separate them so reviewers can focus.
-
Cohesion check — If every file works toward one clearly stated goal and no file is a prerequisite for another MR, keep it as one.
-
Topology-first — Find the structural cut that lets every other MR be independent:
- Removals: delete the entry point (route, webpack page, GraphQL mount) first; downstream files become unreachable and can be deleted in parallel MRs. Default to maximally fine-grained.
- Additions: land the substrate first (feature flag off, base type, scaffolded route, empty service). Everything else becomes parallel leaf additions instead of a nested chain.
- Refactors: MR 1 introduces the new shape alongside the old; downstream MRs convert callers in parallel; final MR removes the old shape.
-
Frontend import graph — Before splitting frontend changes, trace what's imported by webpack entry points. A file may look standalone but still be imported elsewhere — deleting it alone breaks
bin/rake gitlab:assets:compile.
When NOT to split: change is already small (< ~10 files, single concern); backend and frontend changes are trivial and tightly coupled (e.g. renaming a constant end-to-end); splitting would leave a branch in a broken/non-functional state with no guard.
Stacked vs. parallel (default: parallel)
Classify each pair:
- True dependency (stack): MR B references symbols defined in MR A and won't compile against
masteralone. - Convenience bundling (parallelize): files are related but neither references the other.
- Soft dependency (parallelize, accept transient CI red): MR B's CI is red until MR A lands, but runtime is fine — merge order handles it.
Prefer the shallowest stack possible (depth 2–3 max). Linear stacks force sequential review; if any MR stalls, the whole chain stalls.
"Shallowest stack" caps stack depth — it is not a reason to minimize MR count. Sibling leaves that each depend only on a shared substrate but not on each other (e.g. a write path, a read path, an operationally independent cron worker, a cross-component capability handshake) are parallel, not stacked: giving each its own MR does not deepen the stack — it keeps every MR small. Never fold independent leaves into one MR to "stay shallow"; that just rebuilds the oversized MR you set out to split. Only bundle leaves when each is trivially small and shares a single reviewer domain. After proposing a split, re-check every MR: if one still mixes two concerns that don't reference each other, split it again.
Output format
## Split Analysis
**Verdict:** [Split into N MRs | Keep as one MR]
### Proposed MRs
1. **MR 1 — [title]** (targets: master)
Files: ...
Why first: ...
2. **MR 2 — [title]** (targets: MR 1 branch | master)
Files: ...
### Reasoning
[2–3 sentences]
Generated files
locale/gitlab.pot, doc/api/graphql/reference/_index.md, and public/-/graphql/introspection_result.json are derived from source. Each MR that changes their inputs must regenerate them in the same commit — run lefthook run autofix after edits and before each commit.
Execution (only if user confirms)
For each proposed MR, starting closest to master:
git checkout <base> && git checkout -b <branch>git checkout <original-branch> -- <files>lefthook run autofix— regenerates derived files, applies linters. Never skip with--no-verify.- Commit, push,
glab mr createtargeting the correct branch.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/mr-split-analysis-mte1lfzf/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/mr-split-analysis-mte1lfzf' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mr-split-analysis-mte1lfzf/download' --output '.skill-downloads/mr-split-analysis-mte1lfzf/SKILL.md.part' && mv '.skill-downloads/mr-split-analysis-mte1lfzf/SKILL.md.part' '.skill-downloads/mr-split-analysis-mte1lfzf/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(git diff:*), Bash(git log:*), Bash(git status:*), Bash(git show:*), Bash(git checkout:*), Bash(git branch:*), Bash(git push:*), Bash(glab mr create:*), Bash(glab mr view:*), Read, Grep, Glob
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/mr-split-analysis-mte1lfzf/SKILL.md' && test -s '.skill-downloads/mr-split-analysis-mte1lfzf/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/split-mr' && cp -R '.skill-downloads/mr-split-analysis-mte1lfzf' '.claude/skills/split-mr'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/mr-split-analysis-mte1lfzf'openskills read 'mr-split-analysis-mte1lfzf'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/mr-split-analysis-mte1lfzf/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.