# Branches

> Branches is an Agent Skill for development published in the redis/RedisInsight repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Create and name git branches following project conventions. Use when creating branches, checking out new branches, or the user mentions branch naming.

- Skill name: `branches`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/redis/RedisInsight/blob/HEAD/.ai/skills/branches/SKILL.md
- Repository: redis/RedisInsight (8,618 GitHub stars when collected)

## SKILL.md

# Branch Naming Conventions

Use lowercase kebab-case with type prefix and issue/ticket identifier.

```bash
# Pattern: <type>/<issue-ref>/<short-title>

# INTERNAL (JIRA - RI-XXX)
feature/RI-123/add-user-profile
bugfix/RI-789/memory-leak
fe/feature/RI-567/add-dark-mode
be/bugfix/RI-345/fix-redis-connection
docs/RI-333/update-docs
test/RI-444/add-unit-tests
e2e/RI-555/add-integration-tests

# OPEN SOURCE (GitHub - XXX)
feature/123/add-export-feature
bugfix/789/fix-connection-timeout

# Special branches
release/v2.0.0
ric/RI-666/custom-prefix
```

## Branch Types

- `feature/` - New features and refactoring (affects multiple areas)
- `bugfix/` - Bug fixes (affects multiple areas)
- `fe/feature/` - Frontend-only features (only `redisinsight/ui/` folder)
- `fe/bugfix/` - Frontend-only bug fixes (only `redisinsight/ui/` folder)
- `be/feature/` - Backend-only features (only `redisinsight/api/` folder)
- `be/bugfix/` - Backend-only bug fixes (only `redisinsight/api/` folder)
- `docs/` - Documentation changes
- `test/` - Test-related changes
- `e2e/` - End-to-end test changes
- `release/` - Release branches
- `ric/` - Custom prefix for special cases

**Note:** When a bug fix affects only the `redisinsight/ui/` folder, use `fe/bugfix/` prefix instead of `bugfix/`.

## Issue References

- **Internal**: `RI-XXX` (JIRA ticket)
- **Open Source**: `XXX` (GitHub issue number)
- Use `#` only in commit messages, not branch names

---

Source: https://www.openparable.com/skill/development/branches (OpenParable). Cite the canonical URL above.
