nextjs-shadcn
Skill72 starsChanged 18 days agoMITView on GitHub
Builds distinctive Next.js interfaces with shadcn/ui, choosing typography, styling and purposeful visual effects for the product. Use when creating or polishing a Next.js + shadcn app, page or component, including themes, presets, backgrounds and design-system lint. Uses frontend-design for substantial visual direction and icons for asset sourcing.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- mm-mazhar/agent-skills-configtheir own version, first seen Feb 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mm-mazhar/agent-skills-config★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/ai-sdk-6/references/agents.mdAGENTS.md
- skills/ai-sdk-7/references/agents.mdAGENTS.md
- skills/openai-agents-sdk/references/agents.mdAGENTS.md
- skills/react-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-view-transitions/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-harness-reviewSkill
- ai-appSkill
- ai-elementsSkill
- ai-sdk-6Skill
- ai-sdk-7Skill
- ai-sdkSkill
- cache-componentsSkill
- chrome-devtoolsSkill
- frontend-designSkill
- goSkill
- handoffSkill
- hetzner-cloudSkill
- iconsSkill
- next-best-practicesSkill
- nextjs-chatbotSkill
- nextjs-seoSkill
- openai-agents-sdkSkill
- postgres-semantic-searchSkill
- react-best-practicesSkill
- shadcnSkill
- supabase-postgres-best-practicesSkill
- vercel-react-view-transitionsSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Keep the user's task clear:
- Distinctive: line 21
Keep useful status, navigation, explanations and disclosures.
- Distinctive: line 22
Use cards, sections and CTAs because the content needs them, rather than filling a template.
- Very specific: line 23
Use brief motion to connect an action with its result, expanded details or active navigation.
- Distinctive: line 32
Read styling.md when deciding on fonts, theme customization, backgrounds, media or motion.
- Very specific: line 36
Use Bun for packages and scripts in new projects: bun install, bun add, bun run <script> and bunx --bun <cli>.
- Very specific: line 44
Prefer documentation matching the installed Next.js version, including node_modules/next/dist/docs/ when present.
- Distinctive: line 48
Keep Client Component boundaries as narrow as practical.
- Very specific: line 49
Keep shared chrome in layouts and route content near its route.
- Distinctive: line 51
Use semantic theme tokens and existing component variants.
- Distinctive: line 53
Read architecture.md for routing, Server/Client boundaries and caching.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Next.js + shadcn/ui
Build an interface with a visual identity that fits its content, audience and task. These are design defaults, not a fixed page recipe; the user's direction and an established design system take precedence.
Choose the visual direction
For a new view or substantial redesign, use frontend-design to choose the typography, palette and composition before building. Preserve a working visual system during smaller edits.
Choose fonts for the product's tone, reading density and language support. Use shadcn/create to choose the component style, body and heading fonts, icon family and theme together. Compare the preview with representative content, then make deliberate choices about type scale, spacing and hierarchy. Neither the default preset nor an unusual font guarantees a good design.
Record the chosen preset, theme, fonts and icon family in the project's design notes; preserve that direction unless the brief changes. References and images are project-specific. Component style and icon family are separate choices; styling.md covers them.
Keep the user's task clear:
- Cut decorative badges, repeated headings, empty marketing claims and helper text that explains the obvious.
- Keep useful status, navigation, explanations and disclosures.
- Use cards, sections and CTAs because the content needs them, rather than filling a template.
- Use brief motion to connect an action with its result, expanded details or active navigation. Reuse existing interaction components; styling.md covers Motion, GSAP and
vercel-react-view-transitionsfor different animation needs. - Reuse the project's icon family. Use
iconswhen sourcing new UI icons, file-type icons or official brand assets; an icon does not automatically replace a clear label.
Use atmosphere when it helps
Grid and dot patterns, soft background lights, gradients, custom shapes, textures, illustrations and video are available design tools. Use them when they suit the brief, strengthen the product's identity or clarify a section. A distinctive background can be the right choice; a quiet page can be too.
Keep effects behind content, consistent with the palette and proportionate to the page. Use available image or video generation tools when purpose-made media would improve the result, or reuse suitable real assets. Choose the asset and implementation for the task; there is no mandatory animation library or image quota.
Read styling.md when deciding on fonts, theme customization, backgrounds, media or motion.
Work from the actual project
Use Bun for packages and scripts in new projects: bun install, bun add, bun run <script> and bunx --bun <cli>. This is the user's default; do not ask them to choose a package manager again. In existing projects, follow packageManager, the lockfile, component conventions and configured aliases.
Inspect components.json and the installed components before editing. Use the shadcn skill and the CLI's info/docs commands for project metadata, component documentation and registry guidance.
Component APIs depend on the primitive base (init --base base|radix|aria; Base UI is the default): Base UI uses render where Radix commonly uses asChild. Preserve the existing base and consult its docs.
shadcn docs, add and view need the registry over the network; docs returns URLs rather than text. Offline, the project's own components/ui source and the primitive package's type definitions are the API reference, and shadcn <command> --help, preset decode, migrate --list and the installed shadcn/tailwind.css still work.
Prefer documentation matching the installed Next.js version, including node_modules/next/dist/docs/ when present. Use available Next.js dev tools for runtime errors and route context rather than relying on remembered APIs.
Keep the integration sound
- Keep Client Component boundaries as narrow as practical; providers and interactive subtrees may need a higher boundary.
- Keep shared chrome in layouts and route content near its route. A
(protected)route group does not enforce authorization. - Authenticate, authorize and validate inside Server Actions and data access. Choose caching from freshness and access requirements.
- Use semantic theme tokens and existing component variants. Put deliberate design-system changes in the theme or component definitions.
Read architecture.md for routing, Server/Client boundaries and caching; sidebar.md for shared sidebar layouts; project-setup.md for scaffolding and presets.
Verify the result
Inspect the rendered view at relevant mobile and desktop widths. Check composition, wrapping, overflow, controls and the states affected by the change. Preserve accessibility, focus and reduced-motion behavior; screenshots and DOM inspection answer different questions. Own the visual finish: compare the real view and animation intermediates with the project's direction, and fix observed defects before delivery.
Run the project's checks. If @shadcn/lint is configured, use its feedback to keep the design system coherent. For a new Tailwind v4 project, or recurring theme drift, consider integrating it with the existing linter. Configure rules for the intended design; custom backgrounds and media may need deliberate exceptions. See shadcn-platform.md for lint setup and optional shadcn utilities.
Report what changed and what was verified.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

