Create a new Git Flow feature branch from develop with proper naming and tracking
npx claude-code-templates@latest --skill β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’Unlock this skill to run and inspect the interactive installation sequence.
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: - β
Valid: user-authentication, payment-integration, dashboard-redesign
- β Invalid: feat1, My_Feature, empty name
- If changes exist, warn user and ask to commit/stash first
- OR offer to stash changes automatically
develop 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/flow-status - Check current Git Flow status/release <version> - Create release branch from develop/hotfix <name> - Create hotfix branch from mainDO:
DON'T:
# Step 1: Initialize skill agent setup
npx skills add Feature --install-production
python -m pip install -r requirements.txt
codex plugin install Feature@latest
export API_KEY=secret_token_key_here
Unlock this skill to reveal complete step-by-step setup guides, terminal commands, configuration recipes, repository links, and interactive installation video walkthroughs.
Get instant access to complete setup guides, repository source code, and integration assets.
Generate a complete test file for a specified source file or component. Use when the user explicitly asks to write, create, or generate tests for a specific file.
Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and delivers confidence-calibrated recommendations
Generate comprehensive architecture documentation with diagrams, ADRs, and interactive visualization