[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BY25A40A3RNQBXC1R1T8QB":3,"skill-same:01M6BY25A40A3RNQBXC1R1T8QB":103},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6BY25A40A3RNQBXC1R1T8QB","nuxt-better-auth",null,"Use when implementing auth in Nuxt apps with @onmax\u002Fnuxt-better-auth - provides client composables, server helpers, route protection, session refresh helpers, and Better Auth plugin integration.","wolfstar-project\u002Fwolfstar.rocks","wolfstar-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F109528280?v=4","01M6BXZW9J3Y1DWPNSBBWC2BVY","wolfstar","01M6BXZWDRD3C71GVE58BWXW1D",0,"MIT","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002FSKILL.md",[],[19,20,21,22,23,24],"auth","nuxt","nuxt better auth","plugin","integration","server","2026-11-10 10:12:30",false,"---\nname: nuxt-better-auth\ndescription: Use when implementing auth in Nuxt apps with @onmax\u002Fnuxt-better-auth - provides client composables, server helpers, route protection, session refresh helpers, and Better Auth plugin integration.\nlicense: MIT\n---\n\n# Nuxt Better Auth\n\nAuthentication module for Nuxt 4+ built on [Better Auth](https:\u002F\u002Fwww.better-auth.com\u002F). It adds Nuxt-specific setup, route protection, server helpers, and typed auth state.\n\n> Alpha status: the package is still pre-stable. Verify behavior against the current docs and source before relying on edge cases.\n\n## When to Use\n\n- Installing\u002Fconfiguring `@onmax\u002Fnuxt-better-auth`\n- Implementing sign-in, sign-up, sign-out, or custom auth flows\n- Protecting routes (client and server)\n- Accessing user session in API routes\n- Refreshing session state after custom auth endpoints or server-side session changes\n- Integrating Better Auth plugins (admin, passkey, 2FA)\n- Setting up database with NuxtHub\n- Using clientOnly mode for external auth backends\n\n## Available Guidance\n\n| File                                                                 | Topics                                                                 |\n| -------------------------------------------------------------------- | ---------------------------------------------------------------------- |\n| **[references\u002Finstallation.md](references\u002Finstallation.md)**         | install flow, env vars, config files                                   |\n| **[references\u002Fclient-auth.md](references\u002Fclient-auth.md)**           | `useUserSession`, client methods, redirects, loading states, custom actions |\n| **[references\u002Fserver-auth.md](references\u002Fserver-auth.md)**           | `serverAuth`, session helpers, `refreshSessionCookieCache`, API enforcement |\n| **[references\u002Froute-protection.md](references\u002Froute-protection.md)** | route rules, page meta, API protection                                 |\n| **[references\u002Fplugins.md](references\u002Fplugins.md)**                   | plugin pairing between server and client                               |\n| **[references\u002Fdatabase.md](references\u002Fdatabase.md)**                 | NuxtHub schema generation, secondary storage                           |\n| **[references\u002Fclient-only.md](references\u002Fclient-only.md)**           | external Better Auth backends and `clientOnly` mode                    |\n| **[references\u002Ftypes.md](references\u002Ftypes.md)**                       | public auth types and augmentation                                     |\n\n## Usage Pattern\n\n- Installing module? → [references\u002Finstallation.md](references\u002Finstallation.md)\n- Login\u002Fsignup forms? → [references\u002Fclient-auth.md](references\u002Fclient-auth.md)\n- API route protection? → [references\u002Fserver-auth.md](references\u002Fserver-auth.md)\n- Route rules\u002Fpage meta? → [references\u002Froute-protection.md](references\u002Froute-protection.md)\n- Using plugins? → [references\u002Fplugins.md](references\u002Fplugins.md)\n- Database setup? → [references\u002Fdatabase.md](references\u002Fdatabase.md)\n- External auth backend? → [references\u002Fclient-only.md](references\u002Fclient-only.md)\n- TypeScript types? → [references\u002Ftypes.md](references\u002Ftypes.md)\n\nDo not load every reference file by default. Pick the smallest file that matches the task.\n\n## Key Concepts\n\n| Concept                | Description                                                     |\n| ---------------------- | --------------------------------------------------------------- |\n| `useUserSession()`     | Client composable - user, session, loggedIn, refresh, sign-out |\n| `runWithSessionRefresh()` | Refresh local session after custom auth endpoints |\n| `requireUserSession()` | Server helper - throws 401\u002F403 if not authenticated             |\n| `refreshSessionCookieCache()` | Refresh Better Auth's cached session cookie after server updates |\n| `auth` route mode      | `'user'`, `'guest'`, `{ user: {...} }`, or `false`              |\n| `serverAuth()`         | Get Better Auth instance in server routes                       |\n\n## Quick Reference\n\n```ts\n\u002F\u002F Client: useUserSession()\nconst { user, loggedIn, signIn, signOut } = useUserSession()\nawait signIn.email({ email, password }, { onSuccess: () => navigateTo('\u002F') })\n```\n\n```ts\n\u002F\u002F Client: custom auth endpoint\nawait runWithSessionRefresh(() => $fetch('\u002Fapi\u002Fcustom-login', { method: 'POST', body }))\n```\n\n```ts\n\u002F\u002F Server: requireUserSession()\nconst { user } = await requireUserSession(event, { user: { role: 'admin' } })\n```\n\n```ts\n\u002F\u002F Server: after updating fields returned by session helpers\nawait updateCurrentUser(event)\nawait refreshSessionCookieCache(event)\n```\n\n```ts\n\u002F\u002F nuxt.config.ts: Route protection\nrouteRules: {\n  '\u002Fadmin\u002F**': { auth: { user: { role: 'admin' } } },\n  '\u002Flogin': { auth: 'guest' },\n  '\u002Fapp\u002F**': { auth: 'user' }\n}\n```\n\nBroad rules such as `'\u002F**': { auth: 'user' }` skip framework\u002Fmodule internals like `\u002F_nuxt\u002F**`, `\u002F_ipx\u002F**`, `\u002Fapi\u002Fauth\u002F**`, `\u002Fapi\u002F_better-auth\u002F**`, and `\u002Fapi\u002F_nuxt_icon\u002F**`.\n\n## Resources\n\n- [Documentation site](https:\u002F\u002Fbetter-auth.nuxt.dev)\n- [Better Auth Docs](https:\u002F\u002Fwww.better-auth.com\u002F)\n","# Nuxt Better Auth\n\nAuthentication module for Nuxt 4+ built on [Better Auth](https:\u002F\u002Fwww.better-auth.com\u002F). It adds Nuxt-specific setup, route protection, server helpers, and typed auth state.\n\n> Alpha status: the package is still pre-stable. Verify behavior against the current docs and source before relying on edge cases.\n\n## When to Use\n\n- Installing\u002Fconfiguring `@onmax\u002Fnuxt-better-auth`\n- Implementing sign-in, sign-up, sign-out, or custom auth flows\n- Protecting routes (client and server)\n- Accessing user session in API routes\n- Refreshing session state after custom auth endpoints or server-side session changes\n- Integrating Better Auth plugins (admin, passkey, 2FA)\n- Setting up database with NuxtHub\n- Using clientOnly mode for external auth backends\n\n## Available Guidance\n\n| File                                                                 | Topics                                                                 |\n| -------------------------------------------------------------------- | ---------------------------------------------------------------------- |\n| **[references\u002Finstallation.md](references\u002Finstallation.md)**         | install flow, env vars, config files                                   |\n| **[references\u002Fclient-auth.md](references\u002Fclient-auth.md)**           | `useUserSession`, client methods, redirects, loading states, custom actions |\n| **[references\u002Fserver-auth.md](references\u002Fserver-auth.md)**           | `serverAuth`, session helpers, `refreshSessionCookieCache`, API enforcement |\n| **[references\u002Froute-protection.md](references\u002Froute-protection.md)** | route rules, page meta, API protection                                 |\n| **[references\u002Fplugins.md](references\u002Fplugins.md)**                   | plugin pairing between server and client                               |\n| **[references\u002Fdatabase.md](references\u002Fdatabase.md)**                 | NuxtHub schema generation, secondary storage                           |\n| **[references\u002Fclient-only.md](references\u002Fclient-only.md)**           | external Better Auth backends and `clientOnly` mode                    |\n| **[references\u002Ftypes.md](references\u002Ftypes.md)**                       | public auth types and augmentation                                     |\n\n## Usage Pattern\n\n- Installing module? → [references\u002Finstallation.md](references\u002Finstallation.md)\n- Login\u002Fsignup forms? → [references\u002Fclient-auth.md](references\u002Fclient-auth.md)\n- API route protection? → [references\u002Fserver-auth.md](references\u002Fserver-auth.md)\n- Route rules\u002Fpage meta? → [references\u002Froute-protection.md](references\u002Froute-protection.md)\n- Using plugins? → [references\u002Fplugins.md](references\u002Fplugins.md)\n- Database setup? → [references\u002Fdatabase.md](references\u002Fdatabase.md)\n- External auth backend? → [references\u002Fclient-only.md](references\u002Fclient-only.md)\n- TypeScript types? → [references\u002Ftypes.md](references\u002Ftypes.md)\n\nDo not load every reference file by default. Pick the smallest file that matches the task.\n\n## Key Concepts\n\n| Concept                | Description                                                     |\n| ---------------------- | --------------------------------------------------------------- |\n| `useUserSession()`     | Client composable - user, session, loggedIn, refresh, sign-out |\n| `runWithSessionRefresh()` | Refresh local session after custom auth endpoints |\n| `requireUserSession()` | Server helper - throws 401\u002F403 if not authenticated             |\n| `refreshSessionCookieCache()` | Refresh Better Auth's cached session cookie after server updates |\n| `auth` route mode      | `'user'`, `'guest'`, `{ user: {...} }`, or `false`              |\n| `serverAuth()`         | Get Better Auth instance in server routes                       |\n\n## Quick Reference\n\n```ts\n\u002F\u002F Client: useUserSession()\nconst { user, loggedIn, signIn, signOut } = useUserSession()\nawait signIn.email({ email, password }, { onSuccess: () => navigateTo('\u002F') })\n```\n\n```ts\n\u002F\u002F Client: custom auth endpoint\nawait runWithSessionRefresh(() => $fetch('\u002Fapi\u002Fcustom-login', { method: 'POST', body }))\n```\n\n```ts\n\u002F\u002F Server: requireUserSession()\nconst { user } = await requireUserSession(event, { user: { role: 'admin' } })\n```\n\n```ts\n\u002F\u002F Server: after updating fields returned by session helpers\nawait updateCurrentUser(event)\nawait refreshSessionCookieCache(event)\n```\n\n```ts\n\u002F\u002F nuxt.config.ts: Route protection\nrouteRules: {\n  '\u002Fadmin\u002F**': { auth: { user: { role: 'admin' } } },\n  '\u002Flogin': { auth: 'guest' },\n  '\u002Fapp\u002F**': { auth: 'user' }\n}\n```\n\nBroad rules such as `'\u002F**': { auth: 'user' }` skip framework\u002Fmodule internals like `\u002F_nuxt\u002F**`, `\u002F_ipx\u002F**`, `\u002Fapi\u002Fauth\u002F**`, `\u002Fapi\u002F_better-auth\u002F**`, and `\u002Fapi\u002F_nuxt_icon\u002F**`.\n\n## Resources\n\n- [Documentation site](https:\u002F\u002Fbetter-auth.nuxt.dev)\n- [Better Auth Docs](https:\u002F\u002Fwww.better-auth.com\u002F)\n",{"name":5,"license":15,"description":7},"main","218944972a37a59fccc9ee1474e524ddc83048aa",".agents\u002Fskills\u002Fnuxt-better-auth","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks","https:\u002F\u002Fwolfstar.rocks","https:\u002F\u002Fgithub.com\u002Fwolfstar-project","https:\u002F\u002Fwww.wolfstar.rocks","All projects for bot WolfStar","2026-11-15 03:09:26",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add wolfstar-project\u002Fwolfstar.rocks --skill nuxt-better-auth",{"tool":45,"command":46},"bunx","bunx skills add wolfstar-project\u002Fwolfstar.rocks --skill nuxt-better-auth",{"tool":48,"command":49},"pnpm","pnpm dlx skills add wolfstar-project\u002Fwolfstar.rocks --skill nuxt-better-auth","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002FSKILL.md",true,[53,59,65,69,73,77,81,85,89,93,97],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"assets\u002FREADME.md","ASSET","资产文件",525,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fdevops\u002Ffairdb-operations-kit\u002Fskills\u002Ffairdb-backup-manager\u002Fassets\u002FREADME.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fclient-auth.md","REFERENCE","参考文档",2350,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Fclient-auth.md",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fclient-only.md",716,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Fclient-only.md",{"path":70,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fdatabase.md",991,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Fdatabase.md",{"path":74,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Finstallation.md",1835,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Finstallation.md",{"path":78,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fplugins.md",1500,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Fplugins.md",{"path":82,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002FREADME.md",580,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fdevops\u002Ffairdb-operations-kit\u002Fskills\u002Ffairdb-backup-manager\u002Freferences\u002FREADME.md",{"path":86,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Froute-protection.md",1563,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Froute-protection.md",{"path":90,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fserver-auth.md",2461,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Fserver-auth.md",{"path":94,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Ftypes.md",945,"https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnuxt-better-auth\u002Freferences\u002Ftypes.md",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002FREADME.md","SCRIPT","脚本",622,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fdevops\u002Ffairdb-operations-kit\u002Fskills\u002Ffairdb-backup-manager\u002Fscripts\u002FREADME.md",[104,113,120,127,134,141],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":112},"01M78KKTSM5S1W6F9YHRZ5YN43","web-perf","Audit, diagnose, or optimize website loading and interaction performance, Core Web Vitals, and Lighthouse performance scores.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.skills\u002Fweb-perf\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":112},"01M78KKPVCGH8JK1H0MTFVXWJW","unlighthouse","Run Google Lighthouse on every page of a site with the unlighthouse CLI, and fail CI on low scores with unlighthouse-ci. Use when a task mentions unlighthouse, unlighthouse-ci, site-wide Lighthouse scans, performance budgets in CI, unlighthouse.config.ts, defineUnlighthouseConfig, scanner.exclude, dynamic sampling, the authenticate hook, or a scan that never exits, skips pages, or refuses to clear its output folder.","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.skills\u002Funlighthouse\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":112},"01M78KKJB1ZC28DHQ3X5XEFCBD","performance-optimization","Optimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.skills\u002Fperformance-optimization\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":112},"01M78KKDN8C11EFW7AWVZ30QZP","fixing-accessibility","Audit and fix HTML accessibility issues including ARIA labels, keyboard navigation, focus management, color contrast, and form errors. Use when adding interactive controls, forms, dialogs, or reviewing WCAG compliance.","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.skills\u002Ffixing-accessibility\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":112},"01M78KK9BTHJ2ZQ9XZC024DKB0","better-accessibility","Reviews and fixes keyboard and focus behavior, ARIA, accessible names, forms, screen-reader announcements, motion and zoom in your project against WCAG 2.2.","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.skills\u002Fbetter-accessibility\u002FSKILL.md",[],[],{"skillNo":142,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":112},"01M78KK5ZK3D1THNMP5JAB3HFS","https:\u002F\u002Fgithub.com\u002Fwolfstar-project\u002Fwolfstar.rocks\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-perf\u002FSKILL.md",[],[]]