본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)10k · #12003

speckit-git-validate

하는 일

이 스킬은 현재 Git 브랜치 이름이 프로젝트가 쓰는 번호 규칙을 따르는지 확인합니다. Spec Kit 방식과 기능 브랜치를 쓰는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓변경을 하기 전에 올바른 기능 브랜치에서 작업하는지 확인하고 싶을 때.
  • ✓브랜치 이름이 프로젝트의 기능 명명 패턴처럼 보이지 않을 때.
  • ✓브랜치에 맞는 명세 폴더가 있는지 확인하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-validate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“현재 Git 브랜치가 우리 기능 명명 규칙을 따르는지, 그리고 명세 폴더가 있는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 현재 브랜치 이름을 읽고 두 가지 허용 패턴과 비교합니다. 그다음 같은 번호나 타임스탬프를 가진 명세 폴더를 찾습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Validate Feature Branch

Validate that the current Git branch follows the expected feature branch naming conventions.

Prerequisites

  • Check if Git is available by running git rev-parse --is-inside-work-tree 2>/dev/null
  • If Git is not available, output a warning and skip validation:
    [specify] Warning: Git repository not detected; skipped branch validation
    

Validation Rules

Get the current branch name:

git rev-parse --abbrev-ref HEAD

The branch name must match one of these patterns:

  1. Sequential: ^[0-9]{3,}- (e.g., 001-feature-name, 042-fix-bug, 1000-big-feature)
  2. Timestamp: ^[0-9]{8}-[0-9]{6}- (e.g., 20260319-143022-feature-name)

Execution

If on a feature branch (matches either pattern):

  • Output: ✓ On feature branch: <branch-name>
  • Check if the corresponding spec directory exists under specs/:
    • For sequential branches, look for specs/<prefix>-* where prefix matches the numeric portion
    • For timestamp branches, look for specs/<prefix>-* where prefix matches the YYYYMMDD-HHMMSS portion
  • If spec directory exists: ✓ Spec directory found: <path>
  • If spec directory missing: ⚠ No spec directory found for prefix <prefix>

If NOT on a feature branch:

  • Output: ✗ Not on a feature branch. Current branch: <branch-name>
  • Output: Feature branches should be named like: 001-feature-name or 20260319-143022-feature-name

Graceful Degradation

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

  • Check the SPECIFY_FEATURE environment variable as a fallback
  • If set, validate that value against the naming patterns
  • If not set, skip validation with a warning
자주 묻는 질문

어떤 명명 패턴이 허용되나요?

브랜치는 세 자리 이상의 숫자로 시작하거나, 날짜와 시간 스탬프로 시작할 수 있습니다.

기능 브랜치가 아니면 어떻게 되나요?

스킬이 그 사실을 알려 주고, 사용할 수 있는 예시 이름을 보여 줍니다.

명세 폴더가 없으면요?

일치하는 명세 폴더를 찾지 못했다고 경고합니다.

상세 정보

작성자의 원본 설명

Validate current branch follows feature branch naming conventions

repo: unoplatform/uno

인기도

GitHub 스타
10k
순위
#12003
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬