Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clerk-hello-world

Skill by jeremylongshore

Creates a first authenticated request with Clerk to confirm an integration works. It covers server components, client components, API routes, server actions and Express.js. Built for developers testing auth or verifying a Clerk setup.

  • Score 77
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clerk-hello-world

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clerk-hello-world ~/.claude/skills/clerk-hello-world

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clerk-hello-world in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Clerk Hello World is an agent skill for making first authenticated requests with Clerk. It shows examples across Next.js server components, client components, protected API routes and server actions, plus an Express.js example. The stated goal is to validate a Clerk integration end to end.

The skill lists prerequisites: the Clerk SDK installed, the publishable and secret key environment variables, ClerkProvider wrapping the app root, and middleware at the project root. It explains that auth() reads the session JWT without a network call, while currentUser() calls the Backend API and is rate limited. It is intended for developers who want to test authentication or verify a Clerk setup for the first time.

Written from the project's SKILL.md and checked against it.

What it can do

  • Server component authReads userId with auth() and loads user details with currentUser() in a Next.js page.
  • Protected API routeReturns a JSON greeting with userId, orgId and session id, or a 401 when unauthenticated.
  • Client component hooksUses useUser, useAuth and useClerk to show sign-in state and call an API with a Bearer token.
  • Server action with authChecks the user in a 'use server' function and returns a greeting from the server.
  • Express.js exampleShows clerkMiddleware, a public endpoint, and a protected endpoint using requireAuth().

What you need

  • Clerk SDK installed
  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY environment variable
  • CLERK_SECRET_KEY environment variable
  • Next.js or Express.js project
  • npm

Try asking

  • Set up a minimal Clerk and Next.js demo with a protected /me page
  • Write a protected API route that returns the signed-in user ID
  • Add a Clerk server action that returns a greeting for the current user

Good to know

  • currentUser() makes a Backend API call and is rate limited, so the skill advises using auth() when possible
  • Custom session claims are limited to 1.2KB in the Dashboard
  • Middleware must sit at the project root, not inside app/

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/clerk-hello-world/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBash(npm:*)Grep

Alternatives to clerk-hello-world

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

clerk-hello-world: common questions

What is the difference between auth() and currentUser() in Clerk?

The skill says auth() is lightweight because it reads the JWT from the session cookie with no API call. currentUser() makes a Backend API call and counts toward the rate limit.

Why does auth() say clerkMiddleware() is not detected?

The skill's error table says middleware is not in the project root. It recommends moving middleware.ts out of app/ to the project root.

What should I do if userId is null?

The skill says the user is not authenticated. Redirect to /sign-in or check that the middleware covers the route.

How do I install clerk-hello-world?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clerk-hello-world free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clerk-hello-world safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to clerk-hello-world?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

clerk-hello-world Install

Add to stack

Loading.