Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)10k · #12000

speckit-git-feature

Ce qu’il fait

Ce skill crée une nouvelle branche Git pour une fonctionnalité, nommée avec un numéro ou un horodatage. Il s'adresse aux développeurs qui utilisent Git et la méthode Spec Kit.

Quand l’utiliser

  • ✓Quand vous commencez une nouvelle spécification de fonctionnalité et voulez sa propre branche Git.
  • ✓Quand vous voulez que les noms de branches suivent un schéma numéroté ou horodaté.
  • ✓Quand vous avez besoin qu'un nom de branche soit exactement celui que vous choisissez.

Lien du skill

https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-feature/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-feature/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Crée une nouvelle branche Git pour ma spécification de fonctionnalité, numérotée dans l'ordre comme les autres de ce projet.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill vérifie comment les branches doivent être numérotées, crée la branche et s'y place. Il ne s'occupe que de la branche, et non des fichiers de spécification.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Create Feature Branch

Create and switch to a new git feature branch for the given specification. This command handles branch creation only — the spec directory and files are created by the core /speckit.specify workflow.

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Environment Variable Override

If the user explicitly provided GIT_BRANCH_NAME (e.g., via environment variable, argument, or in their request), pass it through to the script by setting the GIT_BRANCH_NAME environment variable before invoking the script. When GIT_BRANCH_NAME is set:

  • The script uses the exact value as the branch name, bypassing all prefix/suffix generation
  • --short-name, --number, and --timestamp flags are ignored
  • FEATURE_NUM is extracted from the name if it starts with a numeric prefix, otherwise set to the full branch name

Prerequisites

  • Verify Git is available by running git rev-parse --is-inside-work-tree 2>/dev/null
  • If Git is not available, warn the user and skip branch creation

Branch Numbering Mode

Determine the branch numbering strategy by checking configuration in this order:

  1. Check .specify/extensions/git/git-config.yml for branch_numbering value
  2. Check .specify/init-options.json for branch_numbering value (backward compatibility)
  3. Default to sequential if neither exists

Execution

Generate a concise short name (2-4 words) for the branch:

  • Analyze the feature description and extract the most meaningful keywords
  • Use action-noun format when possible (e.g., "add-user-auth", "fix-payment-bug")
  • Preserve technical terms and acronyms (OAuth2, API, JWT, etc.)

Run the appropriate script based on your platform:

  • Bash: .specify/extensions/git/scripts/bash/create-new-feature.sh --json --short-name "<short-name>" "<feature description>"
  • Bash (timestamp): .specify/extensions/git/scripts/bash/create-new-feature.sh --json --timestamp --short-name "<short-name>" "<feature description>"
  • PowerShell: .specify/extensions/git/scripts/powershell/create-new-feature.ps1 -Json -ShortName "<short-name>" "<feature description>"
  • PowerShell (timestamp): .specify/extensions/git/scripts/powershell/create-new-feature.ps1 -Json -Timestamp -ShortName "<short-name>" "<feature description>"

IMPORTANT:

  • Do NOT pass --number — the script determines the correct next number automatically
  • Always include the JSON flag (--json for Bash, -Json for PowerShell) so the output can be parsed reliably
  • You must only ever run this script once per feature
  • The JSON output will contain BRANCH_NAME and FEATURE_NUM

Graceful Degradation

If Git is not installed or the current directory is not a Git repository:

  • Branch creation is skipped with a warning: [specify] Warning: Git repository not detected; skipped branch creation
  • The script still outputs BRANCH_NAME and FEATURE_NUM so the caller can reference them

Output

The script outputs JSON with:

  • BRANCH_NAME: The branch name (e.g., 003-user-auth or 20260319-143022-user-auth)
  • FEATURE_NUM: The numeric or timestamp prefix used
Questions fréquentes

Écrit-il le fichier de spécification ?

Non. Le skill crée seulement la branche. La spécification est produite par une étape distincte.

Comment les branches sont-elles numérotées ?

Le skill peut utiliser des numéros séquentiels ou un horodatage, selon les réglages du projet.

Que se passe-t-il si Git n'est pas installé ?

Le skill vous en avertit et ignore la création de la branche.

Détails

Description originale de l’auteur

Create a feature branch with sequential or timestamp numbering

repo: unoplatform/uno

Popularité

Étoiles GitHub
10k
Position au classement
#12000
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires