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/maccman/ai-monorepo-scaffoldWrote 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/maccman/ai-monorepo-scaffold/shadcn-components)<a href="https://agentmods.dev/rules/maccman/ai-monorepo-scaffold/shadcn-components"><img src="https://agentmods.dev/badge/rules/maccman/ai-monorepo-scaffold/shadcn-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.
<a href="https://agentmods.dev/rules/maccman/ai-monorepo-scaffold/shadcn-components"><img src="https://agentmods.dev/badge/rules/maccman/ai-monorepo-scaffold/shadcn-components.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.00008 | $0.01231 |
| Opus 5 | $0.00004 | $0.00616 |
| Sonnet 5 | $0.00002 | $0.00246 |
| Haiku 4.5 | $0.00001 | $0.00123 |
Grade A, and why
shadcn-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 10d 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.
The following official shadcn-ui components are available. Please check to see if they are installed under ./apps/web/components/ui before installing them with pnpm dlx shadcn@latest add <component-id>.
Notice that The 'shadcn-ui' package is deprecated. Please use the 'shadcn' package instead. For example:
pnpm dlx shadcn@latest add progress --cwd apps/web
YOU MUST use pnpm dlx shadcn@latest when installing shadcn packages.
Docs for each components are available at https://ui.shadcn.com/docs/components/<component-id>. Fetch and read the docs before using the component so that your knowledge is up-to-date.
accordion- Accordion: Stack of headings that expand/collapse to reveal hidden content.alert- Alert: Static call-out box for status or info messages.alert-dialog- Alert Dialog: Modal that interrupts the flow to confirm or warn about critical actions.aspect-ratio- Aspect Ratio: Wrapper that locks children to a fixed width-to-height ratio (great for responsive media).avatar- Avatar: Small user/asset image or initials placeholder.badge- Badge: Tiny label for counts or status (e.g. "New", "3").breadcrumb- Breadcrumb: Navigation trail that shows "where you are" in the app hierarchy.button- Button: Click/tap element that triggers an action.calendar- Calendar: Stand-alone calendar view, used by Date Picker or on its own.card- Card: Content container with optional header/body/footer.carousel- Carousel: Horizontal slider that cycles through a set of items or images.chart- Chart: Light wrapper for quick bar/line/pie visualizations.checkbox- Checkbox: Square control for on/off selection of independent items.collapsible- Collapsible: Utility that hides/reveals content with smooth height animation.combobox- Combobox: Autocomplete text input that filters a long list and lets users pick an item.command- Command Palette: VS Code-style keyboard overlay for fuzzy-searching actions.context-menu- Context Menu: Right-click (long-press) menu with context-specific commands.data-table- Data Table: Table with helpers for sorting, filtering and pagination.date-picker- Date Picker: Input field that pops a calendar for choosing dates or ranges.dialog- Dialog: Generic modal overlay for arbitrary interactive content.drawer- Drawer: Slide-in panel (often from edge/bottom) for secondary workflows.dropdown-menu- Dropdown Menu: Triggered list of options/actions that auto-dismisses on selection.form- Form: Helpers and styles for accessible, validated forms.hover-card- Hover Card: Lightweight popover that appears on hover/focus to show extra info.input- Input: Standard single-line text field.input-otp- Input OTP: Grouped inputs optimised for entering one-time pass-codes.label- Label: Accessible label element for any form control.menubar- Menubar: Horizontal desktop-app-style menu with dropdown sub-menus.navigation-menu- Navigation Menu: Multi-level nav bar with active indicators and hover previews.pagination- Pagination: Next/previous + numbered page controls for paginated data sets.popover- Popover: Non-modal floating panel anchored to a trigger (e.g. emoji picker).progress- Progress: Linear bar that shows completion percentage.radio-group- Radio Group: Set of mutually-exclusive selection buttons.resizable- Resizable: Wrapper that lets users drag to resize split panes.scroll-area- Scroll Area: Augments native scrolling with custom styling and shadows.select- Select: Styled single-select dropdown (native replacement).separator- Separator: Horizontal or vertical rule dividing content.sheet- Sheet: Mobile-friendly slide-up bottom sheet (from tiny to full-screen).sidebar- Sidebar: Vertical navigation rail that can collapse/expand.skeleton- Skeleton: Grey placeholder shapes shown while real content loads.slider- Slider: Draggable handle on a track for numeric values or ranges.sonner- Sonner: Opinionated toast component (thin wrapper around the Sonner library).switch- Switch: Toggle switch for true/false settings.table- Table: Basic static table markup & styling.tabs- Tabs: Tab strip that swaps between associated panels.textarea- Textarea: Multi-line text input.toast- Toast: Ephemeral message that pops at screen edge and auto-dismisses.toggle- Toggle: Pressable button that stays pressed/un-pressed to indicate state.toggle-group- Toggle Group: Collection of toggles acting as single- or multi-select controls.tooltip- Tooltip: Small hover/focus label supplying helper text.spinner- Spinner: An indicator to show a loading state.kbd- Kbd: Display a keyboard key or group of keys.button-group- Button Group: A group of buttons for actions and split buttons.input-group- Input Group: Input with icons, buttons, labels and more.field- Field: One component. All your forms.item- Item: Display lists of items, cards, and more.empty- Empty: Use this one for empty states.
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.
- 10d ago First seen · 76 lines · 8 tokens per session scan A 3f825a6780f4
shadcn-components is a cursor rule published in the GitHub repository maccman/ai-monorepo-scaffold (304 stars, last pushed 10mo ago), licensed MIT. It adds 8 tokens to every session and 1,231 once invoked, about $0.0000 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-30.
Other cursor rules, from other repositories
windsurfrules
Create detailed components with these requirements.
state-management
Use the following stack. Do not introduce or recommend Redux or React Context for shared/global state.
mobx
Definitive guidelines for structuring MobX applications with React, focusing on predictable state management, optimal rendering, and modern best practices.
tanstack-start-guide
TanStack Start best practices emphasizing client-first architecture, type safety, and modern React patterns.
new-component
Workflow for creating new React components.
middleware-auth
Next.js middleware auth — prevents auth logic being placed in middleware instead of route handlers.