007-ui-styling

007-ui-styling is a cursor rule for Cursor from passionmuse16/food-tracker. It costs 152 tokens per session, scanned A, original, MIT.

A set of front-end rules for React interfaces, covering component libraries, responsive layouts, light and dark themes, and image loading. React is a JavaScript library for building user interfaces.

In plain words
What is it for?
Use it when building or reviewing pages with Tailwind, Shadcn UI, or Hero UI, including mobile layouts, themes, loading behavior, and image optimization.
Why use it?
It gives the project consistent choices for styling and layout while identifying practices that can reduce unnecessary browser work.

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/passionmuse16/food-tracker/007-ui-styling
Clone the repo
git clone --depth 1 https://github.com/passionmuse16/food-tracker

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 007-ui-styling

README.md
[![agentmods](https://agentmods.dev/badge/rules/passionmuse16/food-tracker/007-ui-styling.svg)](https://agentmods.dev/rules/passionmuse16/food-tracker/007-ui-styling)
Your own site
<a href="https://agentmods.dev/rules/passionmuse16/food-tracker/007-ui-styling"><img src="https://agentmods.dev/badge/rules/passionmuse16/food-tracker/007-ui-styling.svg" alt="Measured on agentmods" height="20"></a>
Per session 152 This file is loaded in full into every session.
When invoked 152 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.1 $0.00152 $0.00152
Opus 5 $0.00076 $0.00076
Sonnet 5 $0.00030 $0.00030
Haiku 4.5 $0.00015 $0.00015

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

Security

Grade A, and why

007-ui-styling 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 6d 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/007-ui-styling.mdc · 24 lines

What it actually says

UI and Styling

Component Libraries

  • Use Shadcn UI, Hero-UI, and Tailwind for components and styling.
  • Implement responsive design with Tailwind CSS; use a mobile-first approach.
  • Optimize for light and dark mode.

Layout Guidelines

  • When using a "container" class, use the "mx-auto" class to center the content.

Performance Optimization

  • Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components (RSC).
  • Wrap client components in Suspense with fallback.
  • Use dynamic loading for non-critical components.
  • Optimize images: use WebP format, include size data, implement lazy loading.
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. 6d ago First seen · 24 lines · 152 tokens per session scan A 547cb0212166

Subscribe to this mod's changes

007-ui-styling is a cursor rule published in the GitHub repository passionmuse16/food-tracker (2 stars, last pushed 10mo ago), licensed MIT. It adds 152 tokens to every session, about $0.0008 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.