agentleFS
Ame-AlAme-Al/ame/.cursor/rules/sim-ui-copy.mdc

ame / rules

Cursor rule1 starsChanged 2 months agoApache-2.0View on GitHub

UI copy conventions — no default subtitles or helper text under headings, labels, cards, or settings

We split this sim-ui-copy.mdc into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a heading needs a subtitle to be understood, the heading is wrong.

    line 28
  2. Distinctive:

    Keep (or add) a description only when it carries information the label cannot, and its absence would cause a mistake:

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
sim-ui-copy.mdc
---
description: UI copy conventions — no default subtitles or helper text under headings, labels, cards, or settings
globs: ["apps/sim/**/*.tsx"]
---
# UI Copy

**Do not add subtitles, helper text, or descriptive copy beneath headings, labels, cards, or settings by default.** Prefer one concise, self-explanatory heading or label. Only add supporting copy when the user explicitly asks for it, or when it is necessary to prevent misunderstanding or error — and never use it to restate the heading.

This applies to product surfaces: settings rows, modals, panels, cards, list rows, empty states, form fields, and section headers. Marketing surfaces (`app/(landing)`, docs) are governed by `constitution.mdc` instead.

**Carve-out — settings section metadata.** `SettingsNavigationItem.description` in `components/settings/navigation.ts` stays required, and `SettingsPanel` keeps rendering it as the page subtitle. Settings sections are reached through a nav list where the description is the only thing distinguishing adjacent sections. Everything else on a settings page — inline `<p>` blurbs under section headings, field hints, modal bodies, row subtitles — follows the default rule above.

## The default is no description

```tsx
// ✗ Bad — the subtitle restates the heading
<h3>API Keys</h3>
<p className='text-[var(--text-muted)] text-caption'>Manage your API keys.</p>

// ✗ Bad — decorative filler under a field label
<ChipModalField title='Workspace name' hint='The name of your workspace.' />

// ✓ Good — the label carries the whole meaning
<h3>API Keys</h3>
<ChipModalField title='Workspace name' />
```

If a heading needs a subtitle to be understood, the heading is wrong. Fix the heading — don't append a second line.

## When supporting copy earns its place

Keep (or add) a description only when it carries information the label cannot, and its absence would cause a mistake:

- **Irreversible or destructive consequences** — "Deleting this workspace removes every workflow and log. This cannot be undone."
- **A non-obvious format, unit, or bound** — "Comma-separated. Max 50 domains.", "Cost per 1M input tokens."
- **A security or access implication** — "This key is shown once and grants full workspace access."
- **A state the user cannot otherwise see** — "Inherited from your organization's policy."
- **Instructional copy that advances a flow** — "We sent a 6-digit code to you@example.com."

Everything else — restatements, "Manage your X", "Configure your Y", feature blurbs, encouragement — gets deleted.

## Component APIs

Description/hint slots on shared components are **optional**, never required, and must reserve no layout space when omitted. A component that forces every consumer to supply a subtitle forces every consumer to violate this rule. When adding a new shared component, ship it without a description slot and add one only once a real caller meets the bar above.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.