← 返回 Skills 市场
stevenfengli

Two Factor Authentication Best Practices

作者 Steven Lee · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
409
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install twofactor
功能描述
This skill provides guidance and enforcement rules for implementing secure two-factor authentication (2FA) using Better Auth's twoFactor plugin.
安全使用建议
This skill is an instructional guide and appears internally consistent, but exercise normal caution before using any third-party auth guidance: 1) Verify the authenticity and security record of the better-auth package and its CLI (review its repository, npm package, and maintainers) before installing into production. 2) Ensure you implement secure sendEmail/sendOTP delivery and protect any mailer credentials separately. 3) Run database migrations in a safe way (backup data first) and review what fields/tables are added. 4) Store OTPs/backup codes using encrypted or hashed storage as recommended; display backup codes only once and advise users to save them. 5) Avoid skipVerificationOnEnable in production unless you understand the recovery/attack tradeoffs. 6) Confirm rate limits, allowedAttempts, and trust-device settings align with your threat model. The skill itself makes no surprising requests, but you should audit the actual dependencies and your implementation before deployment.
功能分析
Type: OpenClaw Skill Name: twofactor Version: 0.1.0 The skill bundle provides documentation and code examples for implementing two-factor authentication using the 'better-auth' library. The `SKILL.md` file contains no prompt injection attempts against the AI agent, nor does it include any malicious code snippets, data exfiltration, persistence mechanisms, or other harmful behaviors. The content is purely instructional, focuses on security best practices, and appears to be a legitimate guide for developers.
能力评估
Purpose & Capability
Name/description match the SKILL.md content: all examples and guidance relate to configuring Better Auth's twoFactor plugin. The skill does not request unrelated credentials, binaries, or config paths.
Instruction Scope
Runtime instructions are limited to library usage, configuration options, and example handlers (e.g., sendOTP via sendEmail). There are no instructions to read unrelated files, exfiltrate data, or call unexpected external endpoints.
Install Mechanism
No install spec and no code files — instruction-only content. Nothing will be downloaded or written to disk by the skill itself.
Credentials
The skill declares no environment variables or credentials. The examples reference implementing a sendEmail function and database migrations, which are expected for a 2FA integration and do not require hidden credentials from the skill itself.
Persistence & Privilege
The skill does not request persistent presence (always is false) and does not attempt to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install twofactor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /twofactor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of the two-factor-authentication-best-practices skill. - Provides guidance and usage examples for implementing secure two-factor authentication (2FA) with Better Auth's twoFactor plugin. - Covers setup for TOTP (authenticator app), OTP (email/SMS), backup codes, and trusted devices. - Includes best practices for client and server integration. - Explains secure code delivery, verification, backup code generation, and recovery flows. - Outlines recommended security considerations and session management during the 2FA process.
元数据
Slug twofactor
版本 0.1.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Two Factor Authentication Best Practices 是什么?

This skill provides guidance and enforcement rules for implementing secure two-factor authentication (2FA) using Better Auth's twoFactor plugin. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 409 次。

如何安装 Two Factor Authentication Best Practices?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install twofactor」即可一键安装,无需额外配置。

Two Factor Authentication Best Practices 是免费的吗?

是的,Two Factor Authentication Best Practices 完全免费(开源免费),可自由下载、安装和使用。

Two Factor Authentication Best Practices 支持哪些平台?

Two Factor Authentication Best Practices 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Two Factor Authentication Best Practices?

由 Steven Lee(@stevenfengli)开发并维护,当前版本 v0.1.0。

💬 留言讨论