lms-front: Skill for Claude Code

.agents/skills/nextjs-supabase-auth/SKILL.md

nextjs-supabase-auth is a skill for Claude Code, Codex from guillermoscript/lms-front. It costs 40 tokens per session (343 once invoked), scanned A, a copy of nextjs-supabase-auth, MIT.

A guide for adding Supabase Auth to a Next.js application that uses the App Router. Supabase Auth handles user sign-in, while Next.js App Router organizes pages and server-side application code.

In plain words
What is it for?
Use it to set up Supabase clients, protect routes with middleware, handle OAuth callbacks, and implement authentication operations.
Why use it?
It helps keep login sessions, cookies, protected pages, and server-side authentication working together correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is guillermoscript/lms-front's own configuration. It tells Claude Code and Codex how to work on lms-front itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lms-front configures →

Reuse

Borrowing it

Nothing to install: this file belongs to guillermoscript/lms-front. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/guillermoscript/lms-front/master/.agents/skills/nextjs-supabase-auth/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/guillermoscript/lms-front

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nextjs-supabase-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/guillermoscript/lms-front/nextjs-supabase-auth/github.svg)](https://agentmods.dev/skills/guillermoscript/lms-front/nextjs-supabase-auth)
Your own site
<a href="https://agentmods.dev/skills/guillermoscript/lms-front/nextjs-supabase-auth"><img src="https://agentmods.dev/badge/skills/guillermoscript/lms-front/nextjs-supabase-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nextjs-supabase-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/guillermoscript/lms-front/nextjs-supabase-auth"><img src="https://agentmods.dev/badge/skills/guillermoscript/lms-front/nextjs-supabase-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00343
Opus 5.5 $0.00016 $0.00137
Sonnet 5.5 $0.00008 $0.00069
Haiku 4.5 $0.00004 $0.00034

Measured 1mo ago against content hash 4f50bad1d6b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nextjs-supabase-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to nextjs-supabase-auth — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/nextjs-supabase-auth/SKILL.md · 62 lines

What it actually says

Next.js + Supabase Auth

You are an expert in integrating Supabase Auth with Next.js App Router. You understand the server/client boundary, how to handle auth in middleware, Server Components, Client Components, and Server Actions.

Your core principles:

  1. Use @supabase/ssr for App Router integration
  2. Handle tokens in middleware for protected routes
  3. Never expose auth tokens to client unnecessarily
  4. Use Server Actions for auth operations when possible
  5. Understand the cookie-based session flow

Capabilities

  • nextjs-auth
  • supabase-auth-nextjs
  • auth-middleware
  • auth-callback

Requirements

  • nextjs-app-router
  • supabase-backend

Patterns

Supabase Client Setup

Create properly configured Supabase clients for different contexts

Auth Middleware

Protect routes and refresh sessions in middleware

Auth Callback Route

Handle OAuth callback and exchange code for session

Anti-Patterns

❌ getSession in Server Components

❌ Auth State in Client Without Listener

❌ Storing Tokens Manually

Works well with: nextjs-app-router, supabase-backend

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 62 lines · 40 tokens per session scan A 4f50bad1d6b0

Subscribe to this mod's changes

nextjs-supabase-auth is a skill published in the GitHub repository guillermoscript/lms-front (40 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 343 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to nextjs-supabase-auth, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

inbox-zero-api

Use the Inbox Zero API CLI to inspect the live API schema, list and manage automation rules, and read inbox analytics through the public API. Use this when a task involves Inbox Zero rules, stats, or API-driven automation and can be solved through the CLI instead of browser interaction.

elie222/inbox-zero · 61 tokens

public-api-review

Design and review ClassroomIO public APIs for security, authorization, API contract quality, MCP/API-key behavior, and dashboard feature parity. Use when adding or reviewing API routes, public APIs, automation endpoints, or MCP tools.

classroomio/classroomio · 48 tokens

moodle-performance

Use when optimizing Moodle plugin performance — MUC caching definitions, query optimization, recordsets vs records, ad-hoc and scheduled tasks, lazy loading, OPcache, query log analysis, $PERF, and performance debug toolbar.

SaadRahman01/claude-moodle-dev · 50 tokens

moodle-privacy-gdpr

Use when implementing or reviewing the Moodle privacy provider (GDPR) — nullprovider vs request\plugin\provider, getmetadata, exportuserdata, deletedataforuserincontext, deletedataforusers, getcontextsforuserid, getusersincontext, subsystem links, and coreuserlistprovider.

SaadRahman01/claude-moodle-dev · 71 tokens

moodle-web-services

Use when adding/calling Moodle web services or external functions — db/services.php, classes/external/, REST/SOAP/AJAX protocols, tokens, capabilities, parameters/returns schemas, file uploads, and rate limiting.

SaadRahman01/claude-moodle-dev · 50 tokens

moodle-hooks-api

Use when implementing or migrating to the Moodle 4.4+ Hooks API. Covers hook class authoring (db/hooks.php), callback registration, dispatching, replacing legacy magic callbacks (extendnavigation, beforehttpheaders, etc.), and testing hook listeners.

SaadRahman01/claude-moodle-dev · 56 tokens