ui-architecture

ui-architecture is a cursor rule for Cursor from arango-solutions/arango-sparql-py. It costs 3,578 tokens per session, scanned A, original, MIT.

A set of rules for designing a single workspace centered on objects such as documents, graph items, and pipeline steps. It defines how selecting, acting on, and navigating between those objects should work.

In plain words
What is it for?
Use it when building or reviewing the workspace’s layout, object panels, context menus, drag-and-drop behavior, and keyboard shortcuts.
Why use it?
It reduces confusion about where users are and what interface colors, sizes, and actions mean.

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/arango-solutions/arango-sparql-py/ui-architecture
Clone the repo
git clone --depth 1 https://github.com/arango-solutions/arango-sparql-py

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-architecture

README.md
[![agentmods](https://agentmods.dev/badge/rules/arango-solutions/arango-sparql-py/ui-architecture.svg)](https://agentmods.dev/rules/arango-solutions/arango-sparql-py/ui-architecture)
Your own site
<a href="https://agentmods.dev/rules/arango-solutions/arango-sparql-py/ui-architecture"><img src="https://agentmods.dev/badge/rules/arango-solutions/arango-sparql-py/ui-architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,578 This file is loaded in full into every session.
When invoked 3,578 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.03578 $0.03578
Opus 5 $0.01789 $0.01789
Sonnet 5 $0.00716 $0.00716
Haiku 4.5 $0.00358 $0.00358

Measured 4d ago against content hash 966648037395, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ui-architecture 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 4d 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-architecture.mdc · 277 lines

How it starts

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

UI Architecture Rules — Object-Centric Workspace

Intent

The workspace is one persistent stage: users stay on the graph while acting on objects (classes, edges, properties, documents, ontologies, runs, pipeline steps). Features are added as capabilities on those objects, not as new destinations.

Two failure modes must never happen:

  1. The user asks "where am I?" (navigation disorientation).
  2. The user asks "what does this color/size mean?" with no answer available in-UI (encoding ambiguity).

Core Principles

0. LEFT-CLICK SELECTS, RIGHT-CLICK ACTS.

This is the interaction contract behind every other rule.

Gesture Meaning Surface
Left-click on an entity Select + open read-only detail panel FloatingDetailPanel (canvas entities) or AssetInfoPanel (explorer assets)
Right-click on an entity or canvas Open context menu of actions ContextMenu
Drag between explorer and canvas Initiate extraction / reparenting / import Drop zones
Keyboard accelerator (1–5, Esc, etc.) Shortcut for the most frequent menu items window key listener when focus is not in an input

Never attach mutation actions to left-click (no "click to approve", no "click to delete"). Read-only selection must be safe.

1. NO NEW ROUTES FOR WORKSPACE WORKFLOWS.

All new object-centric work integrates into /workspace.

  • Exempt routes: /login, /logout, /api/* route handlers (health, ready), and any framework-mandated auth/error shells.
  • Legacy routes (/curation, /dashboard, /library, /ontology/[id], /pipeline, /quality, /upload, /entity-resolution) existed before this rule. Do not link to them from new code, do not extend them with new features, and plan migration to overlays. Removing a legacy route is preferred over growing one.
  • Deep-linking is done via query params on /workspace, read by useSearchParams() — e.g. ?ontologyId=…&runId=…&lens=confidence. This preserves shareable URLs without introducing routes.

Read the full file on GitHub · 277 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. 4d ago First seen · 277 lines · 3,578 tokens per session scan A 966648037395

Subscribe to this mod's changes

ui-architecture is a cursor rule published in the GitHub repository arango-solutions/arango-sparql-py (2 stars, last pushed 18d ago), licensed MIT. It adds 3,578 tokens to every session, about $0.0179 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.