Skip to content
cccskills
FreePublished on GitHub

clerk-auth

Padrões especializados para implementação de autenticação Clerk, middleware, organizações, webhooks e sincronização de usuários. Use quando: adicionar autenticação, auth do Clerk, autenticação de usuário, sign in, sign up.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Autenticação Clerk

Padrões

Configuração Next.js App Router

Configuração completa do Clerk para Next.js 14/15 App Router.

Inclui ClerkProvider, variáveis de ambiente e componentes básicos de sign-in/sign-up.

Componentes-chave:

  • ClerkProvider: Envolve o app fornecendo contexto de autenticação
  • <SignIn />, <SignUp />: Formulários de autenticação pré-construídos
  • <UserButton />: Menu de usuário com gerenciamento de sessão

Proteção de Rotas com Middleware

Proteja rotas usando clerkMiddleware e createRouteMatcher.

Melhores práticas:

  • Arquivo middleware.ts único na raiz do projeto
  • Use createRouteMatcher para grupos de rotas
  • auth.protect() para proteção explícita
  • Centralize toda lógica de autenticação no middleware

Autenticação em Server Components

Acesse o estado de autenticação em Server Components usando auth() e currentUser().

Funções-chave:

  • auth(): Retorna userId, sessionId, orgId, claims
  • currentUser(): Retorna objeto User completo
  • Ambas requerem clerkMiddleware configurado

⚠️ Pontos Críticos

ProblemaSeveridadeSolução
ProblemacríticaVeja documentação
ProblemaaltaVeja documentação
ProblemaaltaVeja documentação
ProblemaaltaVeja documentação
ProblemamédiaVeja documentação
ProblemamédiaVeja documentação
ProblemamédiaVeja documentação
ProblemamédiaVeja documentação

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Especialista em construir experiências 3D para a web - Three.js, React Three Fiber, Spline, WebGL e cenas 3D interativas. Cobre configuradores de produtos, portfólios 3D, websites imersivos e adição de profundidade às experiências web. Use quando: website 3D, three.js, WebGL, react three fiber, experiência 3D.

The English summary is being prepared. Showing the original description.

artubss/SKILLS-CLAUDE-CODE11Updated May 17, 2026

Quando o usuário quer planejar, projetar ou implementar um teste A/B ou experimento. Também use quando o usuário menciona "teste A/B", "split test", "experimento", "testar essa mudança", "copy variante", "teste multivariado" ou "hipótese". Para implementação de rastreamento, veja analytics-tracking.

The English summary is being prepared. Showing the original description.

artubss/SKILLS-CLAUDE-CODE11Updated May 17, 2026

Auditar e melhorar a acessibilidade web seguindo as diretrizes WCAG 2.1. Use quando solicitado para "melhorar acessibilidade", "auditoria a11y", "conformidade WCAG", "suporte a leitor de tela", "navegação por teclado" ou "tornar acessível".

The English summary is being prepared. Showing the original description.

artubss/SKILLS-CLAUDE-CODE11Updated May 17, 2026

Testes e benchmarking de agentes LLM incluindo testes comportamentais, avaliação de capacidades, métricas de confiabilidade e monitoramento em produção—onde até os melhores agentes alcançam menos de 50% em benchmarks do mundo real. Use quando: testes de agentes, avaliação de agentes, benchmark de agentes, confiabilidade de agentes, teste de agentes.

The English summary is being prepared. Showing the original description.

artubss/SKILLS-CLAUDE-CODE11Updated May 17, 2026

Criar, gerenciar e orquestrar agentes de IA usando o CLI AI Maestro. Use quando o usuário pedir para "criar agente", "listar agentes", "deletar agente", "hibernar agente", "despertar agente", "instalar plugin", "mostrar agente", "reiniciar agente" ou qualquer tarefa de gerenciamento do ciclo de vida do agente.

The English summary is being prepared. Showing the original description.

artubss/SKILLS-CLAUDE-CODE11Updated May 17, 2026

Gerencie múltiplos agentes CLI locais via sessões tmux (iniciar/parar/monitorar/atribuir) com agendamento compatível com cron.

The English summary is being prepared. Showing the original description.

artubss/SKILLS-CLAUDE-CODE11Updated May 17, 2026

See all skills by artubss

Report a problem with this skill