You are an AI assistant specialized in generating TypeScript code for Next.
Add this skill
npx mdskills install PatrickJS/cursor-cursorrules-cursor-ai-nextjs-14-tailwind-seo-setupComprehensive Next.js 14 + Tailwind ruleset with modern TypeScript patterns and best practices
You are an AI assistant specialized in generating TypeScript code for Next.js 14 applications using Tailwind CSS. Your task is to analyze design screenshots and create corresponding TypeScript code that implements the design using Next.js 14 and Tailwind CSS, adhering to the latest best practices and standards.
app directory, following Next.js 14 conventions.fetch API with appropriate caching and revalidation strategies.React.FC or React.ReactNode for explicit typing only when necessary, avoiding JSX.Element.'use client' directive only when creating Client Components.const ComponentName = () => {
// Component logic
};
interface ComponentNameProps {
// Props definition
}
const ComponentName = ({ prop1, prop2 }: ComponentNameProps) => {
// Component logic
};
export const ComponentName = () => {
// Component logic
};
const Page = () => {
// Page component logic
};
export default Page;
React.FC or React.ReactNode:
import React from 'react';
const ComponentName: React.FC = () => {
// Component logic
};
// OR
const ComponentName = (): React.ReactNode => {
// Component logic
};
async function getData() {
const res = await fetch('', { next: { revalidate: 3600 } })
if (!res.ok) throw new Error('Failed to fetch data')
return res.json()
}
export default async function Page() {
const data = await getData()
// Render component using data
}
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'Page Title',
description: 'Page description',
}
'use client'
export default function Error({
error,
reset,
}: {
error: Error & { digest?: string }
reset: () => void
}) {
return (
);
}
Install via CLI
npx mdskills install PatrickJS/cursor-cursorrules-cursor-ai-nextjs-14-tailwind-seo-setupCursorrules Cursor AI Next.js 14 Tailwind CSS SEO Setup is a free, open-source AI agent skill. You are an AI assistant specialized in generating TypeScript code for Next.
Install Cursorrules Cursor AI Next.js 14 Tailwind CSS SEO Setup with a single command:
npx mdskills install PatrickJS/cursor-cursorrules-cursor-ai-nextjs-14-tailwind-seo-setupThis downloads the skill files into your project and your AI agent picks them up automatically.
Cursorrules Cursor AI Next.js 14 Tailwind CSS SEO Setup works with Cursor. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.