Assigner un problème à l'utilisateur Git

VérifiéSûr

Assigne un problème (issue) à l'utilisateur Git actuel en mettant à jour le champ `assigned_to` et en ajoutant un commentaire de journal. Utile pour gérer les tâches dans un projet basé sur Git.

Spar Skills Guide Bot
DeveloppementDébutant
6002/06/2026
Claude CodeCursor
#issue-tracking#git#automation#project-management

Recommandé pour

Notre avis

Attribue un problème à l'utilisateur Git actuel en modifiant le fichier du problème et en ajoutant un commentaire.

Points forts

  • Automatise l'attribution des problèmes
  • Utilise l'email Git de l'utilisateur pour l'assignation
  • Journalise l'action dans le fichier du problème

Limites

  • Nécessite un format de fichier spécifique (.issues/{id}.toml)
  • Attribue uniquement à l'utilisateur configuré dans Git
  • Ne gère pas les conflits d'attribution
Quand l'utiliser

Lorsque vous souhaitez réclamer rapidement un problème dans un workflow de gestion de projet local.

Quand l'éviter

Lorsque les problèmes sont gérés en externe ou que plusieurs utilisateurs doivent collaborer sur une attribution.

Analyse de sécurité

Sûr
Score qualité90/100

The skill only uses Bash for git config and git add, and Read/Edit/Glob to modify local issue files. There are no destructive commands, network calls, or data exfiltration.

Aucun point d'attention détecté

Exemples

Assign issue 0001 to yourself
Assign issue 0001 to myself
Claim issue 42
Claim issue 42

name: issues-assign description: Assign an issue to the current git user. disable-model-invocation: true argument-hint: "[issue-id]" allowed-tools: Bash(git *), Read, Edit, Glob

Arguments

The argument is the issue ID, e.g. 0001 or 1. If the ID is not zero-padded, pad it to 4 digits (e.g. 1 becomes 0001).

Steps

  1. Parse the argument as an issue ID. Zero-pad it to 4 digits.
  2. Use the Glob tool to verify .issues/{id}.toml exists.
  3. If the file does not exist, inform the user and stop.
  4. Run git config user.email using the Bash tool to get the current user's email.
  5. Read the issue file using the Read tool.
  6. Update the assigned_to field in the TOML content to the git user's email. Use the Edit tool to replace the existing assigned_to line.
  7. Append a [[comments]] entry to the end of the issue file using the Edit tool to log the assignment. Use the current date in YYYY-MM-DD format. Format:

[[comments]]
author = "{email}"
date = "{today}"
message = "Assigned to {email}"
  1. Run git add .issues/{id}.toml using the Bash tool.
  2. Display the updated issue to the user, confirming the assignment.

Allowed tools

  • Bash(git *) - for git config and git add
  • Read - for reading the issue file
  • Write - for writing the updated issue file
  • Glob - for verifying the issue file exists
Skills similaires