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/luiscielak/ai-product-design-rulesWrote 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/luiscielak/ai-product-design-rules/06-ui-proto)<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.
<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>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.00048 | $0.01115 |
| Opus 5.5 | $0.00019 | $0.00446 |
| Sonnet 5.5 | $0.00010 | $0.00223 |
| Haiku 4.5 | $0.00005 | $0.00112 |
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.
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(fromdesign/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)
- If new: create Next.js app in
- 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
- Codebase changes:
- Standard Setup Commands (adjust to existing project):
- Create app (if needed).
--tailwindsets up Tailwind CSS v4, which is configured in CSS (@import "tailwindcss"and@theme), so there is notailwind.config.jsortailwindcss initstep:# 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
- Create app (if needed).
- Implementation Guidelines:
- Use App Router, colocation in
src/app/(routes)/, and server components where natural - Keep components in
src/components/uialigned with shadcn conventions - Use Tailwind utility classes and extracted class-variants when complexity grows
- Use
sonnerfor toasts (shadcn's oldertoastcomponent is deprecated) - State: minimal client state (React), mock data via
src/app/apiroutes 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
- Use App Router, colocation in
- 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
- Project runs:
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.
- 5d ago First seen · 76 lines · 48 tokens per session scan A cda6cc712efa
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.
Other cursor rules, from other repositories
nextjs-react-tailwind-cursorrules-prompt-file
Cursor rules for Next.js development with React and Tailwind CSS integration.
chakra-ui-best-practices
A set of rules for building React interfaces with Chakra UI, a component library for styled and accessible user interfaces. It covers themes, responsive layouts, accessibility, performance, and reusable components.
react-components-creation-cursorrules-prompt-file
Cursor rules for React component creation and development.
react-chakra-ui-cursorrules-prompt-file
Cursor rules for React development with Chakra UI integration.
react-styled-components-cursorrules-prompt-file
Cursor rules for React development with Styled Components integration.
react-chakra-ui---folder-structure
A standard folder layout for React and Chakra UI projects, including separate locations for components, pages, themes, hooks, utilities, and assets. It also defines how Chakra UI theme files are grouped.