Règles de pull requests pour Shift

VérifiéSûr

Règles canoniques pour préparer, ouvrir et mettre à jour une pull request : titres Conventional Commits, liaison d'issue, notes de version et preuves de validation.

Spar Skills Guide Bot
DeveloppementIntermédiaire
28/11/2026
Claude Code
#pull-requests#conventional-commits#release-please#validation-evidence#github

Recommandé pour

Synthèse automatique

Définit les règles de rédaction, d’ouverture et de mise à jour des pull requests Shift, avec titres Conventional Commits, lien aux issues et preuves de validation.

Points forts

  • Cadre précis pour le titre, le corps et les sections attendues d’une pull request
  • Explique l’impact des types de commits sur Release Please et le changelog public
  • Exige des preuves de test explicites et des captures ciblées pour les changements UI
  • Rappelle les vérifications E2E desktop à effectuer avant d’ouvrir ou de mettre à jour la PR

Limites

  • Très spécifique au dépôt Shift, à GitHub et à Release Please
  • Ne traite pas la qualité de fond de la revue de code, seulement les métadonnées et les preuves
  • Les exigences de captures UI peuvent être difficiles à respecter avec des données sensibles
Quand l'utiliser

À utiliser dès qu’il faut créer, modifier, préparer ou documenter une pull request dans le dépôt Shift.

Quand l'éviter

À éviter pour un projet qui n’utilise ni GitHub, ni Release Please, ni les conventions de PR de Shift.

Analyse de sécurité

Sûr
Score qualité93/100

The skill provides process guidance for preparing and reviewing pull requests. It references ordinary git, pnpm, and GitHub workflows but contains no destructive, exfiltration, obfuscation, or safety-disabling instructions; it explicitly forbids force-pushing, merging, publishing, and including credentials without approval.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Open a linked PR
Open a pull request for this branch using the /pr rules. Find and link the related issue, use a Conventional Commit title, and include the exact validation commands I ran.
Draft a release-quality title and body
Draft the title and body for a PR that fixes document save handling. Keep the title release-quality and list both passing and failed checks honestly.
Update UI evidence
Update this PR description with screenshots for the new empty, loading, error, and disabled states, and note any state that could not be captured safely.

name: pr description: Canonical rules for preparing, opening, and updating Shift pull requests. Use whenever the user asks to create, open, draft, update, or review a pull request. Enforces issue discovery and linkage, Conventional Commit titles, release-note quality, complete validation evidence, and safe pushing.

/pr — How Shift pull requests are written

A pull request is one reviewable product or engineering change. Its title must make sense in history and as potential Release Please input.

Title syntax

Every pull request title uses Conventional Commits:

<type>[optional scope][optional !]: <concise imperative description>

Use the same types and subject rules as /commit. Examples:

feat: add source conversion preview
fix(document): preserve the last valid save
ci: publish signed Alpha artifacts

The title must:

  • be at most 72 characters;
  • use lowercase imperative wording after the colon;
  • describe the user or system outcome, not the list of files changed;
  • omit trailing punctuation, emoji, agent labels, and [codex] prefixes.

CI rejects titles that are not Conventional Commits. GitHub may also use the pull request title as a squash commit subject, so treat it as release-quality history.

Release Please behavior

Release Please reads conventional commits merged to main and maintains a draft release pull request.

  • feat, fix, and perf become public changelog entries.
  • refactor, test, docs, build, ci, style, and chore remain valid but are hidden from public release notes.
  • Ordinary pull requests must not bump the product version or edit generated changelog sections.
  • Maturity and milestone changes require explicit user approval and a Release-As: footer.
  • The generated chore: release Shift … pull request is special: review its version, changelog, warning text, and artifact readiness before merging it.

Pull request body

Use a concise body with evidence:

## Summary

- what changed and why
- important behavioral or architectural boundary

## Issue

Closes #123

## Testing

- `exact command`
- focused manual verification

Add ## Risks or ## Follow-up only when they materially help review. Do not add empty sections, generic claims such as “tests pass,” generated marketing prose, or agent attribution.

Testing entries must distinguish:

  • commands that passed;
  • checks that failed and why;
  • checks not run;
  • focused manual verification where an automated test would be low value.

For release changes, state whether packaging was smoke-tested and which hosted platform/signing checks remain.

UI review evidence

For materially visible UI changes, attach screenshots or recordings before marking the pull request ready for review.

  • Cover every distinct state needed to review the change, including native dialogs and fallback, error, empty, loading, or disabled states when affected.
  • Capture the actual implementation. Include before-and-after evidence when the change intentionally modifies existing appearance or interaction.
  • Prefer GitHub user attachments over committing review-only media to the repository.
  • Redact private user data, credentials, and sensitive documents before uploading.
  • If useful evidence cannot be captured safely or reliably, state why in the pull request rather than silently omitting it.

Do not add ceremonial screenshots for changes with no visible review surface.

Desktop E2E impact

For changes that can affect desktop user flows or rendering, complete the E2E impact check in apps/desktop/e2e/README.md before opening or updating the pull request.

  • Search existing specs by affected surface, command, or workflow even when the branch does not change E2E files.
  • Run the smallest relevant Playwright project, file, and title filter. Run the complete affected project for broad or shared-fixture changes.
  • Update visual snapshots only for intentional appearance changes, inspect every changed image, and rerun without update mode.
  • List exact E2E commands in ## Testing; explicitly identify relevant E2E coverage not run and why.

Issue linkage

Every ordinary pull request includes ## Issue. Search open and recently closed issues before opening or updating the pull request, and reference every issue materially addressed by the change.

  • Use Closes #123 only when the pull request fully satisfies that issue's acceptance criteria. Merging to the default branch then closes the issue.
  • Use Refs #123 for partial work, prerequisites, investigation, or related context. The issue remains open.
  • If substantial feature, bug, regression, or roadmap work has no adequate issue, invoke /issue and create one before opening the pull request.
  • For small maintenance, documentation, dependency, or mechanical work with no issue, write No issue — <brief reason> rather than creating a ceremonial issue.
  • Generated Release Please and dependency-bot pull requests are exempt from the issue section.

Never use a closing keyword merely because an issue is related. If any accepted outcome remains, use Refs.

One pull request per end state

Review a change once, as it will stay. When work toward one goal takes several steps, such as a new module, then wiring it in, then deleting what it replaces, put the steps in one pull request rather than a stack of pull requests that each depend on the last.

  • Open it as a draft once the first step lands, and keep pushing commits to it until the end state is reached. List what remains in its body as a checklist, then mark it ready.
  • Order the commits so the change still reads step by step: each commit builds and passes its tests, and later commits do not rewrite earlier ones without reason.
  • Split out anything that stands on its own: a bug fix found along the way, a safety fix, a performance change that helps today. Each gets its own pull request against the default branch, and the long-running branch merges it in rather than waiting for it.
  • Stop the pull request at a state worth reviewing as a whole, such as a feature working with its old path deleted. A later phase with a different end state, such as moving authority or adding a new capability, is its own pull request.
  • When a stack already exists, fold it: merge the default branch into its tip, open one draft from there, and close the stacked pull requests with a comment pointing at it.

Preparation process

  1. Read git status, staged and unstaged diffs, the branch commits, and the complete diff against main.
  2. Confirm the branch contains only the requested change. Do not absorb unrelated dirty files.
  3. Search open and recently closed issues; decide whether the pull request closes, references, or does not require an issue.
  4. For substantial untracked work, invoke /issue before opening the pull request.
  5. Use /commit to create any required logical commits.
  6. Rebase or merge the current main only when needed. Do not rewrite a published branch without explicit approval.
  7. Run focused validation and the repository checks required by the affected subsystem, and the scanners over the branch (pnpm scan:ts --since origin/main, pnpm scan:rust --since origin/main; see /add-lint's "Running the scanners on a branch"). Fix each finding the branch introduced or say in the body why it stays.
  8. Re-read the final diff and summarize observable behavior, not implementation trivia.
  9. Choose a Conventional Commit title that matches the dominant change.
  10. Push the named branch without force unless explicitly approved.
  11. Create the pull request with an explicit base and head, preferably using a body file to preserve formatting.
  12. Verify the rendered issue keyword and all body formatting on GitHub.
  13. Return the pull request URL, title, issue relationship, commit list, and validation status.

A request to create or update a pull request authorizes the ordinary push needed for that request. It never authorizes force-pushing, changing repository settings, merging the pull request, or publishing a release.

Review process

When reviewing a pull request:

  • inspect the diff and tests rather than trusting the body;
  • verify the title matches Conventional Commits and the actual dominant change;
  • identify user-visible feat, fix, and perf wording that would be confusing in release notes;
  • verify the issue section exists, every linked issue is relevant, and Closes is used only for complete resolution;
  • check that version and generated changelog edits appear only in a Release Please pull request;
  • distinguish blocking correctness issues from optional improvements;
  • verify claims against repository behavior and report exact paths and lines.

Hard rules

  • Never open an ordinary pull request without searching for relevant issues and including an issue section.
  • Never stack pull requests that each depend on the last for one goal; grow one draft to its end state and split out only what stands on its own.
  • Never open a pull request from a branch with uncommitted intended changes.
  • Never include credentials, signing material, .env files, or tokens.
  • Pull request titles, bodies, comments, commits, and release-note wording must describe the change and its validation, not the process used to produce it. Never include incidental execution metadata such as agent identity, handoff mechanics, remote hosts, machine names, tmux sessions, worktree paths, or “finishing work off.” Mention such infrastructure only when it is itself the subject of the change. Platform names are allowed only when materially relevant to behavior or testing evidence.
  • Never force-push, merge, enable auto-merge, or publish a release unless the user explicitly asks.
  • Never fabricate issue links, test results, screenshots, reviewers, or release-note claims.
  • Never hide a failed or skipped check from the pull request body.

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 annexes

Ce 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.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/shift-pull-request-rules-mwzwsf1j/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/shift-pull-request-rules-mwzwsf1j' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/shift-pull-request-rules-mwzwsf1j/download' --output '.skill-downloads/shift-pull-request-rules-mwzwsf1j/SKILL.md.part' && mv '.skill-downloads/shift-pull-request-rules-mwzwsf1j/SKILL.md.part' '.skill-downloads/shift-pull-request-rules-mwzwsf1j/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.

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/shift-pull-request-rules-mwzwsf1j/SKILL.md' && test -s '.skill-downloads/shift-pull-request-rules-mwzwsf1j/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/shift-pull-request-rules-mwzwsf1j' '.claude/skills/pr'

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’OpenSkills
openskills install './.skill-downloads/shift-pull-request-rules-mwzwsf1j'

openskills read 'shift-pull-request-rules-mwzwsf1j'

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 sync

Mode 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/shift-pull-request-rules-mwzwsf1j/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.

Skills similaires