06-ui-proto

06-ui-proto is a cursor rule for Cursor from luiscielak/ai-product-design-rules. It costs 48 tokens per session (1,115 once invoked), scanned A, original, MIT.

A guide for building a runnable clickable prototype from mid-fidelity wireframes and high-fidelity visual designs. It covers pages, routes, user flows, components, theming, and basic form behavior.

In plain words
What is it for?
Use it to build a Next.js prototype with Tailwind and shadcn/ui, including primary flows, mock data, loading and empty states, and keyboard and focus handling.
Why use it?
It removes the need to translate design files into an interactive demonstration by defining how the prototype should be implemented.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to build a Next.js prototype with Tailwind and shadcn/ui, including primary flows, mock data, loading and empty states, and keyboard and focus handling.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/luiscielak/ai-product-design-rules/06-ui-proto
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/luiscielak/ai-product-design-rules

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 06-ui-proto

README.md
[![agentmods](https://agentmods.dev/badge/rules/luiscielak/ai-product-design-rules/06-ui-proto/github.svg)](https://agentmods.dev/rules/luiscielak/ai-product-design-rules/06-ui-proto)
Your own site
<a href="https://agentmods.dev/rules/luiscielak/ai-product-design-rules/06-ui-proto"><img src="https://agentmods.dev/badge/rules/luiscielak/ai-product-design-rules/06-ui-proto/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 06-ui-proto

Your own site · 80×15
<a href="https://agentmods.dev/rules/luiscielak/ai-product-design-rules/06-ui-proto"><img src="https://agentmods.dev/badge/rules/luiscielak/ai-product-design-rules/06-ui-proto.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,115 The whole file, excluding the scripts and references it only reads on demand.
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.00048 $0.01115
Opus 5.5 $0.00019 $0.00446
Sonnet 5.5 $0.00010 $0.00223
Haiku 4.5 $0.00005 $0.00112

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

Security

Grade A, and why

06-ui-proto 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 5d 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/06-ui-proto.mdc · 76 lines

How it starts

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

UI Engineer → Generate Clickable Prototype (shadcn + Tailwind)

  • Command: /ui-proto
  • Role: UI Engineer
  • Purpose: Implement a runnable prototype with shadcn/ui components and Tailwind, covering primary flows.
  • Prerequisites: Mid-fi wireframes (design/wireframes/midfi/) and hi-fi design (design/ui-design/) should exist. If missing, ask user if they want to create them first or proceed with provided inputs.
  • Required Inputs:
    • framework (default: "Next.js App Router", latest stable)
    • package_manager (npm|pnpm|yarn, default: "npm")
    • ts (default: true)
    • pages (list of pages to implement)
    • components (from design/wireframes/midfi/components.md)
    • routes/flows (primary user flows to implement)
    • data (mock or live, default: "mock")
    • theming (light|dark|both, default: "both")
  • Behavior:
    • Detect existing Next.js/Tailwind setup; otherwise scaffold with safe defaults
    • Configure Tailwind and shadcn/ui; map tokens from mid-fi to the Tailwind theme when feasible
    • Reference hi-fi design for styling and component specifications
    • Build pages and flows with real keyboard/focus management and basic form validation
    • Implement loading, empty, and error states for all primary interactions
    • If the user picks a different framework (for example a single static HTML file), follow it and keep the same acceptance criteria where they apply
    • Note: When working within a project directory, use relative paths (e.g., app/, docs/, design/)
  • Output:
    • Codebase changes:
      • If new: create Next.js app in app/ directory (relative to project root), Tailwind, and shadcn/ui setup
      • Install and add shadcn components per components.md
      • Implement routes and pages matching screens; basic mock data and API stubs
      • Apply theme from hi-fi design (colors, spacing, typography)
    • Deliverables:
      • app/README-proto.md (relative to project directory) with:
        • Setup commands
        • Component list installed
        • Routes implemented
        • Known gaps and next steps
        • How to run the prototype
  • Standard Setup Commands (adjust to existing project):
    • Create app (if needed). --tailwind sets up Tailwind CSS v4, which is configured in CSS (@import "tailwindcss" and @theme), so there is no tailwind.config.js or tailwindcss init step:
      # When working within project directory:
      npx create-next-app@latest app --ts --eslint --src-dir --app --tailwind --no-import-alias
      # Or from workspace root:
      npx create-next-app@latest projects/{project_name}/app --ts --eslint --src-dir --app --tailwind --no-import-alias
      
    • Tailwind (only if the existing app doesn't have it):
      npm install tailwindcss @tailwindcss/postcss postcss
      # Add "@tailwindcss/postcss" to postcss.config.mjs and @import "tailwindcss" in src/app/globals.css
      
    • shadcn/ui:
      npx shadcn@latest init -y
      npx shadcn@latest add button card input label form select dialog sheet sonner tabs table navigation-menu dropdown-menu tooltip avatar badge skeleton pagination textarea checkbox radio-group switch
      
  • Implementation Guidelines:
    • Use App Router, colocation in src/app/(routes)/, and server components where natural
    • Keep components in src/components/ui aligned with shadcn conventions
    • Use Tailwind utility classes and extracted class-variants when complexity grows
    • Use sonner for toasts (shadcn's older toast component is deprecated)
    • State: minimal client state (React), mock data via src/app/api routes or local fixtures
    • Accessibility: use proper roles, labels, and focus management; ensure contrast AA
    • Follow design tokens from mid-fi and hi-fi design files
    • Implement all primary user flows from PRD
  • Acceptance:
    • Project runs: npm run dev (or equivalent for chosen package manager)
    • Core flows clickable end-to-end with loading/empty/error states
    • No TypeScript or ESLint errors; basic responsiveness for mobile and desktop
    • Keyboard navigation works for interactive controls; focus outline visible
    • Theme matches hi-fi design specifications
    • All primary screens from wireframes are implemented

Read the full file on GitHub · 76 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. 5d ago First seen · 76 lines · 48 tokens per session scan A cda6cc712efa

Subscribe to this mod's changes

06-ui-proto is a cursor rule published in the GitHub repository luiscielak/ai-product-design-rules (4 stars, last pushed 5d ago), licensed MIT. It adds 48 tokens to every session and 1,115 once invoked, about $0.0002 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-10-28.