remix-storefront-components

remix-storefront-components is a cursor rule for Cursor from lambda-curry/medusa2-starter. It costs 938 tokens per session, scanned A, original, MIT.

A set of React component and styling patterns for Remix storefronts. It uses TypeScript and Tailwind CSS, a utility-based way to style web pages, to build reusable shop interfaces.

In plain words
What is it for?
Use it to build product cards and other reusable interface components, define their properties, compose them, and apply responsive Tailwind styles.
Why use it?
It helps keep storefront components consistent, responsive, accessible, and easier to maintain.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to build product cards and other reusable interface components, define their properties, compose them, and apply responsive Tailwind styles.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/lambda-curry/medusa2-starter/remix-storefront-components
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/lambda-curry/medusa2-starter

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 remix-storefront-components

README.md
[![agentmods](https://agentmods.dev/badge/rules/lambda-curry/medusa2-starter/remix-storefront-components/github.svg)](https://agentmods.dev/rules/lambda-curry/medusa2-starter/remix-storefront-components)
Your own site
<a href="https://agentmods.dev/rules/lambda-curry/medusa2-starter/remix-storefront-components"><img src="https://agentmods.dev/badge/rules/lambda-curry/medusa2-starter/remix-storefront-components/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 remix-storefront-components

Your own site · 80×15
<a href="https://agentmods.dev/rules/lambda-curry/medusa2-starter/remix-storefront-components"><img src="https://agentmods.dev/badge/rules/lambda-curry/medusa2-starter/remix-storefront-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 938 This file is loaded in full into every session.
When invoked 938 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.00938 $0.00938
Opus 5.5 $0.00375 $0.00375
Sonnet 5.5 $0.00188 $0.00188
Haiku 4.5 $0.00094 $0.00094

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

Security

Grade A, and why

remix-storefront-components 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 15d 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/remix-storefront-components.mdc · 148 lines

How it starts

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

Remix Storefront Component & Styling Patterns

You are an expert in React component development, TypeScript, and Tailwind CSS for building reusable, accessible, and performant UI components in e-commerce storefronts.

Core Principles

  • Write performant, accessible React components
  • Use TypeScript for type safety and better developer experience
  • Follow responsive design principles with Tailwind CSS
  • Create reusable component patterns and design systems
  • Prioritize user experience and accessibility
  • Implement proper component composition and prop patterns

Component Patterns

Product Components

// components/ProductCard.tsx
interface ProductCardProps {
  product: Product
  className?: string
}

export function ProductCard({ product, className }: ProductCardProps) {
  const variant = product.variants?.[0]
  const price = variant?.prices?.[0]
  
  return (
    <div className={cn("group relative", className)}>
      <div className="aspect-square overflow-hidden rounded-lg bg-gray-200">
        <img
          src={product.thumbnail || "/placeholder.jpg"}
          alt={product.title}
          className="h-full w-full object-cover object-center group-hover:scale-105 transition-transform"
        />
      </div>
      
      <div className="mt-4 space-y-2">
        <h3 className="text-sm font-medium text-gray-900">
          <Link to={`/products/${product.handle}`}>
            <span aria-hidden="true" className="absolute inset-0" />
            {product.title}
          </Link>
        </h3>
        
        {price && (
          <p className="text-sm text-gray-700">
            {formatPrice(price.amount, price.currency_code)}
          </p>
        )}
      </div>
    </div>
  )
}

Layout Components

// components/Layout.tsx
import { Outlet } from "react-router"
import { Header } from "./Header"
import { Footer } from "./Footer"

export function Layout() {
  return (
    <div className="min-h-screen flex flex-col">
      <Header />
      <main className="flex-1">
        <Outlet />
      </main>
      <Footer />
    </div>
  )
}

Read the full file on GitHub · 148 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. 15d ago First seen · 148 lines · 938 tokens per session scan A 5c0453170dc1

Subscribe to this mod's changes

remix-storefront-components is a cursor rule published in the GitHub repository lambda-curry/medusa2-starter (164 stars, last pushed 17d ago), licensed MIT. It adds 938 tokens to every session, about $0.0038 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-15.

Related

remix-storefront-components compared with cursor rules from other repositories

remix-storefront-components next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
remix-storefront-componentslambda-curry/medusa2-starterCursor rule16417d agoMITA938Cursor
medusa-cursorrulesXD3an/awesome-ai-coding-all-in-oneCursor rule142d agononeA414Cursor
vtex-io-vtex-io-storefront-reactvtex/skillsCursor rule471mo agononeA1,228Cursor
nextjs-react-tailwind-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A891Cursor
react-chakra-ui-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A248Cursor
react-styled-components-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A243Cursor
frontendWoJiSama/skill-based-architectureCursor rule63117d agoMITA5Cursor