Feature Branch Workflow
End-to-end process for developing on a feature branch
CLAUDE.md
When starting a new feature branch:
- Pull the latest main branch:
git checkout main && git pull. - Create a descriptive branch:
git checkout -b feature/short-description. - Make small, focused commits as you work. Each commit should build and pass tests.
- Push your branch regularly to preserve work remotely.
- When the feature is complete, rebase on main to resolve conflicts:
git fetch origin && git rebase origin/main. - Run the full test suite on the rebased branch.
- Open a pull request with a clear description of the change and how to test it.
Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.