# Feature Branch Pr

> Enforce feature work on a dedicated git branch and submission via pull request. Use when implementing any feature, fix, or refactor so work is isolated, reviewed, and merged via PR. Use when this capability is needed.

- Skill: `tomevault-io/feature-branch-pr` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/feature-branch-pr`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/feature-branch-pr/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/feature-branch-pr

---


# Feature Branch + PR Workflow

## Overview

Use a consistent git workflow so every feature/change is done in a branch and submitted as a PR.

## Workflow

### 1. Confirm PR Requirements
- Identify target branch (e.g., `main` or `develop`).
- Ask for branch naming rules if not specified.
- Confirm if a PR template, labels, or issue references are required.

### 2. Create Branch
- Create a new branch before modifying code.
- Auto-pick branch name using phase number + short feature name.
- Use format: `phase-<number>-<short-name>` (e.g., `phase-5-1-scout-llm`).
- If the phase has substeps (e.g., 5.1), include them (e.g., `phase-5-1`).

Example:
```bash
git switch -c phase-<number>-<short-name>
```

### 3. Implement + Commit
- Implement changes and tests on the branch only.
- Follow the repo's commit conventions.
- Keep commits scoped to the feature.

### 4. Push Branch
- Push the branch to origin.

Example:
```bash
git push -u origin feature/<short-slug>
```

### 5. Open PR
- Open a PR targeting the agreed branch.
- Include test results, scope summary, and any required references (issues, docs).
- If a PR template exists, fill it out fully.

### 6. Keep Work in PR Scope
- Do not merge locally.
- Wait for review; address feedback with additional commits on the same branch.

## Notes

- If branch naming conventions or PR requirements are unclear, ask the user before proceeding.
- If the repo uses issue-based workflow, include the issue ID in the branch name and PR title.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/arun-gupta) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

