Prompt Generation Rules:
Add this skill
npx mdskills install PatrickJS/cursor-tailwind-css-nextjs-guideComprehensive Next.js/TypeScript ruleset with strong architectural guidance but lacks trigger conditions
1Prompt Generation Rules:23- Analyze the component requirements thoroughly4- Include specific DaisyUI component suggestions5- Specify desired Tailwind CSS classes for styling6- Mention any required TypeScript types or interfaces7- Include instructions for responsive design8- Suggest appropriate Next.js features if applicable9- Specify any necessary state management or hooks10- Include accessibility considerations11- Mention any required icons or assets12- Suggest error handling and loading states13- Include instructions for animations or transitions if needed14- Specify any required API integrations or data fetching15- Mention performance optimization techniques if applicable16- Include instructions for testing the component17- Suggest documentation requirements for the component1819General Component Creation Guidelines:2021- Prioritize reusability and modularity22- Ensure consistent naming conventions23- Follow React best practices and patterns24- Implement proper prop validation25- Consider internationalization requirements26- Optimize for SEO when applicable27- Ensure compatibility with different browsers and devices2829General Rules:3031- Enable strict TypeScript (strict: true in tsconfig.json)32- Avoid 'any', prefer 'unknown' with runtime checks33- Explicitly type function inputs and outputs34- Use advanced TypeScript features (type guards, mapped types, conditional types)35- Organize project structure: components, pages, hooks, utils, styles, contracts, services36- Separate concerns: presentational components, business logic, side effects37- Use Biome for code formatting and linting38- Configure Biome as a pre-commit hook3940Next.js Rules:4142- Use dynamic routes with bracket notation ([id].tsx)43- Validate and sanitize route parameters44- Prefer flat, descriptive routes45- Use getServerSideProps for dynamic data, getStaticProps/getStaticPaths for static46- Implement Incremental Static Regeneration (ISR) where appropriate47- Use next/image for optimized images48- Configure image layout, priority, sizes, and srcSet attributes4950TypeScript Rules:5152- Enable all strict mode options in tsconfig.json53- Explicitly type all variables, parameters, and return values54- Use utility types, mapped types, and conditional types55- Prefer 'interface' for extendable object shapes56- Use 'type' for unions, intersections, and primitive compositions57- Document complex types with JSDoc58- Avoid ambiguous union types, use discriminated unions when necessary5960TailwindCSS and DaisyUI Rules:6162- Use TailwindCSS utility classes for styling63- Avoid custom CSS unless absolutely necessary64- Maintain consistent order of utility classes65- Use Tailwind's responsive variants for adaptive designs66- Leverage DaisyUI components for rapid development67- Customize DaisyUI components only when necessary68- Define and use design tokens in tailwind.config.js6970Starknet React Rules:7172- Centralize blockchain connection management73- Implement automatic reconnection and error handling74- Use React hooks for transaction status management75- Provide clear UI feedback for blockchain interactions76- Implement comprehensive error handling for blockchain operations7778Cairo Rules:7980- Design modular and maintainable contract structures81- Optimize for gas efficiency82- Minimize state changes and storage access83- Document all contracts and functions thoroughly84- Explain complex logic and implementation choices8586Development Process:8788- Conduct thorough code reviews via Pull Requests89- Include clear PR descriptions with context and screenshots90- Implement comprehensive automated testing (unit, integration, e2e)91- Prioritize meaningful tests over high coverage numbers92- Use Conventional Commits for commit messages (feat:, fix:, docs:, chore:)93- Make small, incremental commits for easier review and debugging9495Biome Rules:9697- Use Biome for code formatting and linting98- Configure Biome as a pre-commit hook99- Follow Biome's recommended rules100- Customize Biome configuration in biome.json as needed101- Ensure consistent code style across the project102- Run Biome checks before committing changes103- Address all Biome warnings and errors promptly104- Use Biome's organize imports feature to maintain clean import statements105- Leverage Biome's advanced linting capabilities for TypeScript106- Integrate Biome into the CI/CD pipeline for automated checks107- Keep Biome updated to the latest stable version108- Use Biome's ignore patterns to exclude specific files or directories when necessary109110
Full transparency — inspect the skill content before installing.