Création de PR avec Linear

VérifiéSûr

Crée une pull request GitHub vers develop avec un titre standardisé et une description liée au ticket Linear correspondant.

Spar Skills Guide Bot
DeveloppementIntermédiaire
0023/07/2026
Claude Code
#github#pull-request#linear#branch-naming#git-workflow

Recommandé pour

Notre avis

Crée une pull request GitHub destinée à la branche develop, avec un titre normalisé et une description liée au ticket Linear correspondant.

Points forts

  • Automatise la création de PR avec un format standardisé
  • Intègre directement les informations du ticket Linear
  • Inclut une validation de la convention de nommage de branche
  • Génère un corps de PR avec sections structurées

Limites

  • Nécessite que les modifications soient déjà commitées
  • Dépend du respect de la convention de nommage de branche
  • Requiert l'accès au serveur MCP Linear et à l'outil GitHub CLI
Quand l'utiliser

Utilisez cette compétence lorsque vous avez terminé vos modifications sur une branche conforme et souhaitez créer une pull request propre avec un lien vers un ticket Linear.

Quand l'éviter

Évitez cette compétence si la branche ne suit pas la convention attendue, si les commits ne sont pas encore en place, ou si vous n'avez pas besoin d'intégrer Linear.

Analyse de sécurité

Sûr
Score qualité95/100

The skill only uses standard git and gh commands to push a branch and create a PR. No destructive or exfiltrating actions. Safe.

Aucun point d'attention détecté

Exemples

Create PR from current branch
/pr
Initiate PR creation manually
Create a pull request for my current branch with a title and description linking to the Linear issue.
PR with specific Linear issue
Create a PR for branch leramirezca/les-42-fix-auth targeting develop, using Linear issue LES-42.

name: pr description: >- Creates a GitHub Pull Request targeting develop, with a standardized title and description linked to the corresponding Linear issue.

Prerequisites

  • Changes must be committed on the current branch (use /commit if not).
  • The branch must follow the convention leramirezca/les-{N}-{slug} (use /branch if not).

Step 1 — Gather context

Run in parallel:

  • git log develop..HEAD --oneline to see the PR commits
  • git diff develop...HEAD --stat to see changed files
  • mcp__linear-server__get_issue with the issue ID (extracted from branch name: les-{N}LES-{N})

Step 2 — PR title

Format: type(scope): short description — LES-{N}

Valid types:

  • fix — bug fix
  • feat — new feature
  • security — security improvement
  • perf — performance
  • refactor — refactoring without behavior change
  • chore — maintenance (deps, config, etc.)
  • docs — documentation
  • ui — interface or style changes
  • db — schema or migration changes

The scope is the code area: auth, api, ui, journal, billing, i18n, db, etc.

Example: security(auth): increase minimum password length to 8 — LES-121

Max 72 characters.

Step 3 — PR body

## What changes?

{1-3 concise bullets describing the changes}

## Modified files

{List key files with a one-line description each}

## Acceptance criteria

{Copy acceptance criteria from the Linear issue if present,
or draft them from the issue description}

## Linear

Closes LES-{N}

Step 4 — Create the PR

git push -u origin {current-branch}
gh pr create \
  --base develop \
  --title "{title}" \
  --body "$(cat <<'EOF'
{full body}
EOF
)"

Return the PR URL to the user.

Skills similaires