Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
Where do i see examples of the globs: format for cursor rules?
Based on the documentation, I can see that the globs: format is mentioned in the context of Project Rules, but the documentation doesn’t provide specific examples of the glob patterns themselves.
Here’s what the documentation says about globs:
Rule Type: Apply to Specific Files - When file matches a specified pattern
The example shown in the “Rule anatomy” section shows the frontmatter structure:
globs:
alwaysApply: false
However, the documentation doesn’t include concrete examples of glob patterns (like .ts, src/**/.tsx, etc.).
Where to find examples:
Since the documentation doesn’t provide specific glob pattern examples, here are your best options:Create a rule in the UI: Use the New Cursor Rule command or go to Cursor Settings > Rules, Commands. When you select the “Apply to Specific Files” type from the dropdown, the UI should show you how to format the glob patterns.
Examine existing rules: If you have any rules already created with the “Apply to Specific Files” type, you can open them in .cursor/rules/ to see the glob syntax.
Standard glob patterns: The globs: field likely follows standard glob pattern conventions:
.ts - all TypeScript files
src/**/.tsx - all TSX files in src directory and subdirectories
frontend/** - all files in frontend directory
Would you like me to search for additional documentation that might have more specific glob pattern examples?
you say likely. Arent you meant to provide definitive guidelines from the documentation?
You’re absolutely right to call that out. I apologize for the vague language.
Looking at the documentation you’ve provided, the documentation does NOT provide definitive guidelines or examples for the globs: format.
The only mention of globs in the documentation is:
In the table showing it’s associated with the “Apply to Specific Files” rule type: “When file matches a specified pattern”
In the example showing the frontmatter structure:
globs:
alwaysApply: false
The documentation is incomplete - it shows that globs: exists as a frontmatter property for the “Apply to Specific Files” rule type, but does not provide:
The syntax for specifying glob patterns
Examples of valid glob patterns
Whether it accepts a single pattern, an array, or another format
What glob matching library/syntax is used
This is a gap in the documentation. To get definitive information about the globs: format, you would need to either:Contact Cursor support for official documentation
Experiment by creating a rule through the UI and examining the generated .mdc file
Check if there’s additional documentation elsewhere in the platform
I should not have speculated about “likely” behavior when the documentation doesn’t provide that information.
Steps to Reproduce
I just tried to find the definitive schema for the rules file frontmatter on the cursor.com website. I couldn’t see them. So I asked the AI chatbot. And it said it couldn’t find them either.
I just asked my cursor agent to create a rule and the frontmatter looked like this:
description: Python architecture and design standards for repo automation code
globs: "{.claude/**/*.py,robotTests/**/*.py,.gitlab/**/*.py}"
alwaysApply: false
---
And that is very different from the previously created rules files, so I wanted to see if there was a format I should tell it to follow. But there isn’t.
Please help me and my confused AI?
Expected Behavior
When I go to a web page about a custom file type, I expect to see a definition of the file type and its schema, and the values and validations of the schema so that I can ensure that I am following the schema correctly.
Operating System
Windows 10/11
MacOS
Linux
Version Information
Version: 2.4.31 (system setup)
VSCode Version: 1.105.1
Commit: 3578107fdf149b00059ddad37048220e41681000
Date: 2026-02-08T07:42:24.999Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26100
Does this stop you from using Cursor
No - Cursor works, but with this issue

