

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1You are an expert in Solidity, TypeScript, Node.js, Next.js 14 App Router, React, Vite, Viem v2, Wagmi v2, Shadcn UI, Radix UI, and Tailwind Aria.Key Principles:- Write concise, technical responses with accurate TypeScript examples.- Use functional, declarative programming. Avoid classes.- Prefer iteration and modularization over duplication.- Use descriptive variable names with auxiliary verbs (e.g., isLoading).- Use lowercase with dashes for directories (e.g., components/auth-wizard).- Favor named exports for components.- Use the Receive an Object, Return an Object (RORO) pattern.JavaScript/TypeScript:- Use "function" keyword for pure functions. Omit semicolons.- Use TypeScript for all code. Prefer interfaces over types. Avoid enums, use maps.- File structure: Exported component, subcomponents, helpers, static content, types.- Avoid unnecessary curly braces in conditional statements.- For single-line statements in conditionals, omit curly braces.- Use concise, one-line syntax for simple conditional statements (e.g., if (condition) doSomething()).- Prioritize error handling and edge cases: - Handle errors and edge cases at the beginning of functions. - Use early returns for error conditions to avoid deeply nested if statements. - Place the happy path last in the function for improved readability. - Avoid unnecessary else statements; use if-return pattern instead. - Use guard clauses to handle preconditions and invalid states early. - Implement proper error logging and user-friendly error messages. - Consider using custom error types or error factories for consistent error handling.Dependencies:- Next.js 14 App Router- Wagmi v2- Viem v2React/Next.js:- Use functional components and TypeScript interfaces.- Use declarative JSX.- Use function, not const, for components.- Use Shadcn UI, Radix, and Tailwind Aria for components and styling.- Implement responsive design with Tailwind CSS.- Use mobile-first approach for responsive design.- Place static content and interfaces at file end.- Use content variables for static content outside render functions.- Minimize 'use client', 'useEffect', and 'setState'. Favor RSC.- Use Zod for form validation.- Wrap client components in Suspense with fallback.- Use dynamic loading for non-critical components.- Optimize images: WebP format, size data, lazy loading.- Model expected errors as return values: Avoid using try/catch for expected errors in Server Actions. Use useActionState to manage these errors and return them to the client.- Use error boundaries for unexpected errors: Implement error boundaries using error.tsx and global-error.tsx files to handle unexpected errors and provide a fallback UI.- Use useActionState with react-hook-form for form validation.- Code in services/ dir always throw user-friendly errors that tanStackQuery can catch and show to the user.- Use next-safe-action for all server actions: - Implement type-safe server actions with proper validation. - Utilize the `action` function from next-safe-action for creating actions. - Define input schemas using Zod for robust type checking and validation. - Handle errors gracefully and return appropriate responses. - Use import type { ActionResponse } from '@/types/actions' - Ensure all server actions return the ActionResponse type - Implement consistent error handling and success responses using ActionResponse - Example: ```typescript 'use server' import { createSafeActionClient } from 'next-safe-action' import { z } from 'zod' import type { ActionResponse } from '@/app/actions/actions' const schema = z.object({ value: z.string() }) export const someAction = createSafeActionClient() .schema(schema) .action(async (input): Promise => { try { // Action logic here return { success: true, data: /* result */ } } catch (error) { return { success: false, error: error instanceof AppError ? error : appErrors.UNEXPECTED_ERROR, } } }) ```Key Conventions:1. Rely on Next.js App Router for state changes.2. Prioritize Web Vitals (LCP, CLS, FID).3. Minimize 'use client' usage: - Prefer server components and Next.js SSR features. - Use 'use client' only for Web API access in small components. - Avoid using 'use client' for data fetching or state management.Refer to Next.js documentation for Data Fetching, Rendering, and Routing best practices.
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Qwertic/cursorrulesrules/angular-typescript-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | testdocs | 34/100 | 14 days ago | |
| Qwertic/cursorrulesrules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 26 | .cursorrules | style | 38/100 | 14 days ago | |
| Qwertic/cursorrulesrules/tailwind-css-nextjs-guide-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | lint-formatstyletypesgit+1 | 42/100 | 14 days ago | |
| Qwertic/cursorrulesrules/typescript-nextjs-supabase-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | style | 34/100 | 14 days ago | |
| Qwertic/cursorrulesrules/typescript-vite-tailwind-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | style | 38/100 | 14 days ago | |
| Qwertic/cursorrulesrules/typescript-zod-tailwind-nextjs-cursorrules-prompt-/.cursorrules · 26 | .cursorrules | lint-formatstylearchtypes+5 | 49/100 | 14 days ago | |
| Qwertic/cursorrulesrules/unity-cursor-ai-c-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 16/100 | 14 days ago | |
| Qwertic/cursorrulesrules/webassembly-z80-cellular-automata-cursorrules-prom/.cursorrules · 26 | .cursorrules | no sections | 34/100 | 14 days ago | |
| Qwertic/cursorrulesrules/go-backend-scalability-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 40/100 | 14 days ago | |
| Qwertic/cursorrulesrules/graphical-apps-development-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | setupbuildstylearch+4 | 46/100 | 14 days ago | |
| Qwertic/cursorrulesrules/html-tailwind-css-javascript-cursorrules-prompt-fi/.cursorrules · 26 | .cursorrules | no sections | 30/100 | 14 days ago | |
| Qwertic/cursorrulesrules/javascript-chrome-apis-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 16/100 | 14 days ago | |
| Qwertic/cursorrulesrules/kubernetes-mkdocs-documentation-cursorrules-prompt/.cursorrules · 26 | .cursorrules | no sections | 16/100 | 14 days ago | |
| Qwertic/cursorrulesrules/laravel-tall-stack-best-practices-cursorrules-prom/.cursorrules · 26 | .cursorrules | stylearch | 50/100 | 14 days ago | |
| Qwertic/cursorrulesrules/linux-nvidia-cuda-python-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 30/100 | 14 days ago | |
| Qwertic/cursorrulesrules/nextjs-material-ui-tailwind-css-cursorrules-prompt/.cursorrules · 26 | .cursorrules | lint-format | 34/100 | 14 days ago | |
| Qwertic/cursorrulesrules/nextjs-tailwind-typescript-apps-cursorrules-prompt/.cursorrules · 26 | .cursorrules | no sections | 30/100 | 14 days ago | |
| Qwertic/cursorrulesrules/nextjs-vercel-supabase-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | buildteststylearch+10 | 64/100 | 14 days ago | |
| Qwertic/cursorrulesrules/nodejs-mongodb-jwt-express-react-cursorrules-promp/.cursorrules · 26 | .cursorrules | no sections | 30/100 | 14 days ago | |
| Qwertic/cursorrulesrules/pandas-scikit-learn-guide-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | style | 34/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/qwertic-cursorrules-rules-react-typescript-nextjs-nodejs-cursorrules-prompt-cursorrules)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.