
Safe Action Better Auth
next-safe-action/skills/skills/safe-action-better-auth作者 next-safe-actiona2605bd2e84321245cba8f5718c144a6e4a5fa47无许可证收录于 2026年10月9日更新于 2026年10月9日
Use when adding authentication or authorization to safe actions with Better Auth -- covers betterAuth() middleware setup, typed session context (BetterAuthContext), custom authorize callbacks (AuthorizeFn), unauthorized() handling, nextCookies() configuration, and Next.js authInterrupts setup
添加到 SourceWeft 工作区
- 在控制台中打开该技能,并将它添加到工作区。
- 为需要使用它的对话启用该技能。
该技能仅含说明:不附带任何可执行的脚本。
添加到 SourceWeft系统会先要求你登录,然后直接带你回到这个技能。
让你的智能体来安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 或其他能运行命令的智能体中,也可以粘贴到 SourceWeft 对话里。智能体会阅读这个技能的安装说明,向你展示它的来源、许可证和脚本情况,在你同意后用 SourceWeft CLI 安装。
阅读 https://sourceweft.com/skills/gh-next-safe-action-skills-safe-action-better-auth-skills-safe-action-better-auth-c465d18544c29b63/install.md 中的说明,按说明安装这个技能。安装前先告诉我它的来源、许可证以及是否附带脚本,等我确认。修改我电脑上的其他任何内容之前也要先问我。用命令行自行安装
适用于 Claude Code、Codex、Cursor 及其他本地智能体。SourceWeft CLI 会从源代码仓库中获取此处扫描过的那次提交,并根据扫描时记录的哈希值逐一校验每个文件。只要有任何不一致,就不会写入任何内容。
npx @sourceweft/cli skills install @next-safe-action/safe-action-better-auth添加 --agent claude-code、codex、cursor 或 universal 来选择安装给哪个智能体(默认为 Claude Code)。
上游安装器——未经 SourceWeft 校验
开源的 skills 安装器会获取同一个固定的提交,但不会根据 SourceWeft 记录的哈希值校验文件。
npx skills add https://github.com/next-safe-action/skills/tree/a2605bd2e84321245cba8f5718c144a6e4a5fa47/skills/safe-action-better-auth来源与署名
来源:next-safe-action/skills位于skills/safe-action-better-auth提交a2605bd
许可证: 无许可证
内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。
更多来自 next-safe-action/skills 的技能

Safe Action Validation Errors
next-safe-action
说明 next-safe-action 的验证错误结构与辅助函数,用于返回并显示字段级和表单级错误。

Safe Action Middleware
next-safe-action
指导实现 next-safe-action 中间件,涵盖认证、日志、限流、错误处理与上下文扩展。

Safe Action Hooks
next-safe-action
指导使用 next-safe-action 的 React hooks 执行服务端操作、乐观更新与排队状态变更。

Safe Action Testing
next-safe-action
用于测试 next-safe-action 服务端操作、中间件、钩子、校验错误和服务端错误的 Vitest 模式。

Safe Action Client
next-safe-action
指导创建和配置 next-safe-action 客户端与操作,包含校验和错误处理。

Safe Action Forms
next-safe-action
指导如何将 next-safe-action 与 React 表单集成,包括原生表单、react-hook-form 适配器和文件上传。
更多Software Development技能

Playground
anthropics
构建自包含的交互式 HTML 演练场,包含控件、实时预览和可复制的提示词输出。

M5 Onboard
anthropics
通过 USB 检测 M5Stack ESP32 开发板,刷写 UIFlow 2.0 固件并安装 MicroPython 应用包。

Cardputer Buddy
anthropics
指导迭代 Cardputer-Adv 的 MicroPython 应用包:添加应用、通过 USB 串口推送文件、查看日志并运行 REPL 命令。

Web Design Guidelines
vercel-labs
依据从远程来源获取的 Web Interface Guidelines 审查 UI 代码,并以 file:line 形式报告问题。

Vercel React Native Skills
vercel-labs
React Native 与 Expo 最佳实践规则,涵盖列表性能、动画、导航、UI 模式、状态与 monorepo 配置。

Vercel React Best Practices
vercel-labs
Vercel 的 React 与 Next.js 性能指南,以 70 条规则的形式用于编写、审查和重构代码。