model-preference

A Cursor rule describing which model setting to prefer for a Figma pipeline based on the user’s Cursor plan. Cursor Free uses Auto, while paid users may prefer Composer 2.5 with Claude as a fallback; the rule never changes the live model selection.

In plain words
What is it for?
Use it to give plan-aware model guidance and size hints while running the pipeline without forcing or dispatching models.
Why use it?
It avoids asking Free-plan users to choose models they cannot select and prevents the pipeline from trying to launch separate named-model agents. All roles stay in the current chat thread.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/punkadillo/figma-code-composer/model-preference
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

Made for: Cursor.

Per session 674 This file is loaded in full into every session.
When invoked 674 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00674 $0.00674
Opus 5 $0.00337 $0.00337
Sonnet 5 $0.00135 $0.00135
Haiku 4.5 $0.00067 $0.00067

Measured yesterday against content hash 2a7fe6cf44d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

model-preference scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/model-preference.mdc · 37 lines

How it starts

The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cursor model preference — plan-aware, never forced

The figma-pipeline agents never force a model selection in Cursor. Cursor applies the active model from its Settings → Models UI / chat model picker; no project file can pin it. So this is a preference, scoped by plan:

Free plan — leave it on Auto

On the Cursor Free plan, model selection is locked to Auto. Do not attempt to set, switch, or recommend a specific model — the user can't change it, and the pipeline runs fine on whatever Auto picks. Treat any Composer-2.5/Claude preference below as a no-op when the picker is locked. The coordinator still surfaces its size hint (sm/md/lg) for information, but adds no "switch model" nudge on Free.

Never spawn a named-model agent (enforced, not advisory)

The whole pipeline runs inline in the current chat thread — Cursor has no Agent-style sub-agent spawner (see pipeline-roles.mdc). Do not try to dispatch a specialist (figma-fetcher, component-builder, …) or the coordinator itself as a separate agent that requests a named model. On Free that fails hard and aborts the run before any work happens:

Named models unavailable — Free plans can only use Auto. Switch to Auto or upgrade plans to continue.

This is the load-bearing difference from Claude Code's Agent(model=…) spawns: that path does not exist in Cursor. The coordinator plays every role inline on whatever model the picker currently holds (Auto on Free). The size hint is informational only — never a trigger to spawn or switch.

When the plan allows model selection (Paid):

  • Default: Composer 2.5. Select it once in Settings → Models.
  • Fallback: a Claude model ("claude mode") when Composer 2.5 is unavailable, or for lg-size runs (complex/extreme tier) where Claude's long-context reasoning or the code-reviewer pass benefits. The coordinator's lg size hint is the signal to switch for that run.

Read the full file on GitHub · 37 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 37 lines · 674 tokens per session scan A 2a7fe6cf44d5

Subscribe to this mod's changes

model-preference is a cursor rule published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 13d ago), licensed MIT. It adds 674 tokens to every session, about $0.0034 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.