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 smicolon/ai-kit --skill auth-securitygit clone --depth 1 https://github.com/smicolon/ai-kitWrote 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/smicolon/ai-kit/auth-security)<a href="https://agentmods.dev/skills/smicolon/ai-kit/auth-security"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/auth-security/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/smicolon/ai-kit/auth-security"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/auth-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00036 | $0.02495 |
| Opus 5.5 | $0.00014 | $0.00998 |
| Sonnet 5.5 | $0.00007 | $0.00499 |
| Haiku 4.5 | $0.00004 | $0.00249 |
Grade A, and why
Auth Security Patterns 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.
How it starts
The opening of the file, as written. The whole thing — 426 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Auth Security Patterns
This skill enforces authentication security best practices for Better Auth implementations.
Password Security
Strong Password Policy
import { betterAuth } from 'better-auth'
export const auth = betterAuth({
emailAndPassword: {
enabled: true,
password: {
minLength: 12,
maxLength: 128,
requireLowercase: true,
requireUppercase: true,
requireNumber: true,
requireSpecialChar: true,
// Custom validation
validate: (password) => {
// Check against common passwords
if (commonPasswords.includes(password.toLowerCase())) {
return 'Password is too common'
}
// Check for repeated characters
if (/(.)\1{2,}/.test(password)) {
return 'Password cannot have 3+ repeated characters'
}
return true
},
},
},
})
Password Hashing
// Better Auth uses bcrypt by default with cost factor 10
// For higher security requirements:
export const auth = betterAuth({
advanced: {
password: {
hash: async (password) => {
const salt = await bcrypt.genSalt(12) // Higher cost
return bcrypt.hash(password, salt)
},
verify: async (password, hash) => {
return bcrypt.compare(password, hash)
},
},
},
})
Rate Limiting
Global Rate Limiting
import { rateLimit } from 'better-auth/plugins/rate-limit'
export const auth = betterAuth({
plugins: [
rateLimit({
window: 60, // 1 minute window
max: 100, // 100 requests per window
keyGenerator: (req) => {
// Rate limit by IP
return req.headers.get('x-forwarded-for') || req.ip
},
}),
],
})
Endpoint-Specific Limits
rateLimit({
endpoints: {
// Strict limits for auth endpoints
'sign-in': {
window: 300, // 5 minutes
max: 5, // 5 attempts
},
'sign-up': {
window: 3600, // 1 hour
max: 3, // 3 registrations
},
'reset-password': {
window: 3600, // 1 hour
max: 3, // 3 reset requests
},
'verify-email': {
window: 60, // 1 minute
max: 5, // 5 verification attempts
},
},
})
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.
- 1mo ago First seen · 426 lines · 36 tokens per session scan A 01a8de40468c
Auth Security Patterns is a skill published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 2,495 once invoked, about $0.0001 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.
Other skills, from other repositories
add-matrix
Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.
add-resend
Add Resend (email) channel integration via Chat SDK.
add-macos-statusbar
Add a macOS menu bar status indicator for NanoClaw. Shows a bolt icon with a green/red dot indicating whether NanoClaw is running, with Start, Stop, and Restart controls. macOS only.
git-commit
Generate well-formatted git commit messages following conventional commit standards.
trend-analysis
A data-analysis workflow that groups records, rates performance, applies different growth assumptions, predicts values, and creates comparison charts.
excel-basic-statistics-and-routing
An Excel workflow for filtering grouped data, calculating averages, extracting row ranges, removing duplicates, and adding totals.