Skip to main content
ClaudeWave
Skill7.4k estrellas del repoactualizado 3d ago

new-branch

The new-branch skill automates branch creation within EverOS's GitFlow Lite model, determining whether to cut feature, fix, or hotfix branches from the appropriate parent (dev or master), pulling latest changes, and establishing properly named branches in kebab-case format. Use this when starting new development work to ensure branches follow the project's structured workflow and integrate correctly through pull requests.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/EverMind-AI/EverOS /tmp/new-branch && cp -r /tmp/new-branch/.claude/skills/new-branch ~/.claude/skills/new-branch
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# /new-branch

Cut a new branch under the GitFlow Lite model.

## Branch model

```
master  = released / stable (tagged on release; protected)
dev     = integration branch (protected)
feat/*  = cut from dev  → PR → merge into dev
fix/*   = cut from dev  → PR → merge into dev
hotfix/* = cut from master → merge into master AND synced into dev (double merge)
release  = dev → master + tag on master (no separate release branch)
```

## Steps

1. Ask (or infer) the change type: `feat`, `fix`, or `hotfix`.
2. Pick the parent:
   - `feat/*`, `fix/*` → branch from **`dev`**.
   - `hotfix/*` → branch from **`master`**.
3. Update the parent first:
   ```bash
   git checkout <parent>
   git pull --ff-only
   ```
4. Create the branch with a kebab-case slug:
   ```bash
   git checkout -b feat/<short-slug>
   ```
5. For a `hotfix`, remember it must later merge into **both** `master` and `dev`.

## Naming

- `feat/add-agentic-rerank`, `fix/empty-profile-crash`, `hotfix/lancedb-conn-leak`.
- Lowercase, hyphen-separated, no spaces, concise.

Never commit directly to `master` or `dev` — always via a branch + PR.