better-auth-plugins-organizations-and-sso

better-auth-plugins-organizations-and-sso is a skill for Claude Code, Codex from andrewsrigom/agent-skills. It costs 58 tokens per session (718 once invoked), scanned A, original, MIT.

Guidance for adding Better Auth plugins that handle organizations and enterprise single sign-on (SSO), where users sign in through a company identity provider.

In plain words
What is it for?
Use it to configure organization plugins, roles, permissions, active organizations, and SSO callbacks and tenant ownership.
Why use it?
It helps avoid mismatched server and client setup, missing database changes, and unclear rules for organizations, roles, and access.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure organization plugins, roles, permissions, active organizations, and SSO callbacks and tenant ownership.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrewsrigom/agent-skills/better-auth-plugins-organizations-and-sso
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add andrewsrigom/agent-skills --skill better-auth-plugins-organizations-and-sso
Clone the repo
git clone --depth 1 https://github.com/andrewsrigom/agent-skills

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 better-auth-plugins-organizations-and-sso

README.md
[![agentmods](https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/better-auth-plugins-organizations-and-sso/github.svg)](https://agentmods.dev/skills/andrewsrigom/agent-skills/better-auth-plugins-organizations-and-sso)
Your own site
<a href="https://agentmods.dev/skills/andrewsrigom/agent-skills/better-auth-plugins-organizations-and-sso"><img src="https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/better-auth-plugins-organizations-and-sso/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 better-auth-plugins-organizations-and-sso

Your own site · 80×15
<a href="https://agentmods.dev/skills/andrewsrigom/agent-skills/better-auth-plugins-organizations-and-sso"><img src="https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/better-auth-plugins-organizations-and-sso.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 718 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 original No closer match found 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.00058 $0.00718
Opus 5.5 $0.00023 $0.00287
Sonnet 5.5 $0.00012 $0.00144
Haiku 4.5 $0.00006 $0.00072

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

Security

Grade A, and why

better-auth-plugins-organizations-and-sso 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 2mo 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.

better-auth/better-auth-plugins-organizations-and-sso/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Better Auth Plugins Organizations And SSO

Use this skill when Better Auth work goes beyond core email or social auth and into plugin-driven features.

Scope

  • plugin installation and registration
  • npx @better-auth/cli migrate and generate
  • client plugin wiring
  • organization plugin setup
  • organization roles, permissions, and active org handling
  • SSO plugin setup and enterprise identity boundaries

Default path

  1. Identify which plugin surface the app actually needs before enabling more than one plugin.
  2. Add the plugin to the server config first.
  3. Run migration or schema generation before using plugin-backed features.
  4. Add the matching client plugin when the feature has client-side methods.
  5. For organizations, define creation rules, active organization behavior, and role or permission model early.
  6. For SSO, define the identity-provider type, callback destination, and tenant or org ownership before implementation.

When to deviate

  • Add more than one plugin only when the product really needs both surfaces.
  • Skip client plugin wiring when the feature is entirely server-owned.
  • Move to the overview or social skills when the task is still deciding between baseline auth modes rather than plugin-backed capabilities.
  • Treat organization and SSO setup as product-contract work, not just package wiring, whenever roles or tenancy are involved.

Guardrails

  • Do not enable plugins speculatively just because they exist.
  • Keep server plugin registration and client plugin registration in sync.
  • Treat organization roles and permissions as product contracts, not UI-only labels.
  • In SSO setups, keep the callback destination distinct from the provider callback route itself.
  • Validate org or enterprise identity assumptions before layering in access control.

Avoid

  • enabling plugins “for later” without a product use case
  • forgetting the migration or schema generation step before using plugin-backed data
  • treating org roles as loose UI labels instead of access-control contracts
  • blurring provider callback routes with post-login app destinations in SSO flows

Read the full file on GitHub · 84 lines

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. 2mo ago First seen · 84 lines · 58 tokens per session scan A 1f16d929487c

Subscribe to this mod's changes

better-auth-plugins-organizations-and-sso is a skill published in the GitHub repository andrewsrigom/agent-skills (2 stars, last pushed 7mo ago), licensed MIT. It adds 58 tokens to every session and 718 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

better-auth-plugins-organizations-and-sso compared with skills from other repositories

better-auth-plugins-organizations-and-sso next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
better-auth-plugins-organizations-and-ssoandrewsrigom/agent-skillsSkill27mo agoMITA58Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill69kyesterdayApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5293d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill253todayMITA106Claude Code