speckit-git-feature
Skill này làm gì
Skill này tạo một nhánh Git mới cho tính năng, đặt tên bằng số hoặc dấu thời gian. Skill dành cho developer dùng Git và phương pháp Spec Kit.
Khi nào nên dùng
- ✓Khi bạn bắt đầu một bản đặc tả tính năng mới và muốn có nhánh Git riêng cho nó.
- ✓Khi bạn muốn tên nhánh theo một mẫu có số thứ tự hoặc dấu thời gian.
- ✓Khi bạn cần đặt tên nhánh đúng theo một giá trị bạn chọn.
Liên kết skill
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-feature/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy tạo một nhánh Git mới cho bản đặc tả tính năng của tôi, đánh số theo thứ tự như các nhánh khác trong dự án này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra cách đánh số nhánh, tạo nhánh và chuyển sang đó. Skill chỉ xử lý nhánh, không xử lý các file đặc tả.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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--timestampflags are ignoredFEATURE_NUMis 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:
- Check
.specify/extensions/git/git-config.ymlforbranch_numberingvalue - Check
.specify/init-options.jsonforbranch_numberingvalue (backward compatibility) - Default to
sequentialif 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 (
--jsonfor Bash,-Jsonfor PowerShell) so the output can be parsed reliably - You must only ever run this script once per feature
- The JSON output will contain
BRANCH_NAMEandFEATURE_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_NAMEandFEATURE_NUMso the caller can reference them
Output
The script outputs JSON with:
BRANCH_NAME: The branch name (e.g.,003-user-author20260319-143022-user-auth)FEATURE_NUM: The numeric or timestamp prefix used
Câu hỏi thường gặp
Skill có viết file đặc tả không?
Không. Skill chỉ tạo nhánh. Đặc tả được tạo ở một bước riêng biệt.
Nhánh được đánh số thế nào?
Skill có thể dùng số thứ tự hoặc dấu thời gian, tùy theo cài đặt của dự án.
Nếu chưa cài Git thì sao?
Skill sẽ cảnh báo và bỏ qua bước tạo nhánh.
Chi tiết
Mô tả gốc của tác giả
Create a feature branch with sequential or timestamp numbering
repo: unoplatform/uno
Độ phổ biến
- Sao GitHub
- 10k
- Vị trí xếp hạng
- #12000
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
speckit-analyze
10kKiểm tra spec tính năng, kế hoạch và danh sách tác vụ có khớp với nhau không và chỉ ra các chỗ thiếu, mà không thay đổi file nào.
speckit-checklist
10kGiúp agent của bạn tạo checklist kiểm tra xem yêu cầu của một tính năng có rõ ràng, đầy đủ và nhất quán trước khi bắt đầu làm.
speckit-clarify
10kGiúp agent của bạn tìm các phần chưa rõ trong bản đặc tả tính năng, hỏi tối đa năm câu hỏi trọng tâm và ghi câu trả lời vào đặc tả.
speckit-constitution
10kGiúp agent của bạn viết hoặc cập nhật hiến pháp dự án, gồm các nguyên tắc định hướng ngắn, và giữ các mẫu kế hoạch liên quan nhất quán.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.