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.
git clone --depth 1 https://github.com/arango-solutions/arango-sparql-pyWrote 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.
[](https://agentmods.dev/rules/arango-solutions/arango-sparql-py/400-frontend-ui)<a href="https://agentmods.dev/rules/arango-solutions/arango-sparql-py/400-frontend-ui"><img src="https://agentmods.dev/badge/rules/arango-solutions/arango-sparql-py/400-frontend-ui.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00736 |
| Opus 5 | $0.00000 | $0.00368 |
| Sonnet 5 | $0.00000 | $0.00147 |
| Haiku 4.5 | $0.00000 | $0.00074 |
Grade A, and why
400-frontend-ui 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Frontend rules
Stack (mirror arango-cypher-py/ui/)
- Vite + React 19 + TypeScript, ESM-only.
- Editor: CodeMirror 6 with
@codemirror/legacy-modes/mode/sparqlfor syntax highlighting. Mirror the structure ofreferences/arango-cypher-py/ui/src/components/CypherEditor.tsxin a newSparqlEditor.tsx. - Graph viz: Cytoscape.js, mirror
references/arango-cypher-py/ui/src/components/CytoscapeGraph.tsx. - Tailwind v4 via
@tailwindcss/vite(same as Cypher UI).
Component map (1:1 with Cypher UI where it carries over)
SparqlEditor.tsx←CypherEditor.tsxAqlEditor.tsx← keep as-is, it's language-agnostic.CytoscapeGraph.tsx— extended for RDF (see below).SchemaGraph.tsx/CytoscapeSchemaGraph.tsx— render OWL classes- properties from the ontology endpoint.
MappingPanel.tsx,ParameterPanel.tsx,ResultsPanel.tsx,QueryHistory.tsx,SampleQueries.tsx,ConnectionDialog.tsx,TenantSelector.tsx,SchemaWarningBanner.tsx,ClauseOutline.tsx,theme.ts— port verbatim with SPARQL-flavored copy.
RDF graph rendering rule (the key UX delta vs Cypher)
- In strict RDF every literal is a node. That clutters Cytoscape badly.
- Default render mode: collapse RDF literal nodes into properties on their subject node. Edges to literals become key/value pairs in the subject's tooltip / side panel.
- Provide a UI toggle ("Show literals as nodes") that opts back into the raw triple view for power users.
- IRI nodes keep their full IRI as a hover tooltip; the displayed label
is the local name (after
#or last/), orrdfs:labelwhen present.
Lang module
ui/src/lang/sparql.ts— wires the legacy SPARQL mode + a hover/completion provider that pulls term definitions from the ontology endpoint. Mirrorcypher.ts/cypher-completion.ts/cypher-hover.ts.
API client
ui/src/api/mirrors the Cypher project's API folder: typed wrappers around/translate,/execute,/execute-aql,/validate,/explain,/nl/sparql,/schema/owl,/connect. Usefetchwithcredentials: "include"and pass through the session token header.
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.
- 7d ago First seen · 59 lines · 0 tokens per session scan A 17cea04ab48e
400-frontend-ui is a cursor rule published in the GitHub repository arango-solutions/arango-sparql-py (2 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 736 tokens. 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.
Other cursor rules, from other repositories
ai-agent-specialist
Cursor rules for TypeScript, React, Node.js, clean architecture, testing, and WHY-oriented engineering guidance.
react-typescript
Rules for writing frontend code at PostHog (mostly React + Typescript with Kea).
react-typescript
Rules for writing frontend code at PostHog (mostly React + Typescript with Kea).
05-web-development
Use the following format for code blocks.
react-chakra-ui---typescript-usage
Guidance for using TypeScript with Chakra UI components in React. It covers typed component props, custom themes, editor support, and avoiding the unsafe any type.
rules.general
A project rule set for a Next.js application using TypeScript, React, Tailwind CSS, shadcn/ui, Radix UI, and Lucide icons.