frontend-guidelines

frontend-guidelines is a cursor rule for Cursor from Oriolshhh/runware-image-mcp. It costs 18 tokens per session (788 once invoked), scanned A, original, MIT.

A set of guidelines for building and reviewing user interfaces in a web application. It covers component structure, browser behavior, accessibility, responsive layouts, and states such as loading, errors, and empty results.

In plain words
What is it for?
It is for implementing or reviewing pages, components, forms, navigation, client-side state, responsive behavior, animations, and accessibility.
Why use it?
It helps prevent fragile interfaces that work only in the normal case or are difficult to use with a keyboard, on small screens, or during slow network requests.

Cursor rule for Cursor

Written for Cursor: installed under .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/oriolshhh/runware-image-mcp/frontend-guidelines
Clone the repo
git clone --depth 1 https://github.com/Oriolshhh/runware-image-mcp

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 frontend-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/rules/oriolshhh/runware-image-mcp/frontend-guidelines.svg)](https://agentmods.dev/rules/oriolshhh/runware-image-mcp/frontend-guidelines)
Your own site
<a href="https://agentmods.dev/rules/oriolshhh/runware-image-mcp/frontend-guidelines"><img src="https://agentmods.dev/badge/rules/oriolshhh/runware-image-mcp/frontend-guidelines.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00018 $0.00788
Opus 5 $0.00009 $0.00394
Sonnet 5 $0.00004 $0.00158
Haiku 4.5 $0.00002 $0.00079

Measured 2d ago against content hash 21771a361a83, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

frontend-guidelines 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 2d 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/frontend-guidelines.mdc · 80 lines

How it starts

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

Skill: frontend-guidelines

Frontend Guidelines

Purpose

Keep frontend implementation usable, accessible, maintainable, and coherent with the product's design system instead of accumulating fragile component spaghetti.

When to use it

  • Implementing or reviewing rendered UI, routes, components, client state, forms, navigation, design-system usage, or visual behavior.
  • Changing loading, empty, error, success, permission, or offline states.
  • Adding responsive behavior, animation, browser interactions, or accessibility behavior.
  • Improving an existing interface through /frontend-design, /improve-ui-ux, /ui-review, or frontend tasks inside /implement.

Instructions

  1. Reuse existing design tokens, primitives, layout patterns, and component conventions before creating new styles or components.
  2. Separate responsibilities: data loading, state transitions, presentation, form validation, and side effects should not collapse into one tangled component when they change for different reasons.
  3. Model the full state matrix: loading, empty, success, error, validation, permission, disabled, optimistic/pending, and long-content states.
  4. Build semantic, keyboard-operable UI first. Controls need names, roles, focus order, visible focus, labels, error association, and recoverability.
  5. Make layout content-driven and responsive. Verify mobile, tablet/desktop, zoom/reflow, long text, missing media, and narrow containers.
  6. Keep client state minimal and colocated. Lift state only when multiple owners truly need it; avoid duplicating server/cache state in local component state.
  7. Preserve performance basics: avoid unnecessary rerenders, unbounded effects, layout thrash, oversized bundles, and client-only work that could stay server side in the repository's framework.
  8. Use motion only when it communicates state or improves comprehension. Respect reduced motion and avoid blocking interaction.
  9. Validate in a real browser for user-facing changes. Check relevant viewports, states, keyboard paths, console errors, network failures, and screenshots when visual quality matters.
  10. Add tests where stable: component/interaction tests for behavior, integration tests for flows, and visual/browser evidence for presentation-sensitive work.

Read the full file on GitHub · 80 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. 2d ago First seen · 80 lines · 18 tokens per session scan A 21771a361a83

Subscribe to this mod's changes

frontend-guidelines is a cursor rule published in the GitHub repository Oriolshhh/runware-image-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 788 once invoked, about $0.0001 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-09-03.