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.
npx skills add fcsouza/agent-skills --skill betterauth-integrationgit clone --depth 1 https://github.com/fcsouza/agent-skillsWrote 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.
[](https://agentmods.dev/skills/fcsouza/agent-skills/betterauth-integration)<a href="https://agentmods.dev/skills/fcsouza/agent-skills/betterauth-integration"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/betterauth-integration/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.
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/betterauth-integration"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/betterauth-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.02729 |
| Opus 5.5 | $0.00028 | $0.01092 |
| Sonnet 5.5 | $0.00014 | $0.00546 |
| Haiku 4.5 | $0.00007 | $0.00273 |
Grade A, and why
betterauth-integration 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 19d 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.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Better Auth for games
Use the better-auth-best-practices skill if it is installed, otherwise https://www.better-auth.com/docs. This skill covers only what a game adds on top: the role matrix, the WebSocket handshake, and the split between who a player is and which match they are in.
Requires
postgres-game-schema
Decisions
- Every game endpoint and every WebSocket connection checks a Better Auth session. Derive the user id from the session, never from the request body or params.
- Use Better Auth sessions, not JWTs, for players. A session lives in the database, so a ban or logout revokes it.
- Use three roles: player, moderator, admin. They come from the admin plugin, not from a custom user field.
- Keep the auth session ("who you are") apart from the game session ("which match or room you are in"). A logged-in player may be in no match.
- Do not write password hashing. Better Auth hashes passwords with scrypt.
Setup steps
- Install the packages:
bun add better-auth @better-auth/drizzle-adapter. Import the adapter withimport { drizzleAdapter } from '@better-auth/drizzle-adapter'. If the project uses Drizzle Relations v2, import from@better-auth/drizzle-adapter/relations-v2instead. - Add the admin plugin with the game roles from
templates/role-definitions.ts:admin({ ac, roles, defaultRole: 'player' })on the server andadminClient({ ac, roles })on the client. WithoutdefaultRole: 'player', new users get the plugin's default roleuser, which the game matrix does not define, and every permission check fails. - Add the
staffGuard()plugin fromtemplates/staff-guard.tsafteradmin():plugins: [admin({ ... }), staffGuard()]. A plugin hook does not take the single user-levelhooks.beforeslot, and its place relative tobearer()does not matter. If a project must callguardStaffTargets(ctx)from its ownhooks.beforeinstead,awaitit as the first statement, do not catch its error, and do not rewrite the body of/admin/*requests in any hook. - Do not add a
rolefield throughadditionalFields. The admin plugin addsrole(plusbanned,banReason,banExpires) to the user table. - Generate the auth schema, then migrate it with Drizzle Kit. Better Auth's
migratecommand works only with its built-in Kysely adapter.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 19d ago Changed · -45 lines · +18 tokens per session 88c477b61c4a
- 3mo ago First seen · 154 lines · 53 tokens per session scan A d7a82d139246
betterauth-integration is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 2,729 once invoked, about $0.0003 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-30.
betterauth-integration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| betterauth-integrationfcsouza/agent-skills | Skill | 29 | today | MIT | A | 71 | Claude Code |
| playtest-reportDonchitos/Claude-Code-Game-Studios | Skill | 42k | 24d ago | MIT | A | 20 | Claude Code |
| godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skills | Skill | 13k | 3d ago | Apache-2.0 | A | 93 | Claude Code |
| scenario-unreal-gameplayscenario-labs/skills | Skill | 4.7k | yesterday | MIT | A | 121 | Claude Code |
| texture-workflowarjun988/blender-skills | Skill | 5.8k | 27d ago | MIT | A | 41 | Claude Code |
| motionOpenDCAI/GameFactory-3A | Skill | 1.6k | yesterday | Apache-2.0 | A | 0 | Claude Code, Codex |
| gamedev-shadersericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 102 | Claude Code, Codex |