ensure-feature-branch
CommunityAlways work on a feature or bug branch.
Authorhutchic
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents direct commits or pushes to mainline or release branches by ensuring you are always on a feature or bug branch. If the current branch is a mainline (main, master, dev) or a release branch (release/*), it creates and checks out a new branch.
Core Features & Use Cases
- Detects mainline and release branches (main, master, dev, release/*) and considers them non-feature branches.
- Creates a new feature or bug branch with a descriptive name and checks it out, ensuring subsequent work lands on the correct branch.
- Suitable for workflows, pre-commit hooks, or manual requests to guard against accidental commits to mainline or release branches.
Quick Start
Create and checkout a new feature or bug branch when you are on a mainline or release branch, deriving a short, descriptive branch name and switching to it.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ensure-feature-branch Download link: https://github.com/hutchic/.cursor/archive/main.zip#ensure-feature-branch Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.