Skip to content

.cursor/rules/: what Cursor reads, and where it goes

This page says two things: what Cursor reads, according to its official documentation (linked below), and what the stationhold command writes to the repository.

The command that writes it
npx @stationhold/cli@latest add verify --harness=cursor

What Cursor reads

  • The rules in .cursor/rules/, in .mdc format: it is the only extension read in that folder.
  • Each rule’s header decides when it loads: with alwaysApply: false, the rule is not applied all the time, and its description lets Cursor attach it on its own when it is relevant.
  • globs attaches the rule when a matching file is open.
  • .cursor/commands/: commands, run by name.

What it does not read

  • An .mdx file placed in .cursor/rules/: only the .mdc extension is read there.

Where the file goes

It writes .cursor/rules/stationhold-verify.mdc. A file that belongs to the extension alone: reinstalling writes the current version.

Dry run by default: the command shows what it would write, and writes nothing without --write.

Source: Cursor’s official documentation

The file other tools read