Agent skill

Lunora Setup Auth

by anolilab in anolilab/lunora

Adds authentication to a Lunora app with the auth registry item (better-auth via @lunora/auth, users and sessions in D1).

Custom licenceAuto-check passedBackend & APIs

Install Lunora Setup Auth

skills CLI
$ npx skills add anolilab/lunora --skill lunora-setup-auth -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install anolilab/lunora lunora-setup-auth --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/anolilab/lunora.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/cli/skills/lunora-setup-auth .claude/skills/lunora-setup-auth && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lunora-setup-auth
GitHub stars
283
Token cost
~2.8k tokens
SKILL.md length
891 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
Custom licence

At a glance

Adds authentication to a Lunora app with the auth registry item (better-auth via @lunora/auth, users and sessions in D1).

  • Works in 5 steps: Add the item → Database and env vars → Wire the Worker → …
  • The user asks to add auth
  • SKILL.md covers Step 1: Add the item, Step 2: Database and env vars, Step 3: Wire the Worker and Step 4: Providers and add-ons…, plus 3 more sections
  • Calls wrangler, pnpm and openssl; needs BETTER_AUTH_SECRET and RESEND_API_KEY

What it does

Lunora Setup Auth is an agent skill from anolilab/lunora. Adds authentication to a Lunora app with the auth registry item (better-auth via @lunora/auth, users and sessions in D1). Covers email/password sign-up and sign-in, Clerk or Auth0 OAuth, magic link, email OTP, copy-in auth screens (lunora add auth-ui), wiring /api/auth/ and resolveIdentity into the Worker, and gating functions on ctx.auth.userId. Use when the user asks to "add auth", "add login/sign-in/sign-up", "protect this query", or "add Clerk/Auth0/magic link/OTP", runs lunora add auth or lunora registry add…

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Authentication. It works with Better Auth and Auth0. The repository describes itself as: Type-safe, real-time backend framework on your own Cloudflare account — Workers, Durable Objects, D1, R2, Queues. Convex-style DX, Vite-first.

When your agent uses it

  • The user asks to add auth
  • Add login/sign-in/sign-up
  • Protect this query
  • Add Clerk/Auth0/magic link/OTP

Example prompts

  • “add auth”
  • “add login/sign-in/sign-up”
  • “protect this query”
  • “/lunora-setup-auth”

Requirements

  • A credential in BETTER_AUTH_SECRET
  • A credential in RESEND_API_KEY

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Add the item
  2. Database and env vars
  3. Wire the Worker
  4. Providers and add-ons (optional)
  5. Use the session

What it can do on your machine

Read from SKILL.md and the folder at commit ad2d4c8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • wrangler
    • pnpm
    • openssl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • better-auth.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • BETTER_AUTH_SECRET
    • RESEND_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lunora Setup Auth loads about 2.8k tokens when it runs. Until then it costs about 159 tokens; SKILL.md has 891 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~159
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 891 words (~2,816 tokens).

“The auth registry item is built on @lunora/auth, a thin wrapper over better-auth. Users and sessions are stored in D1. Lunora's SessionDO is a separate TTL'd token store that @lunora/auth never calls, so don't wire it for auth. If you…”

— opening of SKILL.md by anolilab, Custom licence
name
lunora-setup-auth

Read the full SKILL.md on GitHub

Files

Just SKILL.md in packages/cli/skills/lunora-setup-auth of anolilab/lunora.

Open the folder on GitHubat commit ad2d4c8

Compare with similar skills

Lunora Setup Auth next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lunora Setup Auth compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lunora Setup Auth this skillanolilab/lunora283—~2.8kAutomated safety check: PassCustom licence
Workosusenotra/notra256—~6.2kAutomated safety check: PassAGPL-3.0
Authvercel/vercel-plugin301—~6.4kAutomated safety check: NotesCustom licence
Insforge Integrationsaiskillstore/marketplace430—~1.5kAutomated safety check: PassApache-2.0
Better Auth Best Practiceslatitude-dev/latitude-llm4.7k7 repos~1.6kAutomated safety check: PassMIT
Neon Authneondatabase/agent-skills100—~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Workos

    usenotra/notra

    A skill your agent uses when the user asks for a WorkOS docs URL, term, or dashboard field (Sign-in endpoint, initiateloginuri, Redirect URI, WORKOS env vars), or is implementing, debugging, or…

    256 GitHub stars~6.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Auth

    vercel/vercel-plugin

    Official

    Authentication integration guidance — Clerk (native Vercel Marketplace), Better Auth, Descope, and Auth0 setup for Next.js applications, plus Sign in with Vercel, Vercel Passport, and Vercel KMS.

    301 GitHub stars~6.4k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Insforge Integrations

    aiskillstore/marketplace

    A skill your agent uses when wiring an external auth provider (Clerk, Auth0, WorkOS, Kinde, Stytch, Better Auth) into InsForge for JWT-based RLS, or when adding the OKX x402 payment facilitator for…

    430 GitHub stars~1.5k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Better Auth Best Practices

    latitude-dev/latitude-llm

    Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables.

    4.7k GitHub starsUsed in 7 repos~1.6k tokens
    Backend & APIsAuto-check passed
  • Neon Auth

    neondatabase/agent-skills

    Official

    Add authentication to a new app. An agent skill from neondatabase/agent-skills.

    100 GitHub stars~3.1k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Configure email verification, implement password reset flows, set password policies, and customise hashing algorithms for Better Auth email/password authentication.

    158 GitHub starsUsed in 3 repos~1.5k tokens
    Backend & APIsAuto-check passed

More from anolilab/lunora

All 16 skills in this repo
  • Lunora Design

    anolilab/lunora

    This skill should be used when the user explicitly says "Lunora style", "Lunora design", "/lunora-design", or directly asks to use/apply the Lunora design system.

    283 GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed
  • Lunora

    anolilab/lunora

    Routes general Lunora requests to the right Lunora skill and gives the shared mental model (codegen loop, generated api/internal references, review commands, add-on capabilities, the @lunora/mcp…

    283 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Lunora Create Package

    anolilab/lunora

    Builds a reusable Lunora capability, either as a registry item that lunora add / lunora registry add copies into an app's lunora/, or as a publishable @lunora/ workspace package in the Lunora…

    283 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Lunora Deploy

    anolilab/lunora

    Deploys a Lunora app to Cloudflare Workers + Durable Objects and gets wrangler.jsonc, remote resources and secrets to line up.

    283 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Plans and runs Lunora schema and data migrations with the widen → migrate → narrow pattern.

    283 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Diagnoses and fixes Lunora performance problems — full-table scans and missing indexes, expensive ctx.db.related traversals, OCC write conflicts (409 CONFLICT), live queries that re-run too often…

    283 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Lunora Setup Auth

What does Lunora Setup Auth do?

Adds authentication to a Lunora app with the auth registry item (better-auth via @lunora/auth, users and sessions in D1). Lunora Setup Auth is an agent skill from anolilab/lunora. Adds authentication to a Lunora app with the auth registry item (better-auth via @lunora/auth, users and sessions in D1).

When should I use Lunora Setup Auth?

Lunora Setup Auth fits situations like: the user asks to add auth; add login/sign-in/sign-up; protect this query; add Clerk/Auth0/magic link/OTP.

How do I install Lunora Setup Auth in Claude Code?

Run `npx skills add anolilab/lunora --skill lunora-setup-auth -a claude-code`. Or copy the skill folder (packages/cli/skills/lunora-setup-auth in anolilab/lunora) into .claude/skills/lunora-setup-auth in your project. Claude Code loads it when a task matches its description.

How do I install Lunora Setup Auth in Codex?

Run `npx skills add anolilab/lunora --skill lunora-setup-auth -a codex`. Or copy the skill folder (packages/cli/skills/lunora-setup-auth in anolilab/lunora) into .agents/skills/lunora-setup-auth in your project. Codex loads it when a task matches its description.

Can I use Lunora Setup Auth in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add anolilab/lunora --skill lunora-setup-auth -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lunora-setup-auth, .gemini/skills/lunora-setup-auth, .github/skills/lunora-setup-auth and .opencode/skills/lunora-setup-auth in your project.

What does Lunora Setup Auth need to run?

Going by SKILL.md and its folder, Lunora Setup Auth needs the command-line tools its instructions call (wrangler, pnpm and openssl) and credentials named BETTER_AUTH_SECRET and RESEND_API_KEY. Our summary lists: A credential in BETTER_AUTH_SECRET; A credential in RESEND_API_KEY.

Does Lunora Setup Auth access the network?

SKILL.md names 1 domain. As links in the text: better-auth.com. This is read from the text; nothing was executed.

Is Lunora Setup Auth safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lunora Setup Auth use?

Lunora Setup Auth has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Lunora Setup Auth use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lunora Setup Auth?

Skills that share tags, products or a category with Lunora Setup Auth: Workos (usenotra/notra, 256 stars), Auth (vercel/vercel-plugin, 301 stars), Insforge Integrations (aiskillstore/marketplace, 430 stars) and Better Auth Best Practices (latitude-dev/latitude-llm, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lunora Setup Auth?

anolilab (a GitHub organization) maintains it in anolilab/lunora, which has 283 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 7, 2026.

Source: anolilab/lunora on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.