ailinks:

Cursor/rule

Add a rule

Creates a rule in the project's .cursor/rules directory.

macos · windows · linux · web · updated 2026-07-12

Format

cursor://anysphere.cursor-deeplink/rule?name={name}&text={text}
webhttps://cursor.com/link/rule?name={name}&text={text}

Try it

cursor://anysphere.cursor-deeplink/rule?name=typescript-strict&text=Always%20use%20strict%20TypeScript%20typesOpen

What you supply

{name}

Identifier for the rule. Becomes its filename under .cursor/rules.

{text}

The rule's content — the standing instruction Cursor should follow.

URL-encode it. The whole link, encoded, must stay under 8,000 characters.

Same shape as command, and the same confirmation step, but it lands in .cursor/rules and applies as a standing instruction rather than something invoked by name.

A rule is persistent context, so a link that installs one is doing more than it looks like. Read what a rule link contains before you accept it.