Agent skill

Better Auth Security Best Practices

by viclafouch in viclafouch/meme-studio

This skill provides guidance for implementing security features that span across Better Auth, including rate limiting, CSRF protection, session security, trusted origins, secret management, OAuth…

No licenceAuto-check passedBackend & APIs

Install Better Auth Security Best Practices

skills CLI
$ npx skills add viclafouch/meme-studio --skill better-auth-security-best-practices -a claude-code

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

GitHub CLI
$ gh skill install viclafouch/meme-studio better-auth-security-best-practices --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/viclafouch/meme-studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/better-auth-security-best-practices .claude/skills/better-auth-security-best-practices && 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
better-auth-security-best-practices
GitHub stars
110
Token cost
~4.2k tokens
SKILL.md length
1,110 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
None found

At a glance

This skill provides guidance for implementing security features that span across Better Auth, including rate limiting, CSRF protection, session security, trusted origins, secret management, OAuth…

  • Works in 3 steps: options.secret in your config → BETTER_AUTH_SECRET environment variable → AUTH_SECRET environment variable
  • Tasks that involve Secrets management
  • SKILL.md covers Secret Management, Rate Limiting, CSRF Protection and Trusted Origins, plus 3 more sections
  • Calls openssl; needs BETTER_AUTH_SECRET and AUTH_SECRET

What it does

Better Auth Security Best Practices is an agent skill from viclafouch/meme-studio. This skill provides guidance for implementing security features that span across Better Auth, including rate limiting, CSRF protection, session security, trusted origins, secret management, OAuth security, IP tracking, and security auditing. These topics are not covered in individual plugin skills.

Its SKILL.md is about 4.2k 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 Secrets management, Rate limiting and Web application vulnerabilities. It works with Better Auth. The repository describes itself as: 📌 A complete and fast website building in Next.js for creating and sharing "internet memes".

When your agent uses it

  • Tasks that involve Secrets management
  • Tasks that involve Rate limiting
  • Tasks that involve Web application vulnerabilities

Example prompts

  • “/better-auth-security-best-practices”

Requirements

  • A credential in BETTER_AUTH_SECRET
  • A credential in AUTH_SECRET

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. options.secret in your config
  2. BETTER_AUTH_SECRET environment variable
  3. AUTH_SECRET environment variable

What it can do on your machine

Read from SKILL.md and the folder at commit d8fa0be. 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:

    • openssl

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

  • Network

    No URLs in SKILL.md.

    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
    • AUTH_SECRET

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

Context cost

Better Auth Security Best Practices loads about 4.2k tokens when it runs. Until then it costs about 84 tokens; SKILL.md has 1,110 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,110 words (~4,158 tokens).

“The auth secret is the foundation of Better Auth's security. It's used for signing session tokens, encrypting sensitive data, and generating secure cookies.”

— opening of SKILL.md by viclafouch
name
better-auth-security-best-practices

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/better-auth-security-best-practices of viclafouch/meme-studio.

Open the folder on GitHubat commit d8fa0be

Compare with similar skills

Better Auth Security Best Practices 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.

Better Auth Security Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Better Auth Security Best Practices this skillviclafouch/meme-studio110—~4.2kAutomated safety check: PassNone
Better Auth Security Best PracticesEpicenterHQ/epicenter4.8k—~896Automated safety check: PassCustom licence
Better Auth Security Best Practicesagutinbaigo28/financial-agent-api128—~2.7kAutomated safety check: PassNone
API Security Designvinayaklatthe/microsoft-security-skills175—~2.2kAutomated safety check: PassMIT
Moai Ref Secopsmodu-ai/moai-adk1.2k—~2.6kAutomated safety check: PassApache-2.0
Better Auth Best Practiceslatitude-dev/latitude-llm4.7k7 repos~1.6kAutomated safety check: PassMIT

Similar skills

  • Better Auth security hardening: rate limits, secrets, CSRF, trusted origins, cookies, sessions, OAuth tokens, and audit logging.

    4.8k GitHub stars~896 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Better Auth Security Best Practices

    agutinbaigo28/financial-agent-api

    Configure rate limiting, manage auth secrets, set up CSRF protection, define trusted origins, secure sessions and cookies, encrypt OAuth tokens, track IP addresses, and implement audit logging for…

    128 GitHub stars~2.7k tokensUpdated 26 days ago
    Backend & APIsAuto-check passed
  • API Security Design

    vinayaklatthe/microsoft-security-skills

    Guidance for designing secure APIs on Azure - authentication, authorization, gateway controls, input validation, rate limiting, secret management, and runtime threat detection - aligned to OWASP API…

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Moai Ref Secops

    modu-ai/moai-adk

    DevSecOps, container, and API operational defensive security reference: CI/CD pipeline hardening, secret scanning, IaC misconfiguration detection, SAST/DAST integration, container image scanning…

    1.2k GitHub stars~2.6k tokensUpdated yesterday
    SecurityAuto-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
  • Rails Security Multitenancy

    marckohlbrugge/37signals-skills

    Apply Rails security and multi-tenant safety practices including scoped queries, SSRF defenses, rate limiting, and tenant-scoped realtime updates.

    724 GitHub stars~1.7k tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed

More from viclafouch/meme-studio

All 12 skills in this repo
  • Email Best Practices

    viclafouch/meme-studio

    A skill your agent uses when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring compliance (CAN-SPAM…

    110 GitHub starsUsed in 7 repos~787 tokens
    Auto-check passed
  • React Email

    viclafouch/meme-studio

    A skill your agent uses when creating HTML email templates with React components - welcome emails, password resets, notifications, order confirmations, newsletters, or transactional emails.

    110 GitHub starsUsed in 2 repos~3.6k tokens
    Auto-check passed
  • Send Email

    viclafouch/meme-studio

    A skill your agent uses when sending transactional emails (welcome messages, order confirmations, password resets, receipts), notifications, or bulk emails via Resend API.

    110 GitHub starsUsed in 2 repos~3.8k tokens
    Auto-check passed
  • Resend

    viclafouch/meme-studio

    A skill your agent uses when working with Resend email platform - routes to specific sub-skills for sending, receiving, audiences, or broadcasts.

    110 GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Better Auth Best Practices

    viclafouch/meme-studio

    Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

    110 GitHub starsUsed in 5 repos~1.5k tokens
    Auto-check passed
  • Resend Inbound

    viclafouch/meme-studio

    A skill your agent uses when receiving emails with Resend - setting up inbound domains, processing email.received webhooks, retrieving email content/attachments, or forwarding received emails.

    110 GitHub starsUsed in 2 repos~2.1k tokens
    Auto-check: warnings

Works with

Categories

Questions about Better Auth Security Best Practices

What does Better Auth Security Best Practices do?

This skill provides guidance for implementing security features that span across Better Auth, including rate limiting, CSRF protection, session security, trusted origins, secret management, OAuth…. Better Auth Security Best Practices is an agent skill from viclafouch/meme-studio. This skill provides guidance for implementing security features that span across Better Auth, including rate limiting, CSRF protection, session security, trusted origins, secret management, OAuth security, IP tracking, and security auditing.

When should I use Better Auth Security Best Practices?

Better Auth Security Best Practices fits situations like: tasks that involve Secrets management; tasks that involve Rate limiting; tasks that involve Web application vulnerabilities.

How do I install Better Auth Security Best Practices in Claude Code?

Run `npx skills add viclafouch/meme-studio --skill better-auth-security-best-practices -a claude-code`. Or copy the skill folder (.agents/skills/better-auth-security-best-practices in viclafouch/meme-studio) into .claude/skills/better-auth-security-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Better Auth Security Best Practices in Codex?

Run `npx skills add viclafouch/meme-studio --skill better-auth-security-best-practices -a codex`. Or copy the skill folder (.agents/skills/better-auth-security-best-practices in viclafouch/meme-studio) into .agents/skills/better-auth-security-best-practices in your project. Codex loads it when a task matches its description.

Can I use Better Auth Security Best Practices 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 viclafouch/meme-studio --skill better-auth-security-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/better-auth-security-best-practices, .gemini/skills/better-auth-security-best-practices, .github/skills/better-auth-security-best-practices and .opencode/skills/better-auth-security-best-practices in your project.

What does Better Auth Security Best Practices need to run?

Going by SKILL.md and its folder, Better Auth Security Best Practices needs the command-line tools its instructions call (openssl) and credentials named BETTER_AUTH_SECRET and AUTH_SECRET. Our summary lists: A credential in BETTER_AUTH_SECRET; A credential in AUTH_SECRET.

Does Better Auth Security Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Better Auth Security Best Practices 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 Better Auth Security Best Practices use?

No licence was found for Better Auth Security Best Practices or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Better Auth Security Best Practices use?

About 4.2k tokens (SKILL.md is roughly 17k 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 Better Auth Security Best Practices?

Skills that share tags, products or a category with Better Auth Security Best Practices: Better Auth Security Best Practices (EpicenterHQ/epicenter, 4.8k stars), Better Auth Security Best Practices (agutinbaigo28/financial-agent-api, 128 stars), API Security Design (vinayaklatthe/microsoft-security-skills, 175 stars) and Moai Ref Secops (modu-ai/moai-adk, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Better Auth Security Best Practices?

viclafouch (a GitHub user) maintains it in viclafouch/meme-studio, which has 110 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on March 31, 2026.

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