Create and setup a new feature branch for development
Creates and configures a new feature branch with issue context and environment setup.
/plugin marketplace add sharpner/claude-agents/plugin install workflow-core@sharpner-claude-agents<branch-name> [issue-number]You are setting up a new feature branch.
BRANCH NAME: $1 ISSUE NUMBER (optional): $2
# Load relevant context
mcp__graphiti__get_context(
query="[keywords from branch name]",
group_ids=["project_<projectname>", "global_"]
)
ISSUE=$2
if [ -n "$ISSUE" ]; then
gh issue view $ISSUE --json title,body,labels
fi
# Ensure main is up to date
git fetch origin main
# Create and checkout branch
git checkout -b $1 origin/main
# Install dependencies
npm install # or: go mod download
# Run initial tests
npm test # or: go test ./...
# Only if files were created
git add .
git commit -m "feat: Initialize $1"
Remember:
## Branch Created
### Branch: $1
### Based on: origin/main
### Issue Context (if applicable)
- Issue: #$2
- Title: {title}
### Files Initialized
- {list of created files}
### Next Steps
1. Implement feature
2. Run tests: `npm test`
3. Create PR: `/pre-pr` then `gh pr create`
### Cleanup Command (after merge)
```bash
git checkout main
git pull
git branch -d $1