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
Atualizado 10/23/2025
Estrelas
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.

Instalação
$ install --globalskills.sh
Uso

Depois de instalar, você pode usar esta skill executando o seguinte comando no terminal:

skills use nextjs-client-cookie-pattern