create-branch
यह क्या करती है
आपके code project में एक नई 'branch' बनाता है ताकि आपका काम व्यवस्थित रहे। यह आप जो काम कर रहे हैं उसके आधार पर और naming conventions के अनुसार एक नाम सुझाता है।
कब इस्तेमाल करें
- ✓जब आप किसी नए feature पर काम शुरू करना चाहते हैं।
- ✓जब आपको कोई bug ठीक करना हो और उस fix को अलग रखना हो।
- ✓जब आप नया काम शुरू कर रहे हों और branch का नाम तय नहीं कर पा रहे हों।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/create-branch/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं conversations page में एक search bar जोड़ने के लिए branch बनाना चाहता हूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI पहले आपका username पता करने की कोशिश करता है। फिर देखता है कि code में आपने क्या बदला है, या पूछता है कि आप किस पर काम करने वाले हैं। उसके आधार पर वह एक खास pattern के अनुसार branch का नाम सुझाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Create Branch
Create a git branch with the correct type prefix and a descriptive name following Sentry conventions.
When to Use
- You need to create a new git branch that follows the repository's naming convention.
- You are starting a new piece of work from the default branch and need help classifying it as
feat,fix,docs, or another branch type. - You want the branch name proposed from either the task description or the current local diff.
Step 1: Get the Username Prefix
Run gh api user --jq .login to get the GitHub username.
If the command fails (e.g. not authenticated), ask the user for their preferred prefix.
Step 2: Determine the Branch Description
If $ARGUMENTS is provided, use it as the description of the work.
If no arguments, check for local changes:
git diff
git diff --cached
git status --short
- Changes exist: read the diff content to understand what the work is about and generate a description.
- No changes: ask the user what they are about to work on.
Step 3: Classify the Type
Pick the type from this table based on the description:
| Type | Use when |
|---|---|
feat |
New user-facing functionality |
fix |
Broken behavior now works |
ref |
Same behavior, different structure |
chore |
Deps, config, version bumps, updating existing tooling — no new logic |
perf |
Same behavior, faster |
style |
CSS, formatting, visual-only |
docs |
Documentation only |
test |
Tests only |
ci |
CI/CD config |
build |
Build system |
meta |
Repo metadata changes |
license |
License changes |
When unsure: feat for new things (including new scripts, skills, or tools), ref for restructuring existing things, chore only when updating/maintaining something that already exists.
Step 4: Generate and Propose
Build the branch name as <username>/<type>/<short-description>.
Rules for <short-description>:
- Kebab-case, lowercase
- 3 to 6 words, concise but clear
- Describe the change, not file names
- Only use ASCII letters, digits, and hyphens — no spaces, dots, colons, tildes, or other git-forbidden characters
Present it to the user and ask if they want to use it, modify it, or change the type.
Examples
| Work description | Branch name |
|---|---|
| Dropdown menu not closing on outside click | priscila/fix/dropdown-not-closing-on-blur |
| Adding search to conversations page | priscila/feat/add-search-to-conversations |
| Restructuring drawer components | priscila/ref/simplify-drawer-components |
| Updating test fixtures | priscila/chore/update-test-fixtures |
| Bumping @sentry/react to latest version | priscila/chore/bump-sentry-react |
| Adding a new agent skill | priscila/feat/add-create-branch-skill |
Step 5: Create the Branch
Once confirmed, detect the current and default branch:
git branch --show-current
git remote | grep -qx origin && echo origin || git remote | head -1
git symbolic-ref refs/remotes/<remote>/HEAD 2>/dev/null | sed 's|refs/remotes/<remote>/||' | tr -d '[:space:]'
If symbolic-ref fails, fall back to git branch --list main master: use the one that exists; if both or neither exist, ask the user.
If git branch --show-current is empty (detached HEAD), show the current commit (git rev-parse --short HEAD) and ask whether to branch from it or switch to the default branch first.
…
अक्सर पूछे जाने वाले सवाल
code 'branch' क्या है?
branch को अपने project की अलग copy समझिए जहाँ आप मुख्य version को प्रभावित किए बिना बदलाव कर सकते हैं। नए features पर काम करने या प्रयोग करने के लिए यह बहुत अच्छा है।
branch का नाम क्यों महत्वपूर्ण है?
अच्छा नाम जल्दी बता देता है कि branch किस काम के लिए है, जिससे दूसरों के साथ मिलकर काम करना और project को व्यवस्थित रखना आसान होता है।
'feat' या 'fix' जैसे प्रकार क्या हैं?
ये labels हैं जो branch का मकसद बताते हैं: 'feat' नए features के लिए, 'fix' bug fixes के लिए, 'docs' documentation के लिए, आदि। इससे काम व्यवस्थित रहता है।
जानकारी
लेखक का मूल विवरण
Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4278
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।