intent-ref-interaction-patterns

intent-ref-interaction-patterns is a cursor rule for Cursor from ghaida/intent. It costs 3,271 tokens per session, scanned A, original, CC0-1.0.

A set of guidelines for designing forms and other user interactions, including validation, feedback, error recovery, and undo actions.

In plain words
What is it for?
Use it when designing forms, multi-step interactions, input validation, or changes between interface states.
Why use it?
It helps prevent confusing steps, unclear errors, and lost user input. It also makes complex interactions easier to understand and recover from.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when designing forms, multi-step interactions, input validation, or changes between interface states.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ghaida/intent/intent-ref-interaction-patterns
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.

Clone the repo
git clone --depth 1 https://github.com/ghaida/intent

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for intent-ref-interaction-patterns

README.md
[![agentmods](https://agentmods.dev/badge/rules/ghaida/intent/intent-ref-interaction-patterns/github.svg)](https://agentmods.dev/rules/ghaida/intent/intent-ref-interaction-patterns)
Your own site
<a href="https://agentmods.dev/rules/ghaida/intent/intent-ref-interaction-patterns"><img src="https://agentmods.dev/badge/rules/ghaida/intent/intent-ref-interaction-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for intent-ref-interaction-patterns

Your own site · 80×15
<a href="https://agentmods.dev/rules/ghaida/intent/intent-ref-interaction-patterns"><img src="https://agentmods.dev/badge/rules/ghaida/intent/intent-ref-interaction-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,271 This file is loaded in full into every session.
When invoked 3,271 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03271 $0.03271
Opus 5.5 $0.01308 $0.01308
Sonnet 5.5 $0.00654 $0.00654
Haiku 4.5 $0.00327 $0.00327

Measured 1mo ago against content hash 084e599696ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

intent-ref-interaction-patterns 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 1mo ago.

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/intent-ref-interaction-patterns.mdc · 236 lines

How it starts

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

Interaction Patterns

Form Design Principles

Forms are where users exchange value with your product. Every unnecessary field, confusing label, or unhelpful error message is friction between the user and their goal. The research on form design is extensive and remarkably consistent.

One Thing Per Page

The Government Digital Service (GDS) pattern, validated across millions of transactions: each screen asks one question or collects one piece of information. Not one form field — one conceptual unit.

Why it works: Reduces cognitive load. Each page has a clear purpose. Error recovery is simpler — the error is on this page, about this thing. Progress feels tangible. Mobile performance improves (less content per load). Analytics are more granular (you know exactly where drop-off occurs).

When to bend it: Closely related fields that users think of as one concept (first name + last name, city + state + zip). Editing flows where users need to see multiple fields to understand context. Expert tools where speed matters more than guidance.

When not to bend it: Checkout flows. Registration. Any flow where drop-off is a risk. Any flow used on mobile.

Inline Validation Timing

When to validate is as important as how to validate. Get the timing wrong and validation becomes harassment.

Validate on blur (leaving a field), not on keystroke. Validating while the user is still typing is hostile — they haven't finished their input and you're already telling them it's wrong. Luke Wroblewski's research (2009) confirmed that inline validation improves completion rates, but only when triggered after the user leaves the field.

Exception: password strength. Real-time feedback on password requirements is one of the few cases where keystroke-level validation helps, because the user is building toward a goal and needs to know the criteria as they type.

Exception: character counts. If a field has a maximum length, show the remaining count as the user types. Don't wait until they've written a paragraph to tell them the limit is 140 characters.

Read the full file on GitHub · 236 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. 1mo ago First seen · 236 lines · 3,271 tokens per session scan A 084e599696ab

Subscribe to this mod's changes

intent-ref-interaction-patterns is a cursor rule published in the GitHub repository ghaida/intent (214 stars, last pushed 7d ago), licensed CC0-1.0. It adds 3,271 tokens to every session, about $0.0131 per session on Opus 5.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-30.