new-branch-and-pr
cursor/plugins
Create a focused branch, implement changes, and open a pull request with test notes.
What is new-branch-and-pr?
Automates the workflow of creating a clean git branch from main, implementing changes with tests, committing focused work, and opening a pull request. Use this when starting work that should follow standard branch-and-PR practices.
- Ensures working tree is clean before starting
- Creates a descriptive branch from the latest main
- Guides implementation and test completion
- Commits focused changes and pushes to remote
- Opens a pull request with summary and verification notes
How to install new-branch-and-pr
npx skills add https://github.com/cursor/plugins --skill new-branch-and-prHow to use new-branch-and-pr
- 1.Trigger the skill when starting new work
- 2.Confirm the working tree is clean or handle any uncommitted changes
- 3.Provide a descriptive branch name based on the feature or fix
- 4.Implement your changes and write tests
- 5.Let the skill commit focused changes and push to remote
- 6.Review the generated PR summary and test notes before requesting review
Use cases
- Starting a new feature that needs code review
- Fixing a bug through standard PR workflow
- Contributing to a team project with branch protection rules
- Implementing changes that require test verification before merge
- Organizing work into logical, reviewable commits
- Software developers
- Team leads managing code review processes
- Contributors to open-source projects
- Engineers following git-flow or similar workflows
new-branch-and-pr FAQ
The skill checks for a clean working tree first and will ask you to handle any uncommitted changes before proceeding.
Yes, the skill prompts you to provide a descriptive branch name that reflects the work being done.
The skill creates the PR with a summary and test notes, but you review and confirm before it's submitted for review.
You can continue committing to the same branch; the PR will automatically update with new commits.
The skill is designed for standard git workflows; integration with specific platforms (GitHub, GitLab, etc.) depends on your setup.
Full instructions (SKILL.md)
Source of truth, from cursor/plugins.
name: new-branch-and-pr description: Create a fresh branch, complete work, and open a pull request
New branch and PR
Trigger
Starting work that should be shipped through a clean branch and pull request workflow.
Workflow
- Ensure the working tree is clean or explicitly handled.
- Create a descriptive branch from the latest main.
- Complete implementation and tests.
- Commit focused changes and push.
- Create a concise PR with summary and test notes.
Guardrails
- Keep branch scope focused on one change set.
- Include verification notes before requesting review.
Output
- New branch name
- PR summary and test notes
- PR URL
Related skills
More from cursor/plugins and the wider catalog.

no-comments
Remove unnecessary comments and encode constraints by spawning Comment Sicko analysis.

Poteto Mode
Poteto's deliberate agent style: concise responses, simple code, verified work, and rigorous decision-making.

pr-review-canvas
Generate interactive HTML walkthroughs of GitHub PRs with diffs, annotations, and moved-code detection.

principle-boundary-discipline
Concentrate validation at system boundaries; trust internal types and keep business logic pure.

principle-build-the-lever
Build tools (codemods, scripts, generators) to automate non-trivial work instead of doing it by hand.

principle-encode-lessons-in-structure
Encode recurring corrections as lint rules, metadata flags, and runtime checks instead of repeating instructions.