Help us improve
Share bugs, ideas, or general feedback.
From git
Creates Git Flow feature branch feature/<feature-name> from develop: validates repo and name, handles uncommitted changes, pulls latest develop, sets remote tracking, pushes to origin.
npx claudepluginhub huangdijia/oh-my-claude-code-plugins --plugin gitHow this command is triggered — by the user, by Claude, or both
Slash command
/git:feature <feature-name>This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Git Flow Feature Branch Create new feature branch: **$ARGUMENTS** ## Current Repository State - Current branch: !`git branch --show-current` - Git status: !`git status --porcelain` - Develop branch status: !`git log develop..origin/develop --oneline 2>/dev/null | head -5 || echo "No remote tracking for develop"` ## Task Create a Git Flow feature branch following these steps: ### 1. Pre-Flight Validation - **Check git repository**: Verify we're in a valid git repository - **Validate feature name**: Ensure `$ARGUMENTS` is provided and follows naming conventions: - ✅ Valid: `user-au...
/SKILLStarts a new git-flow feature branch named feature/<feature-name> after verifying clean working tree, then pushes it to origin.
/flow-startStarts a new feature, bugfix, or hotfix git-flow branch from clean up-to-date base, pushes with tracking, links GitHub issues if referenced, and shows branch info plus next steps.
/create-branchCreates a new feature branch with optimized short naming and auto-incrementing numbers, from a description or auto-generated from uncommitted changes.
/feature-flowOrchestrates complete git workflow: analyzes staged changes or issue number, creates branches/issues/commits, runs lints/tests, creates merge requests.
/newbCreates a new git branch from the latest origin/main, stashing and restoring uncommitted changes. Also supports cherry-picking commits from the previous branch.
/git-checkoutCreates and checks out a new feature branch 'feat/[issue-key]' from the default branch after pulling latest changes, and updates the working branch in the state management file.
Share bugs, ideas, or general feedback.
Create new feature branch: $ARGUMENTS
git branch --show-currentgit status --porcelaingit log develop..origin/develop --oneline 2>/dev/null | head -5 || echo "No remote tracking for develop"Create a Git Flow feature branch following these steps:
$ARGUMENTS is provided and follows naming conventions:
user-authentication, payment-integration, dashboard-redesignfeat1, My_Feature, empty namedevelop branch is presentExecute the following workflow:
# Switch to develop branch
git checkout develop
# Pull latest changes from remote
git pull origin develop
# Create feature branch with Git Flow naming convention
git checkout -b feature/$ARGUMENTS
# Set up remote tracking
git push -u origin feature/$ARGUMENTS
After successful creation, display:
✓ Switched to develop branch
✓ Pulled latest changes from origin/develop
✓ Created branch: feature/$ARGUMENTS
✓ Set up remote tracking: origin/feature/$ARGUMENTS
✓ Pushed branch to remote
🌿 Feature Branch Ready
Branch: feature/$ARGUMENTS
Base: develop
Status: Clean working directory
🎯 Next Steps:
1. Start implementing your feature
2. Make commits using conventional format:
git commit -m "feat: your changes"
3. Push changes regularly: git push
4. When complete, use /finish to merge back to develop
💡 Git Flow Tips:
- Keep commits atomic and well-described
- Push frequently to avoid conflicts
- Use conventional commit format (feat:, fix:, etc.)
- Test thoroughly before finishing
Handle these scenarios gracefully:
Uncommitted Changes:
⚠️ You have uncommitted changes:
M src/file1.js
M src/file2.js
Options:
1. Commit changes first
2. Stash changes: git stash
3. Discard changes: git checkout .
What would you like to do? [1/2/3]
Feature Name Not Provided:
❌ Feature name is required
Usage: /feature <feature-name>
Examples:
/feature user-profile-page
/feature api-v2-integration
/feature payment-gateway
Feature names should:
- Be descriptive and concise
- Use kebab-case (lowercase-with-hyphens)
- Describe what the feature does
Branch Already Exists:
❌ Branch feature/$ARGUMENTS already exists
Existing feature branches:
feature/user-authentication
feature/payment-gateway
feature/$ARGUMENTS ← This one
Options:
1. Switch to existing branch: git checkout feature/$ARGUMENTS
2. Use a different feature name
3. Delete existing and recreate (destructive!)
Develop Behind Remote:
⚠️ Local develop is behind origin/develop by 5 commits
✓ Pulling latest changes...
✓ Develop is now up to date
✓ Ready to create feature branch
No Develop Branch:
❌ Develop branch not found
Git Flow requires a 'develop' branch. Create it with:
git checkout -b develop
git push -u origin develop
Or initialize Git Flow:
git flow init
This command is part of the Git Flow branching strategy:
Feature branches:
developdevelopfeature/<descriptive-name>This command respects:
GIT_FLOW_DEVELOP_BRANCH: Develop branch name (default: "develop")GIT_FLOW_PREFIX_FEATURE: Feature prefix (default: "feature/")/finish - Complete and merge feature branch to develop/git-flow:status - Check current Git Flow status/release <version> - Create release branch from develop/hotfix <name> - Create hotfix branch from mainDO:
DON'T: