ShadCN Project-Aware Generator
Read your ShadCN setup and generate components that use current names, patterns, and your installed variants.
Designp4
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro
Before & after
Same prompt, same agent — the only difference is the skill.
Prompt“Scaffold a settings screen using our ShadCN components.”
Beforegeneric AI agent
I can help you build a settings screen with ShadCN components. Typically you'd want to use components like Form for the input fields, maybe a Card for the layout, and Button for actions. You could organize settings into sections. You might use inputs, selects, and toggles depending on what you're configuring. I'd recommend checking the ShadCN documentation to see what components are available and their props. Do you have a specific design in mind? What settings need to be included? That would help me suggest the right components and structure.
Afterwith ShadCN Project-Aware Generator
/* Generated from project scan */
import { Button } from "@/components/ui/button"
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel } from "@/components/ui/form"
import { Input } from "@/components/ui/input"
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
import { Switch } from "@/components/ui/switch"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
export function SettingsPage() {
return (
<div className="space-y-6">
<Card>
<CardHeader>
<CardTitle>Account Settings</CardTitle>
<CardDescription>Manage your profile and preferences</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<FormField label="Email" type="email" defaultValue="user@example.com" />
<FormField label="Display Name" type="text" defaultValue="Sarah Chen" />
<FormField label="Timezone" component={Select} options={timezoneList} defaultValue="PST" />
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle>Notifications</CardTitle>
</CardHeader>
<CardContent>
<FormField label="Email notifications" component={Switch} defaultValue />
<FormField label="Weekly digest" component={Switch} defaultValue={false} />
</CardContent>
</Card>
<Button>Save Changes</Button>
</div>
)
}
COMPONENT INVENTORY USED:
• Button: 5 variants installed
• Card: 7 variants including compact, elevated, outline
• Form, Input, Select, Switch: all found, zero imports needed
• Timezone options: UTC, EST, PST automatically detected
• Theme colors: slate, blue, red (vars defined in Tailwind config)
• All imports resolved from installed repo: /components/ui/About this skill
name: shadcn-project-aware-generator description: Read your ShadCN setup and generate components that use current names, patterns, and your installed variants. Use when working on shadcn project-aware generator.
ShadCN Project-Aware Generator
Instead of Claude guessing at ShadCN component APIs from stale training data, this skill inspects the project, sees what components are installed, and generates matching JSX/TSX with correct imports and composition patterns. Use whenever you scaffold a new screen against an existing ShadCN codebase.
What you get
- Project scan
- Components inventory
- Correct-first-time TSX
- Theme-aware Tailwind classes
- Import statements
- Variant usage matrix
Customize your output
- Component library override: shadcn, radix, headlessui, custom
- Project scope: whole repo, this dir, one file
- Strict-only-shadcn: yes, no
- Framework: Next.js, Astro, Remix, Vite
- Add missing components: yes, ask, no
- Storybook stub: yes, no
Example output
'A settings screen scaffolded with correct Form, DropdownMenu, and DataTable imports and zero debug loops.'
Best for
React and Next.js devs building on ShadCN.
Note: Recommend telling Claude to only use this skill for a project to avoid cross-skill styling drift. High confidence.
SKILL.md preview
SKILL.md
---
name: shadcn-project-aware-generator
description: Use this skill whenever scaffolding a new screen or component against an existing ShadCN codebase, so generated JSX matches the project's actual installed components.
version: 1.0.0
category: Design
author: AgentVolt
license: proprietary
tags:
- design
- p4
---
# ShadCN Project-Aware Generator
Inspects the actual ShadCN setup in the project — installed components, naming, variant conventions — before generating any new UI, instead of guessing from generic training data.
## When to use
… (sign up to view the full skill)Sign up to view, copy, and install the full skill