본문으로 건너뛰기
cccskills
무료GitHub에 공개

speckit-git-validate

Validate current branch follows feature branch naming conventions

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adapters

무료

Skill for the Adapters area of paddock. 108 symbols across 22 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

chat

무료

Skill for the Chat area of paddock. 62 symbols across 10 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

dashboard

무료

Skill for the Dashboard area of paddock. 80 symbols across 16 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

github

무료

Skill for the Github area of paddock. 23 symbols across 5 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki, or list indexed repos. Examples: "Index this repo", "Reanalyze the codebase", "Generate a wiki"

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?", "Where does this error come from?", "Trace this bug"

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

racecraft-lab의 스킬 모두 보기

이 스킬의 문제 신고