Skip to content

chore: add Cursor command templates#7378

Merged
watson merged 1 commit intomasterfrom
watson/cursor-slash-commands
Jan 29, 2026
Merged

chore: add Cursor command templates#7378
watson merged 1 commit intomasterfrom
watson/cursor-slash-commands

Conversation

@watson
Copy link
Copy Markdown
Collaborator

@watson watson commented Jan 29, 2026

What does this PR do?

Adds three Cursor command templates to standardize common workflows and updates .gitignore to track the .cursor/commands/ directory while keeping .cursor/skills/ ignored.

The three commands added are:

  • /commit-message - Generates semantic commit messages following the 50/72 character formatting rules based on the currently staged changes
  • /pr-body - Creates PR descriptions using the repository's PR template with proper formatting based on the changes in the current branch
  • /test-branch - Runs all relevant tests for changes in the current branch, handling both unit and integration tests appropriately

Motivation

These command templates help ensure consistent formatting and quality when creating commit messages and PR descriptions, and provide a standardized and quick approach to running tests for branch changes (so it's easier to test before pushing).

Add command templates for commit messages, PR bodies, and branch
testing to standardize workflows. Update .gitignore to track
.cursor/commands while keeping .cursor/skills ignored.
@watson watson requested a review from a team as a code owner January 29, 2026 12:31
@watson watson self-assigned this Jan 29, 2026
Copy link
Copy Markdown
Collaborator Author

watson commented Jan 29, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown
Contributor

Overall package size

Self size: 4.46 MB
Deduped: 5.3 MB
No deduping: 5.3 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.3 | 76.87 kB | 808.03 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.16%. Comparing base (e12c195) to head (76fb0ef).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7378   +/-   ##
=======================================
  Coverage   86.16%   86.16%           
=======================================
  Files         515      515           
  Lines       22245    22245           
=======================================
  Hits        19168    19168           
  Misses       3077     3077           
Flag Coverage Δ
aiguard-macos 99.09% <ø> (ø)
aiguard-ubuntu 99.09% <ø> (ø)
aiguard-windows 99.09% <ø> (ø)
apm-capabilities-tracing-macos 57.84% <ø> (ø)
apm-capabilities-tracing-ubuntu 57.83% <ø> (ø)
apm-capabilities-tracing-windows 57.45% <ø> (+0.01%) ⬆️
apm-integrations-child-process 99.19% <ø> (ø)
apm-integrations-couchbase-18 100.00% <ø> (ø)
apm-integrations-couchbase-eol 100.00% <ø> (ø)
appsec-express 62.54% <ø> (ø)
appsec-fastify 58.55% <ø> (ø)
appsec-graphql 53.40% <ø> (ø)
appsec-kafka 43.98% <ø> (ø)
appsec-ldapjs 46.04% <ø> (ø)
appsec-lodash 47.29% <ø> (ø)
appsec-macos 93.76% <ø> (ø)
appsec-mongodb-core 51.82% <ø> (ø)
appsec-mongoose 50.73% <ø> (ø)
appsec-mysql 54.16% <ø> (ø)
appsec-node-serialize 43.92% <ø> (ø)
appsec-passport 48.07% <ø> (ø)
appsec-postgres 54.51% <ø> (ø)
appsec-sourcing 33.80% <ø> (ø)
appsec-template 43.92% <ø> (ø)
appsec-ubuntu 93.76% <ø> (ø)
appsec-windows 93.76% <ø> (ø)
llmobs-ai 52.09% <ø> (ø)
llmobs-anthropic 42.73% <ø> (ø)
llmobs-bedrock 40.06% <ø> (ø)
llmobs-google-genai 45.89% <ø> (ø)
llmobs-langchain 50.15% <ø> (ø)
llmobs-openai 55.62% <ø> (ø)
llmobs-vertex-ai 44.48% <ø> (ø)
platform-core 87.23% <ø> (ø)
platform-instrumentations-misc 89.16% <ø> (ø)
platform-shimmer 98.80% <ø> (ø)
platform-unit-guardrails 89.47% <ø> (ø)
profiling-macos 70.74% <ø> (ø)
profiling-ubuntu 70.74% <ø> (ø)
profiling-windows 74.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Jan 29, 2026

Benchmarks

Benchmark execution time: 2026-01-29 12:40:48

Comparing candidate commit 76fb0ef in PR branch watson/cursor-slash-commands with baseline commit e12c195 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 229 metrics, 31 unstable metrics.

Copy link
Copy Markdown
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I believe the wording could partially still be improved. I guess we can do that a bit later though and this is a good starting point for commands!

@watson
Copy link
Copy Markdown
Collaborator Author

watson commented Jan 29, 2026

@BridgeAR yeah, these are what have worked for me (an iterative process over the past few weeks). But if we find that they are not optimal in some way or think we can otherwise reduce the token count if it's too large (I don't think these are wasteful), then by all means 👍

@watson watson enabled auto-merge (squash) January 29, 2026 12:46
@watson watson merged commit d51ac85 into master Jan 29, 2026
785 of 786 checks passed
@watson watson deleted the watson/cursor-slash-commands branch January 29, 2026 12:52
dd-octo-sts bot pushed a commit that referenced this pull request Jan 29, 2026
Add command templates for commit messages, PR bodies, and branch
testing to standardize workflows. Update .gitignore to track
.cursor/commands while keeping .cursor/skills ignored.
@dd-octo-sts dd-octo-sts bot mentioned this pull request Jan 29, 2026
BridgeAR pushed a commit that referenced this pull request Jan 30, 2026
Add command templates for commit messages, PR bodies, and branch
testing to standardize workflows. Update .gitignore to track
.cursor/commands while keeping .cursor/skills ignored.
BridgeAR pushed a commit that referenced this pull request Feb 22, 2026
Add command templates for commit messages, PR bodies, and branch
testing to standardize workflows. Update .gitignore to track
.cursor/commands while keeping .cursor/skills ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants