Glob-enabled rules from plugins are not applied in agent sessions

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

With a plugin I am developing, i don’t get rules to apply when they are enabled by globs. The plugin shows up in Plugins (listing the rule as contents), and the rule shows up in Rules, Skills, Subagents → Rules, but the rule does not get it added to its context. Skills from the plugin do work as advertised (as do agents).

In a reply to similar issue, where plugin provided rules wouldn’t apply even with alwaysApply: true, there was hope expressed that it would fix it for glob-enabled rules too:

But nope. =)

My rules file looks like so:

---
globs: **/*.clj, **/*.cljs, **/*.cljc, **/*.cljd, **/*.cljr, **/*.cljx, **/*.clojure, **/*.edn, **/*.joke, **/*.boot, **/*.bb, **/*.lg, **/*.glj, **/*.ly, **/*.lpy, **/*.jank, **/*.calva-repl, **/*.fiddle
# alwaysApply: true
description: REPL-first Clojure persona for the main agent. Load the clojure skill and route every Clojure form edit through structural editing — never plain text edits. Activates in Clojure file contexts.
# globs:
#   - "**/*.clj"
#   - "**/*.cljs"
#   - "**/*.cljc"
#   - "**/*.cljd"
#   - "**/*.cljr"
#   - "**/*.cljx"
#   - "**/*.clojure"
#   - "**/*.edn"
#   - "**/*.joke"
#   - "**/*.boot"
#   - "**/*.bb"
#   - "**/*.lg"
#   - "**/*.glj"
#   - "**/*.ly"
#   - "**/*.lpy"
#   - "**/*.jank"
#   - "**/*.calva-repl"
#   - "**/*.fiddle"
---

# Clojure interactive programmer
...

It doesn’t matter which kind of YAML syntax I try for the globs. Uncommenting alwaysApply: true makes the rue apply, as per the linked issue reply.

Steps to Reproduce

  1. Have a Clojure file active (say, hello.clj):
  2. Ask the agent if it can see the clojure rule from the plugin in its context

Expected Behavior

The agent says yes and lets me know what’s in the rule. (Like it does with alwaysApply: true.

Operating System

MacOS

Version Information

Version: 3.8.11
VS Code Extension API: 1.105.1
Commit: e56ad3440df06d22ca7501e65fd518e905486ef0
Date: 2026-06-18T01:40:18.333Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.2.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Thanks for flagging @PEZ. It looks like the magic that lets Skills match files outside their parent directory hasn’t been applied to rules. I’ve filed a bug with the team!