Skip to content

Update cursor rules glob patterns#2878

Merged
alexandratran merged 2 commits into
mainfrom
cursor-rules-test
Apr 23, 2026
Merged

Update cursor rules glob patterns#2878
alexandratran merged 2 commits into
mainfrom
cursor-rules-test

Conversation

@alexandratran

@alexandratran alexandratran commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Description

Cursor appears not to be applying all rules properly, possibly because of bad glob patterns. This PR updates to proper syntax (seems to be confusing for many: https://forum.cursor.com/t/correct-way-to-specify-rules-globs/71752).

Before:
Screenshot 2026-04-22 at 4 21 21 PM

After:
Screenshot 2026-04-22 at 4 21 28 PM

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

External contributor checklist

  • I've read the contribution guidelines.
  • I've created a new issue (or assigned myself to an existing issue) describing what this PR addresses.

Note

Low Risk
Low risk since changes are limited to Cursor rule metadata and should only affect which files the editor applies rules to. Main risk is unintended widening/narrowing of rule scope due to the new glob strings.

Overview
Updates Cursor rule frontmatter globs fields to use Cursor’s supported comma-separated syntax (for **/*.md/**/*.mdx and product-specific paths), improving rule matching across the docs.

Also refines the editorial-voice guidance by clarifying the em-dash rule and tightening when bold is allowed, and removes the scripts/generate-smart-accounts-glossary.js glob from the Smart Accounts Kit rule scope.

Reviewed by Cursor Bugbot for commit 619c424. Bugbot is set up for automated code reviews on this repo. Configure here.

@alexandratran alexandratran requested review from a team as code owners April 22, 2026 22:59
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
metamask-docs Ready Ready Preview, Comment Apr 22, 2026 11:24pm

Request Review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2233aed. Configure here.

Comment thread .cursor/rules/product-smart-accounts-kit.mdc

@bgravenorst bgravenorst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@alexandratran alexandratran merged commit c915532 into main Apr 23, 2026
19 checks passed
@alexandratran alexandratran deleted the cursor-rules-test branch April 23, 2026 00:04
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