Pular para o conteúdo
Skillpedia
Deploy e nuvem (DevOps)10 mil · #12000

speckit-git-feature

O que ela faz

Esta skill cria uma nova branch do Git para uma funcionalidade, com nome baseado em um número ou em um carimbo de data e hora. Ela é para desenvolvedores que usam Git e o método Spec Kit.

Quando usar

  • ✓Quando você começa uma nova especificação de funcionalidade e quer uma branch própria no Git.
  • ✓Quando você quer que os nomes das branches sigam um padrão numerado ou com carimbo de data e hora.
  • ✓Quando você precisa que o nome da branch seja exatamente um valor que você escolheu.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-feature/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Crie uma nova branch do Git para a minha especificação de funcionalidade, numerada em sequência como as outras deste projeto.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill verifica como as branches devem ser numeradas, cria a branch e muda para ela. Ela cuida apenas da branch, não dos arquivos da especificação.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

Ela escreve o arquivo da especificação?

Não. A skill só cria a branch. A especificação é feita em uma etapa separada.

Como as branches são numeradas?

A skill pode usar números sequenciais ou um carimbo de data e hora, de acordo com as configurações do projeto.

E se o Git não estiver instalado?

A skill avisa você e pula a criação da branch.

Detalhes

Descrição original do autor

Create a feature branch with sequential or timestamp numbering

repo: unoplatform/uno

Popularidade

Estrelas no GitHub
10 mil
Posição no ranking
#12000
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas