Token导航 LogoToken导航

Agent Skill · 开发

authentication(身份认证)

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

authentication 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 19,668。

总安装 261周安装 11GitHub Stars 1下载 92核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:authentication(身份认证)
来源仓库:https://github.com/cheehoolabs/spureeskills
仓库路径:skills/authentication
安装命令:
npx skills add https://github.com/cheehoolabs/spureeskills --skill authentication
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cheehoolabs/spureeskills --skill authentication

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

Authentication 辅助进行安全审计与权限检查,识别凭据风险与认证漏洞。支持 JWT 令牌管理、API 密钥轮换及 OAuth2 流程模拟等关键操作。适合生成安全复核清单并分析鉴权逻辑中的潜在隐患点。处理敏感信息时必须确认最小权限原则,并对输出结果进行脱敏处理。

authentication 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/authentication

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/cheehoolabs/spureeskills --skill authenticatio…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

authentication 怎么安装?

在终端执行 npx skills add https://github.com/cheehoolabs/spureeskills --skill authentication。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

authentication 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

authentication 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

authentication 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

authentication 用的人多吗?

公开数据是累计安装 261 次,近一周安装 11 次,下载 92 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

authentication 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
authentication

身份认证 · 本页

2611接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Authentication

Overview

Spuree is an agent-friendly cloud storage. Projects contain folders (nestable) and files at any level. Authenticate with a JWT token or API key to access all V1 endpoints.

Tokens follow OAuth2 conventions and are issued as NextAuth-compatible JWTs.

Use this skill when an agent needs to:

  • Set up API access for the first time
  • Log in with email and password to get an access token
  • Refresh an expired access token using a refresh token
  • Exchange an authorization code for tokens (browser SSO flow)
  • Create, list, or revoke API keys

Getting Started

First-time setup — three options:

Option A: User creates API key from web UI

  1. Create a Spuree account at studio.spuree.com
  2. Go to studio.spuree.com/api-keys and create a key. Save it immediately — the key is only shown once.
  3. Set the environment variable: export SPUREE_API_KEY="<your-api-key>"

Option B: Agent logs in with email and password

If the user provides their email and password, the agent can set up its own API key:

  1. Log in with POST /auth/token to get a temporary JWT
  2. Create an API key with POST /v1/api-keys
  3. Store the key in $SPUREE_API_KEY

Option C: Agent opens browser for SSO login

The agent can authenticate without the user sharing their password:

  1. Start a local HTTP server on an ephemeral port (49152–65535) to receive the callback.
  2. Open the user's browser to the Spuree sign-in page with source=api and the port: https://studio.spuree.com/auth/signin?source=api&port=<port> The user logs in via Google SSO (or email/password) in the browser.
  3. After login, Spuree redirects to http://localhost:<port>/callback?token=<exchange-code>. The agent receives the exchange code from this callback (valid for 60 seconds).
  4. Exchange the code for a JWT: curl -X POST "https://studio.spuree.com/api/auth/token/exchange" \ -H "Content-Type: application/json" \ -d '{"code": "<exchange-code>"}'
  5. Create an API key with the JWT (POST /v1/api-keys) and store it in $SPUREE_API_KEY.

Once $SPUREE_API_KEY is set, the agent authenticates with X-API-Key: $SPUREE_API_KEY on all requests. No login or token refresh needed.

Verify it works — ask your agent:

"List my Spuree projects"

The agent should show you which projects you have access to. If it works, your API key is set up correctly.

Try it out — ask your agent something like:

"Upload this file to my Spuree project"

Base URLs

Spuree uses two hosts:

HostPurposeEndpoints
https://studio.spuree.com/apiAuthentication (login, refresh, exchange)/auth/token, /auth/token/refresh, /auth/token/exchange
https://data.spuree.com/apiAll V1 data APIs (projects, files, etc.)/v1/projects, /v1/files, /v1/api-keys,...

All other skills in this repo use https://data.spuree.com/api. Only the token endpoints below use studio.spuree.com.

Token Lifecycle

TokenLifetimeFormat
access_token1 hourNextAuth JWT
refresh_token30 daysOpaque hex string
exchange_code60 secondsOpaque string

The access_token is what you pass as Authorization: Bearer <access_token> to V1 API endpoints.

Alternatively, you can create API keys for long-lived, non-interactive access. API keys are passed via X-API-Key header and can be scoped to specific organizations.

Token Response Format

All three endpoints return the same OAuth2-compliant response:

{
  "access_token": "eyJhbGciOiJkaXIiLCJlbmMiOi...",
  "refresh_token": "a1b2c3d4e5f6...",
  "expires_in": 3600,
  "user": {
    "id": "64a7b8c9d1e2f3a4b5c6d7e8",
    "email": "user@example.com",
    "name": "User Name",
    "image": "https://...",
    "organizationId": "64a7b8c9d1e2f3a4b5c6d7f0",
    "role": "admin",
    "workspaces": [
      {
        "workspaceId": "64a7b8c9d1e2f3a4b5c6d7f1",
        "workspaceName": "My Workspace",
        "role": "owner"
      }
    ]
  }
}

Endpoints

POST /auth/token

Log in with email and password.

Description: Validates credentials and returns an access token and refresh token. Rate limited to 10 requests per minute per IP.

Request Body:

FieldTypeRequiredDescription
emailstringYesUser's email address
passwordstringYesUser's password

Status Codes:

CodeDescription
200Login successful, tokens returned
400Invalid request body or missing fields
401Invalid email or password, or account locked
429Rate limit exceeded (10 req/min)
500Internal server error

Error Messages (401):

MessageCause
Invalid email or passwordWrong credentials
Password is not set for this userUser registered via OAuth only
Account is temporarily locked...Too many failed attempts (5 failures → 15 min lock)

Example:

curl -X POST "https://studio.spuree.com/api/auth/token" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "password": "mypassword"
  }'

POST /auth/token/refresh

Refresh an expired access token.

Description: Exchanges a valid refresh token for a new access token and refresh token pair. The old refresh token is atomically revoked to prevent reuse. Rate limited to 10 requests per minute per IP.

Request Body:

FieldTypeRequiredDescription
refresh_tokenstringYesThe refresh token from a previous login or refresh

Status Codes:

CodeDescription
200New tokens issued
400Missing refresh token
401Invalid or expired refresh token
429Rate limit exceeded
500Internal server error

Example:

curl -X POST "https://studio.spuree.com/api/auth/token/refresh" \
  -H "Content-Type: application/json" \
  -d '{
    "refresh_token": "a1b2c3d4e5f6..."
  }'

Notes:

  • Each refresh token can only be used once. After refresh, use the new refresh_token for subsequent refreshes.
  • If a refresh token is reused (already revoked), it returns 401.

POST /auth/token/exchange

Exchange an authorization code for tokens.

Description: Exchanges a one-time authorization code for an access token and refresh token. Used by agents and desktop apps that authenticate via the browser (see Getting Started Option C). The login flow starts at studio.spuree.com/auth/signin?source=api — after the user completes login, the exchange code is delivered to the agent's local callback server. Rate limited to 10 requests per minute per IP.

Request Body:

FieldTypeRequiredDescription
codestringYesThe authorization exchange code

Status Codes:

CodeDescription
200Tokens issued
400Missing exchange code
401Invalid or expired exchange code
429Rate limit exceeded
500Internal server error

Example:

curl -X POST "https://studio.spuree.com/api/auth/token/exchange" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "exchange-code-here"
  }'

Notes:

  • Exchange codes expire after 60 seconds.
  • Each code can only be used once.

API Keys

API keys provide long-lived authentication for automated workflows. They are scoped to a user and optionally restricted to specific organizations.

All V1 endpoints accept either Authorization: Bearer <jwt> or X-API-Key: <api-key>. When both are provided, JWT takes priority.

POST /v1/api-keys

Create a new API key.

Auth: Requires JWT (Bearer token only, not API key).

Request Body:

FieldTypeRequiredDescription
namestringYesDescriptive name for the key
scopesobjectNo{"organizations": ["orgId1",...]} — restrict to specific orgs. Omit for all orgs.
expiresAtdatetimeNoExpiration timestamp (ISO 8601). Omit for no expiry.

Response:

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "CI Pipeline Key",
  "key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
  "createdAt": "2024-01-15T10:00:00Z",
  "expiresAt": null,
  "lastUsedAt": null,
  "scopes": { "organizations": ["64a7b8c9d1e2f3a4b5c6d7f0"] },
  "status": "active"
}
Important: The key field is only returned once at creation. Store it securely.

Example:

curl -X POST "https://data.spuree.com/api/v1/api-keys" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "CI Pipeline Key",
    "scopes": { "organizations": ["64a7b8c9d1e2f3a4b5c6d7f0"] }
  }'

GET /v1/api-keys

List all active API keys for the authenticated user.

Auth: Requires JWT (Bearer token only).

Response:

[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "CI Pipeline Key",
    "createdAt": "2024-01-15T10:00:00Z",
    "expiresAt": null,
    "lastUsedAt": "2024-03-10T14:30:00Z",
    "scopes": { "organizations": ["64a7b8c9d1e2f3a4b5c6d7f0"] },
    "status": "active"
  }
]

Example:

curl "https://data.spuree.com/api/v1/api-keys" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

DELETE /v1/api-keys/{key_id}

Revoke an API key (soft delete).

Auth: Requires JWT (Bearer token only).

Response:

{ "success": true }

Example:

curl -X DELETE "https://data.spuree.com/api/v1/api-keys/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

Token Storage

Store tokens in environment variables using these standard names:

SPUREE_ACCESS_TOKEN=eyJhbGci...    # JWT access token (1 hour)
SPUREE_REFRESH_TOKEN=a1b2c3d4...   # For refreshing access token (30 days)
SPUREE_API_KEY=a1b2c3d4...             # API key (64-char hex, long-lived)

All Spuree skills reference these variable names. V1 endpoints accept either Authorization: Bearer $SPUREE_ACCESS_TOKEN or X-API-Key: $SPUREE_API_KEY.

Common Patterns

Agent Login Flow

  1. Obtain tokens with email and password: POST /auth/token → {access_token, refresh_token, expires_in, user}
  2. Use access token for V1 API calls: Authorization: Bearer {access_token}
  3. Refresh before the token expires (every ~55 minutes): POST /auth/token/refresh → {access_token, refresh_token,...}

Token Refresh Strategy

  • expires_in is 3600 (1 hour). Refresh proactively at ~55 minutes to avoid failed requests.
  • Always store and use the latest refresh_token — old ones are revoked after use.
  • If refresh fails with 401, the user must log in again with email/password.

API Key for Automation

For CI/CD pipelines or long-running agents that can't refresh tokens:

  1. Log in to get a JWT
  2. Create an API key scoped to the needed organizations: POST /v1/api-keys → {key: "a1b2c3d4..."}
  3. Use the API key for all subsequent requests: X-API-Key: a1b2c3d4...

API keys don't expire by default (unless expiresAt is set) and don't need refreshing.

Error Handling

ErrorCauseResolution
401 (invalid credentials)Wrong email or passwordVerify credentials
401 (account locked)5 failed login attemptsWait 15 minutes, then retry
401 (invalid refresh token)Token expired, revoked, or reusedLog in again with email/password
401 (invalid exchange code)Code expired or already usedRequest a new exchange code
429 (rate limit)More than 10 requests/min from same IPWait and retry with backoff

Rate Limits

All authentication endpoints share the same rate limit: 10 requests per minute per IP. Implement exponential backoff when receiving 429 responses.

平台分布

Codex

37.97%
按下载量换算35

Claude

29.05%
按下载量换算27

Cursor

20.07%
按下载量换算18

Gemini CLI

9.63%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills