Cursor Rules
Add this skill
npx mdskills install PatrickJS/cursor-react-components-creationClear workflow for external React component generation with integration guidance
1# Cursor Rules23## Whenever you need a React component451. Carefully consider the component's purpose, functionality, and design672. Think slowly, step by step, and outline your reasoning893. Check if a similar component already exists in any of the following locations10 1. packages/ui/src/components11 2. apps/spa/src/components12134. If it doesn't exist, generate a detailed prompt for the component, including:14 - Component name and purpose15 - Desired props and their types16 - Any specific styling or behavior requirements17 - Mention of using Tailwind CSS for styling18 - Request for TypeScript usage19205. URL encode the prompt.21226. Create a clickable link in this format:23 [ComponentName](https://v0.dev/chat?q={encoded_prompt})24257. After generating, adapt the component to fit our project structure:26 - Import27 - common shadcn/ui components from <ui_package_alias>@repo/ui/components/ui/</ui_package_alias>28 - app specific components from <app_package_alias>@/components</app_package_alias>29 - Ensure it follows our existing component patterns30 - Add any necessary custom logic or state management3132Example prompt template:33"Create a React component named {ComponentName} using TypeScript and Tailwind CSS. It should {description of functionality}. Props should include {list of props with types}. The component should {any specific styling or behavior notes}. Please provide the full component code."3435Remember to replace placeholders like <ui_package_path> and <app_package_alias> with the actual values used in your project.3637
Full transparency — inspect the skill content before installing.