workosauthkitnextjs

WorkOS AuthKit is an authentication toolkit for Next.js applications. It provides concrete integration targets for implementers, covering login, sessions, RBAC, SSO, MFA, and user management, with these capabilities supported by WorkOS documentation and packages.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "workosauthkitnextjs" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-578d25f5d4b13291dff79141bb3d3752057760dabd454ea026ac26f9c4776b0a. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/workos-authkit-nextjs-authentication-toolkit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

WorkOS AuthKit is an authentication toolkit for Next.js applications. It provides concrete integration targets for implementers, covering login, sessions, RBAC, SSO, MFA, and user management, with these capabilities supported by WorkOS documentation and packages.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
npm, pnpm, yarn, docker, go, rust, java
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "WorkOS AuthKit Next.js 认证工具包"
slug: "workos-authkit-nextjs-authentication-toolkit"
version: "1.0.0"
displayName: "WorkOS AuthKit Next.js 认证工具包"
summary: "WorkOS AuthKit 是一个用于 Next.js 应用程序的真实认证工具包。它为代理提供了具体的集成目标,用于登录、会话、RBAC、SSO、MFA 和用户管理,这些功能均由 WorkOS 文档和包发布支持。
```"
license: "MIT"
description: "WorkOS AuthKit 是一个用于 Next.js 应用程序的真实认证工具包。它为代理提供了具体的集成目标,用于登录、会话、RBAC、SSO、MFA 和用户管理,这些功能均由 WorkOS 文档和包发布支持。
```"
github_stars: 146
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
category: "Security & Verification"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 146
  npm_package: "@workos-inc/authkit-nextjs"
  npm_weekly_downloads: 227207

WorkOS AuthKit Next.js 认证工具包

WorkOS AuthKit is a real authentication toolkit for Next.js applications. It gives agents a concrete integration target for login, sessions, RBAC, SSO, MFA, and user management backed by WorkOS docs and package releases.

Prerequisites

npm, pnpm, yarn, docker, go, rust, java

Installation

Use the upstream install or setup path that matches your environment:

  • pnpm i @workos-inc/authkit-nextjs
  • yarn add @workos-inc/authkit-nextjs
  • Make sure the following values are present in your .env.local environment variables file. The client ID and API key can be found in the WorkOS dashboard, and the redirect URI can also b...
  • Make sure this route matches the WORKOS_REDIRECT_URI variable and the configured redirect URI in your WorkOS dashboard. For instance if your redirect URI is http://localhost:3000/auth/callback then you'd put the above...

Requirements and caveats from upstream:

  • WorkOS requires that you have a callback URL to redirect users back to after they've authenticated. In your Next.js app, [expose an API route](https://nextjs.org/docs/app/building-your-application/routing/route-handle...
  • When running in environments like Docker, set the baseURL explicitly to ensure the redirects point to the correct location.
  • | baseURL | undefined | The base URL to use for the redirect URI instead of the one in the request. Required if the app is being run in a container like docker where the hostname can be different from the one in t...

Basic usage or getting-started notes:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Areas to improve

  • 内容主要提取自上游文档 Reported severity: Minor

    Skill 内容大量复制自 WorkOS 官方文档,缺乏原创性说明或针对 OpenClaw 平台的适配指导。

    Recommendation: 建议补充针对 OpenClaw 平台的具体集成示例、常见问题解决方案或最佳实践,以增强独特价值。

Highlights

  • 提供 Next.js 应用中完整的认证解决方案,涵盖登录、会话、RBAC、SSO、MFA 和用户管理
Trigger Precision55/100

Areas to improve

  • 触发词不全 Reported severity: Minor

    description 描述了功能但未提供具体触发关键词或用户意图示例,用户难以准确判断何时调用此 Skill。

    Recommendation: 建议在 description 或 skill_body 开头添加明确的触发关键词,如 'Next.js 认证'、'WorkOS 集成'、'SSO 配置' 等。

Structure and Standards60/100

Areas to improve

  • 文档结构松散 Reported severity: Minor

    内容组织不够清晰,缺少明确的 Phase/步骤划分,部分段落格式混乱。

    Recommendation: 建议采用清晰的步骤化结构(如 Phase 1: 环境准备, Phase 2: 安装依赖, Phase 3: 配置认证等)。

  • 部分内容截断 Reported severity: Minor

    redirect URI 配置说明等重要内容中途截断,影响完整性。

    Recommendation: 请补全所有关键配置说明,确保信息完整可读。

  • 缺少端到端示例 Reported severity: Major

    未提供完整的端到端集成示例,用户难以快速验证和部署。

    Recommendation: 建议添加一个完整的 Next.js 项目集成示例,包括关键代码片段和配置。

Execution Reliability65/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未覆盖主要异常场景(如环境变量缺失、网络错误、认证失败等)的处理建议。

    Recommendation: 建议补充常见错误排查指南和异常处理最佳实践。

Highlights

  • 依赖来源明确(@workos-inc/authkit-nextjs npm 包)
  • 提供了基本的环境变量配置要求
Evidence Verifiability (mean of the first four)64/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 37
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • dashboard.workos.com
  • github.com
  • localhost
  • nextjs.org
  • raw.githubusercontent.com
  • youtu.be

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

npm, pnpm, yarn, docker, go, rust, java

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.