Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问许可证需确认审计异常

nuxt-users努克斯用户

Agent Skill

nuxt-users 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

372

周安装

16

GitHub Stars

54

下载量

131
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rrd108/nuxt-users --skill nuxt-users

简介

nuxt-users 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或协作事项进行整理时使用。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写操作。
  • 当前暂无详细功能说明,需进一步查阅来源仓库获取完整信息。

SKILL.md

Nuxt Users skill

This skill helps you work with the nuxt-users module: user authentication, authorization, database setup, and CLI for Nuxt 3 and Nuxt 4 apps.

When to use this skill

  • User asks to add login, register, or logout to a Nuxt app
  • User needs to set up or change the database (SQLite, MySQL, PostgreSQL) for nuxt-users
  • User wants to run CLI commands: npx nuxt-users migrate, npx nuxt-users create-user
  • User needs to configure permissions, roles, or public routes (whitelist)
  • User is customizing password validation, session duration, or mailer (password reset)
  • User is using composables like useAuthentication, useUsers, usePublicPaths, or usePasswordValidation
  • User is styling or integrating components like NUsersLoginForm, NUsersLogoutLink, NUsersProfileInfo, NUsersResetPasswordForm, NUsersList, NUsersUserForm

Step-by-step: initial setup

  1. Install the module and peer dependencies npm install nuxt-users npm install db0 better-sqlite3 bcrypt nodemailer For MySQL or PostgreSQL, install the corresponding driver (mysql2 or pg) instead of or in addition to better-sqlite3 as required.
  2. Register the module in nuxt.config.ts export default defineNuxtConfig({modules: ['nuxt-users']})
  3. Run migrations From the project root (where nuxt.config.ts lives): npx nuxt-users migrate
  4. Create at least one user npx nuxt-users create-user -e admin@example.com -n "Admin User" -p password123 -r admin Flags: -e email, -n name, -p password, -r role (optional).
  5. Configure permissions (required for protected routes) Without auth.permissions, authenticated users cannot access protected routes. Prefer early configuration: export default defineNuxtConfig({modules: ['nuxt-users'], nuxtUsers: {auth: {permissions: {admin: ['*'], user: ['/profile', '/api/nuxt-users/me']}}}})
  6. Use login in a page

- Use the NUsersLoginForm component and handle @success by calling login(user) from useAuthentication(). - Optionally redirect after login (e.g. navigateTo('/')).

Configuration reference (nuxt.config.ts)

All options live under nuxtUsers in nuxt.config.ts.

AreaKeyNotes
Databaseconnector.name`'sqlite' \'mysql' \'postgresql'`
Databaseconnector.optionspath (SQLite), or host, port, user, password, database (MySQL/PostgreSQL)
APIapiBasePathDefault '/api/nuxt-users'
Tablestables.users, tables.personalAccessTokens, tables.passwordResetTokens, tables.migrationsCustom table names
MailermailerNodemailer config for password reset emails
URLspasswordResetUrl, emailConfirmationUrlPaths for redirects
Authauth.whitelistPublic routes (e.g. ['/register']); /login is always public
Authauth.tokenExpirationMinutes (default 1440)
Authauth.rememberMeExpirationDays (default 30)
Authauth.permissionsRole → paths (e.g. admin: ['*'], user: ['/profile'])
Authauth.googleGoogle OAuth: clientId, clientSecret, callbackUrl, etc.
PasswordpasswordValidationminLength, requireUppercase, requireLowercase, requireNumbers, requireSpecialChars, preventCommonPasswords
DatahardDeletetrue = hard delete, false = soft delete (default)
Localelocale.default, locale.texts, locale.fallbackLocaleLocalization

Runtime config is also supported: use runtimeConfig.nuxtUsers for env-based or server-only settings. The CLI merges that when loadNuxt succeeds from the project root. If loadNuxt fails (no nuxt.config, output-only deploy, or missing nuxt/@nuxt/kit under --omit=dev), the CLI falls back to DB_* env vars and defaults for other options — custom tables / passwordValidation from config may not apply. See docs/user-guide/configuration.md (CLI sections).

CLI commands

Run from the project root so nuxt.config.ts (and optionally .env) are found.

  • Migrations npx nuxt-users migrate
  • Create user npx nuxt-users create-user -e <email> -n "<name>" -p <password> [-r <role>]
  • Legacy/table creation (if needed for older setups) npx nuxt-users create-users-table npx nuxt-users create-personal-access-tokens-table npx nuxt-users create-password-reset-tokens-table npx nuxt-users create-migrations-table
Production: The CLI is not inside .output/ alone; you need nuxt-users (and peers) installed where you run Node. npx may download the package if absent. A package.json script ("nuxt-users": "nuxt-users") uses the local binary. Full config requires the app root with nuxt.config and resolvable @nuxt/kit; build-only or omit=dev deploys often hit env fallback (DB_*) instead — see configuration docs.

Composables (auto-imported)

  • useAuthentication()user, isAuthenticated, login(user, rememberMe?), logout(), fetchUser(useSSR?), initializeUser()
  • useUsers() — Admin: users, pagination, loading, error, fetchUsers(page?, limit?), updateUser, addUser, removeUser(userId)
  • usePublicPaths()getPublicPaths(), getAccessiblePaths(), isPublicPath(path), isAccessiblePath(path, method?)
  • usePasswordValidation(moduleOptions?, options?)validate(password), isValid, errors, strength, score, clearValidation()
  • useNuxtUsersLocale()t(key, params?), currentLocale, fallbackLocale

Components

  • NUsersLoginForm — Login form; use @success to call login(user) from useAuthentication()
  • NUsersLogoutLink — Logout link/button
  • NUsersProfileInfo — Display profile
  • NUsersResetPasswordForm — Password reset form
  • NUsersList — List users (admin)
  • NUsersUserForm — Create/edit user form

Common edge cases

  1. Users get redirected to login on protected routes Configure nuxtUsers.auth.permissions so each role has access to the routes they need (e.g. admin: ['*'], user: ['/profile']).
  2. CLI says config not found or uses wrong tables / password rules Run the CLI from the directory that contains nuxt.config. If you only deploy .output/ or run with nuxt omitted from production, loadNuxt may fail and the CLI uses DB_* fallback with defaults for non-connector options. Set DB_* (and see docs) or run the CLI from CI with a full app checkout.
  3. Migrations table missing Run npx nuxt-users migrate once from the project root. The module will warn at runtime if the migrations table is missing.
  4. Password validation too strict Adjust nuxtUsers.passwordValidation (e.g. lower minLength, set requireUppercase/requireNumbers/requireSpecialChars to false). Do not disable all checks in production without good reason.
  5. Database driver errors Install the correct peer: SQLite → better-sqlite3, MySQL → mysql2, PostgreSQL → pg. Ensure connector.name and connector.options match the driver and environment (e.g. correct host, port, credentials).
  6. Google OAuth Set nuxtUsers.auth.google with clientId, clientSecret, and optionally callbackUrl, successRedirect, errorRedirect, scopes, allowAutoRegistration.

File references

  • Project LLM context and config types: llms.txt in the repo root
  • Full docs: https://nuxt-users.webmania.cc/
  • Getting started and examples: ../../docs/user-guide/getting-started.md, ../../docs/examples/basic-setup.md
  • Authorization: ../../docs/user-guide/authorization.md
  • Configuration details: ../../docs/user-guide/configuration.md

Keep nuxtUsers config and permissions in sync with the app’s roles and routes; use guard clauses and early returns when implementing custom auth logic.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.47%
按下载量换算49

Claude

29.86%
按下载量换算39

Cursor

19.9%
按下载量换算26

Gemini CLI

9.44%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills