Link rule.mdc for specific modes e.g. planning?

Not sure how to do this, so please forgive me if this is simple. I use Cursor Plan Mode fairly extensively for new features or big refactors. I have a planning.mdc which details exactly how I want my plans written, in a way that has worked for me in getting good ‘one-shots’. However, I sometimes idiotically forget to attach it via @planning.mdc, and waste usage/tokens on an inefficient plan.

Is there an easy way to auto-attach it only when in plan mode?

There’s no way to explicitly link a rule to an agent mode, but you have might more luck using a skill that the agent can intelligently decide to apply based on the description/context.

.cursor/skills/workflow/plan-mode-test/SKILL.md

---
name: plan-mode-test
description: Test skill for verifying skill auto-invocation during plan mode. Use when in plan mode, when drafting an implementation plan, or when the user mentions planning, scoping, or breaking down a task before writing code.
---
...

Hope this helps!