Skip to content

Add Cursor commands for commit and PR description generation - #826

Merged
panosatkinde merged 2 commits into
mainfrom
dev-workflow
Oct 9, 2026
Merged

panosatkinde merged 2 commits into
mainfrom
dev-workflow

Conversation

@panosatkinde

@panosatkinde panosatkinde commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds two Cursor slash-command guides under .cursor/commands/ so agents follow a consistent process when creating commits and drafting pull requests.

What's included

generate-commit.md

  • Step-by-step flow for reviewing changes, planning commits, confirming with the user, then committing
  • Requires semantic commit messages: <type>(<scope>): <short description> (feat, fix, refactor, style, docs, test, chore)
  • Explicit rules: no commits on main/master, no AI attribution / co-author lines, prefer signed commits, push after confirmation
  • Encourages atomic commits and why-focused messages (business + tech when useful)

generate-pr-description.md

  • Prerequisites before comparing a feature branch to origin/main: fetch, verify ancestry, merge only with user approval
  • Instructions to inspect commits and diffs, then produce a concise title and detailed description
  • Outputs a Markdown file in the OS temp directory for easy copy/paste into Gitea
  • Calls out documenting database table changes when applicable

Motivation

Standardize how Cursor agents create git commits and PR write-ups so reviewers get clearer history and PR descriptions, and so branch comparisons against main stay accurate (fresh fetch + merge checks before diffing).

Database changes

None.

Test plan

  • Confirm both files appear under .cursor/commands/ and are picked up as Cursor commands
  • Run /generate-commit on a sample change set and verify the agent asks for confirmation before committing, uses semantic messages, and omits attribution
  • Run /generate-pr-description on a feature branch and verify it fetches origin/main, checks merge ancestry, and writes Markdown to a system temp file (not the repo tmp/)
  • Spot-check that the PR description template covers summary, changes, motivation, and DB section when relevant

Introduced a new markdown file outlining the process for creating effective git commits. The guidelines emphasize the importance of clear, descriptive commit messages, the use of semantic commit types, and best practices for grouping related changes. This addition aims to enhance the consistency and quality of commit messages across the project.
Introduced a new markdown file that outlines the process for generating informative PR titles and descriptions. The guidelines include prerequisites for comparing branches, instructions for inspecting changes, and requirements for documenting database changes. This addition aims to streamline the PR creation process and improve clarity for reviewers.
@panosatkinde
panosatkinde requested a review from a team as a code owner October 8, 2026 13:04
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98d11ecb-5007-4207-8f7f-cb5fa7054319
📥 Commits

Reviewing files that changed from the base of the PR and between fa35fd0 and f99d876.

📒 Files selected for processing (2)
  • .cursor/commands/generate-commit.md
  • .cursor/commands/generate-pr-description.md
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@panosatkinde panosatkinde changed the title Dev workflow Add Cursor commands for commit and PR description generation Oct 8, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying kinde-docs-preview with  Cloudflare Pages  Cloudflare Pages

Latest commit: f99d876
Status: ✅  Deploy successful!
Preview URL: https://5debcf0d.kinde-docs-preview.pages.dev
Branch Preview URL: https://dev-workflow.kinde-docs-preview.pages.dev

View logs

@panosatkinde
panosatkinde merged commit 2d6add6 into main Oct 9, 2026
6 checks passed
@panosatkinde
panosatkinde deleted the dev-workflow branch October 9, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants