home/categories/full-stack/wsimmonds-claude-nextjs-skills-nextjs-client-cookie-pattern-skill-md
full-stackdevelopment

nextjs-client-cookie-pattern

Pattern for client components calling server actions to set cookies in Next.js. Covers the two-file pattern of a client component with user interaction (onClick, form submission) that calls a server action to modify cookies. Use when building features like authentication, preferences, or session management where client-side triggers need to set/modify server-side cookies.

wsimmonds
maintainer
wsimmonds
Mis à jour 10/23/2025
Étoiles
83
Forks
14
quick start

Installation and usage

Pattern for client components calling server actions to set cookies in Next.js. Covers the two-file pattern of a client component with user interaction (onClick, form submission) that calls a server action to modify cookies. Use when building features like authentication, preferences, or session management where client-side triggers need to set/modify server-side cookies.

Installation
$ install --globalskills.sh
Utilisation

Après l'installation, vous pouvez utiliser ce skill en exécutant la commande suivante dans votre terminal :

skills use nextjs-client-cookie-pattern