ui-craft

ui-craft is a cursor rule for Cursor from AcKeskin/contexture. It costs 2,435 tokens per session, scanned A, original, MIT.

A set of interface-design rules checked against the rendered result, including hierarchy, spacing, contrast, typography, and interaction behaviour.

In plain words
What is it for?
Use it when reviewing or refining a web interface and its responsive states.
Why use it?
It helps identify visual problems that are not obvious from source code or design intentions alone.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when reviewing or refining a web interface and its responsive states.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ackeskin/contexture/ui-craft
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/AcKeskin/contexture

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 ui-craft

README.md
[![agentmods](https://agentmods.dev/badge/rules/ackeskin/contexture/ui-craft/github.svg)](https://agentmods.dev/rules/ackeskin/contexture/ui-craft)
Your own site
<a href="https://agentmods.dev/rules/ackeskin/contexture/ui-craft"><img src="https://agentmods.dev/badge/rules/ackeskin/contexture/ui-craft/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 ui-craft

Your own site · 80×15
<a href="https://agentmods.dev/rules/ackeskin/contexture/ui-craft"><img src="https://agentmods.dev/badge/rules/ackeskin/contexture/ui-craft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,435 This file is loaded in full into every session.
When invoked 2,435 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.02435 $0.02435
Opus 5.5 $0.00974 $0.00974
Sonnet 5.5 $0.00487 $0.00487
Haiku 4.5 $0.00244 $0.00244

Measured 9d ago against content hash c3b889da8963, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-craft 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 9d 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/ui-craft.mdc · 73 lines

How it starts

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

Generated from architectural-rules/ui-craft/ — do not hand-edit.

UI craft floor

Check these on the rendered result, in one look, not as intentions.

  • Read the feeling words from the direction, then point at each visible element and ask whether it serves them. List what does not, and fix or remove it before the checks below. Remove extras first (badges, icons, helper lines, dividers nobody needs); less on screen fixes more than restyling.
  • Text contrast at least 4.5:1, large text and UI parts 3:1, checked in every theme the UI ships (light and dark). Secondary text on a colored surface is a tint of that surface, never plain gray.
  • One element per view is the most important, and it looks it (size, weight or position). Equal boxes of equal weight hide the number the user came for.
  • Tight inside a group, wider between groups, more space above a heading than below it. One spacing scale, not one value everywhere.
  • Everything sits on one grid: left edges of text, inputs and cards line up, and items that belong together sit closer than items that do not.
  • Body measure 65-75ch, line height 1.4-1.6 for body, clear size steps (at least 1.25x between heading levels; secondary text at the same level may differ by color alone), no tracking tighter than -0.03em, no wide tracking on body text.
  • Every view handles: empty, loading, error, long or missing values, and the narrowest width it supports (a desktop app: its minimum window size). Empty states say what is missing and give one next action.
  • Color states by meaning: red only for errors and danger, amber for needs-attention, neutral for normal off or idle. A stopped service the user stopped is not an error. Never color as the only signal: pair it with a word or icon.
  • Labels and status text are true for the current state and use the product's words. Two status lines on one screen never disagree ("idle" next to "streaming"), and no text repeats the word beside it. Buttons name their action; errors name the problem and the fix.
  • Focus rings, text selection, scrollbars and form controls are styled from the palette, not left at browser defaults. Number columns use tabular figures.
  • Motion only where it explains a change. Ease-out, 150-250ms for feedback, transform and opacity only, prefers-reduced-motion respected. No identical entrance on every section.

Why: these are the failures that make UI read as unfinished, and none of them is a taste call. Sources: pbakaus/impeccable (craft floor, detector rules), vercel-labs/web-interface-guidelines, ibelick/ui-skills (baseline-ui), Figma "UI design principles" (proximity, alignment), WCAG 2.2.

Read the full file on GitHub · 73 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. 9d ago Changed · +2 lines · +153 tokens per session c3b889da8963
  2. 17d ago First seen · 71 lines · 2,282 tokens per session scan A bc8f58c45bcc

Subscribe to this mod's changes

ui-craft is a cursor rule published in the GitHub repository AcKeskin/contexture (2 stars, last pushed 7d ago), licensed MIT. It adds 2,435 tokens to every session, about $0.0097 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-11-13.

Related

ui-craft compared with cursor rules from other repositories

ui-craft next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-craftAcKeskin/contextureCursor rule27d agoMITA2,435Cursor
hatch3r-design-system-detectionhatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-ux-states-and-flowshatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-accessibility-standardshatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-component-conventionshatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-theminghatch3r/hatch3rCursor rule262mo agoMITA0Cursor
accessibilitygirijashankarj/cursor-handbookCursor rule333mo agoMITA0Cursor