Steps to reproduce:
- Create .cursor/rules/script/create-script.mdc with:
---
description:
globs:
alwaysApply: false
---
Always create scripts using TypeScript in the "./scripts/*.ts" directory
- Reference rule in agent with @create-script.mdc, hit enter to include it
- Prompt to “Create a hello world script”
Result: Usually a bash script in the root
Current workaround: Rename to a markdown “.md” file, then reference it.