Rule
0 installs · 0 said it worked
Gitflow rules that guide Cursor through branching, commits, PRs, and releases
Cursor rule set that tells the assistant how to handle git work under Gitflow: branch naming, merge paths, commit message format, semantic versioning, PR requirements, and release and hotfix steps.
People use this for
- gitflow branching rules for cursor
- git commit message format enforcement
- gitflow release and hotfix workflow
- set up feature branch naming convention
- how should ai assistant handle git branches and pull requests
- Name
gitflow-rules-that-guide-cursor-through-branching-commits-prs-an- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/gitflow-rules-that-guide-cursor-through-branching-commits-prs-and-releas-fa5k/export/mdc" -o .cursor/rules/gitflow-rules-that-guide-cursor-through-branching-commits-prs-an.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save gitflow-rules-that-guide-cursor-through-branching-commits-prs-an.mdc as .cursor/rules/gitflow-rules-that-guide-cursor-through-branching-commits-prs-an.mdc for this project or ~/.cursor/rules/gitflow-rules-that-guide-cursor-through-branching-commits-prs-an.mdc for every project, then start a new session.
Rule
description: Gitflow Workflow Rules. These rules should be applied when performing git operations. globs: ["**/*"] alwaysApply: false
Gitflow Workflow Rules
Main Branches
main (or master)
- Contains production-ready code
- Never commit directly to main
- Only accepts merges from:
- hotfix/* branches
- release/* branches
- Must be tagged with version number after each merge
develop
- Main development branch
- Contains latest delivered development changes
- Source branch for feature branches
- Never commit directly to develop
Supporting Branches
feature/*
- Branch from: develop
- Merge back into: develop
- Naming convention: feature/[issue-id]-descriptive-name
- Example: feature/123-user-authentication
- Must be up-to-date with develop before creating PR
- Delete after merge
release/*
- Branch from: develop
- Merge back into:
- main
- develop
- Naming convention: release/vX.Y.Z
- Example: release/v1.2.0
- Only bug fixes, documentation, and release-oriented tasks
- No new features
- Delete after merge
hotfix/*
- Branch from: main
- Merge back into:
- main
- develop
- Naming convention: hotfix/vX.Y.Z
- Example: hotfix/v1.2.1
- Only for urgent production fixes
- Delete after merge
Commit Messages
- Format:
type(scope): description - Types:
- feat: New feature
- fix: Bug fix
- docs: Documentation changes
- style: Formatting, missing semicolons, etc.
- refactor: Code refactoring
- test: Adding tests
- chore: Maintenance tasks
Version Control
Semantic Versioning
- MAJOR version for incompatible API changes
- MINOR version for backwards-compatible functionality
- PATCH version for backwards-compatible bug fixes
Pull Request Rules
- All changes must go through Pull Requests
- Required approvals: minimum 1
- CI checks must pass
- No direct commits to protected branches (main, develop)
- Branch must be up to date before merging
- Delete branch after merge
Branch Protection Rules
main & develop
- Require pull request reviews
- Require status checks to pass
- Require branches to be up to date
- Include administrators in restrictions
- No force pushes
- No deletions
Release Process
- Create release branch from develop
- Bump version numbers
- Fix any release-specific issues
- Create PR to main
- After merge to main:
- Tag release
- Merge back to develop
- Delete release branch
Hotfix Process
- Create hotfix branch from main
- Fix the issue
- Bump patch version
- Create PR to main
- After merge to main:
- Tag release
- Merge back to develop
- Delete hotfix branch
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Stale Git branch cleanup auditor for safe remote branch pruning
Audits a shared repository's remote branches, sorts each into delete, archive-then-delete, ask-owner, open-PR, active or protected actions, flags risky names and stale PRs, and prints a reviewable tag-then-delete script without deleting anything.
Coding · @f
- Git repository bloat finder: diagnose large files and suggest safe cleanup
Agent skill that measures a Git repository, scans reachable blobs for large, deleted, versioned, generated and credential-like files, and proposes least-disruptive fixes without rewriting history itself.
Coding · @f
- Build a Keep a Changelog release section from Conventional Commits
Turns a git log in Conventional Commits format into a grouped Keep a Changelog release section with breaking-change notes, flagged commits and a suggested SemVer version.
Coding · @f
- Write work reports from git and coding-agent sessions
Agent skill that gathers a user's work for a period and folder scope from git, coding-agent sessions and other sources, then drafts, previews and saves a standup, weekly, monthly or changelog report.
Coding · @subashdhamee
- Explain, test, and harden a Python regular expression
Explains a Python regex token by token, tests it against must-match and must-not-match samples, flags risky patterns like catastrophic backtracking, and returns a safer rewrite with a test table.
Coding · @f
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.