[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74B39EXECFVVGGT4MF7DTGP":3,"skill-same:01M74B39EXECFVVGGT4MF7DTGP":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M74B39EXECFVVGGT4MF7DTGP","clerk-auth",null,"Clerk authentication patterns for React SPA with Supabase integration. Use when implementing authentication flows, protecting routes, managing user sessions, or bridging Clerk JWT to Supabase RLS. Triggers on auth, Clerk, login, signup, JWT, session, or protected route keywords.","aicreator350\u002FaurionOFFICIELLE","aicreator350","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F217751428?v=4","01M731QVHB22WCM6PDX5VFN1RV","01M731QVJ0TAD058M1SW9MY548",0,"MIT","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclerk-auth\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: clerk-auth\ndescription: Clerk authentication patterns for React SPA with Supabase integration. Use when implementing authentication flows, protecting routes, managing user sessions, or bridging Clerk JWT to Supabase RLS. Triggers on auth, Clerk, login, signup, JWT, session, or protected route keywords.\n---\n\n# Clerk Authentication for Aurion Studio\n\n## Auth Architecture\n```\nClerk (frontend) → JWT → TOOL_AUTH_SECRET → Bridge postMessage → Supabase RLS\n```\n\n## Frontend Integration\n- `\u003CClerkProvider>` wraps entire app\n- `\u003CSignedIn>` \u002F `\u003CSignedOut>` for conditional rendering\n- `useUser()` for current user data\n- `useAuth()` for auth state and `getToken()`\n- `useClerk()` for programmatic sign in\u002Fout\n\n## Protected Routes\n```tsx\n\u003CRoute element={\u003CRequireAuth \u002F>}>\n  \u003CRoute path=\"\u002Fdashboard\" element={\u003CDashboard \u002F>} \u002F>\n\u003C\u002FRoute>\n```\n\n## API Authentication\n1. Frontend gets JWT: `const token = await getToken()`\n2. Include in requests: `Authorization: Bearer ${token}`\n3. API verifies: `requireAuth()` in `api\u002F_lib\u002Fmiddleware.ts`\n4. Extract user ID from JWT claims\n\n## Tool Authentication Bridge\n- Tools are on separate domains (cross-origin)\n- Bridge: `postMessage` + `TOOL_AUTH_SECRET`\n- Tool page → requests tool token → receives JWT for tool domain\n- Endpoint: `POST \u002Fapi\u002Ftool-token`\n- CSRF token REQUIRED on this POST!\n\n## Supabase RLS Integration\n- Clerk JWT includes `sub` (user ID)\n- RLS policies use `auth.uid()` matching Clerk user ID\n- Service role key bypasses RLS (backend only)\n- Never expose service role key to client\n\n## Common Patterns\n```tsx\n\u002F\u002F Get user with credits info\nconst { user } = useUser()\nconst userId = user?.id\n\n\u002F\u002F Authenticated fetch\nconst authFetch = async (url: string, options?: RequestInit) => {\n  const token = await getToken()\n  return fetch(url, {\n    ...options,\n    headers: {\n      ...options?.headers,\n      'Authorization': `Bearer ${token}`,\n      'X-CSRF-Token': getCsrfToken(),\n    },\n  })\n}\n```\n\n## Error Handling\n- 401: Token expired or invalid → redirect to sign in\n- 403: CSRF token missing\u002Finvalid → include X-CSRF-Token header\n- User not found: Clerk webhook creates user in Supabase on signup\n","# Clerk Authentication for Aurion Studio\n\n## Auth Architecture\n```\nClerk (frontend) → JWT → TOOL_AUTH_SECRET → Bridge postMessage → Supabase RLS\n```\n\n## Frontend Integration\n- `\u003CClerkProvider>` wraps entire app\n- `\u003CSignedIn>` \u002F `\u003CSignedOut>` for conditional rendering\n- `useUser()` for current user data\n- `useAuth()` for auth state and `getToken()`\n- `useClerk()` for programmatic sign in\u002Fout\n\n## Protected Routes\n```tsx\n\u003CRoute element={\u003CRequireAuth \u002F>}>\n  \u003CRoute path=\"\u002Fdashboard\" element={\u003CDashboard \u002F>} \u002F>\n\u003C\u002FRoute>\n```\n\n## API Authentication\n1. Frontend gets JWT: `const token = await getToken()`\n2. Include in requests: `Authorization: Bearer ${token}`\n3. API verifies: `requireAuth()` in `api\u002F_lib\u002Fmiddleware.ts`\n4. Extract user ID from JWT claims\n\n## Tool Authentication Bridge\n- Tools are on separate domains (cross-origin)\n- Bridge: `postMessage` + `TOOL_AUTH_SECRET`\n- Tool page → requests tool token → receives JWT for tool domain\n- Endpoint: `POST \u002Fapi\u002Ftool-token`\n- CSRF token REQUIRED on this POST!\n\n## Supabase RLS Integration\n- Clerk JWT includes `sub` (user ID)\n- RLS policies use `auth.uid()` matching Clerk user ID\n- Service role key bypasses RLS (backend only)\n- Never expose service role key to client\n\n## Common Patterns\n```tsx\n\u002F\u002F Get user with credits info\nconst { user } = useUser()\nconst userId = user?.id\n\n\u002F\u002F Authenticated fetch\nconst authFetch = async (url: string, options?: RequestInit) => {\n  const token = await getToken()\n  return fetch(url, {\n    ...options,\n    headers: {\n      ...options?.headers,\n      'Authorization': `Bearer ${token}`,\n      'X-CSRF-Token': getCsrfToken(),\n    },\n  })\n}\n```\n\n## Error Handling\n- 401: Token expired or invalid → redirect to sign in\n- 403: CSRF token missing\u002Finvalid → include X-CSRF-Token header\n- User not found: Clerk webhook creates user in Supabase on signup\n",{"name":5,"description":7},"main","5593cf3c72898ea9fc67225d452fe38f866ba6dd",".claude\u002Fskills\u002Fclerk-auth","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE","https:\u002F\u002Fgithub.com\u002Faicreator350","2026-05-18 03:39:30",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add aicreator350\u002FaurionOFFICIELLE --skill clerk-auth",{"tool":35,"command":36},"bunx","bunx skills add aicreator350\u002FaurionOFFICIELLE --skill clerk-auth",{"tool":38,"command":39},"pnpm","pnpm dlx skills add aicreator350\u002FaurionOFFICIELLE --skill clerk-auth","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclerk-auth\u002FSKILL.md",true,[],[44,53,60,67,74,81],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":48,"licenseFileUrl":49,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M74CAJWR9WB6DX1HF2V461Y0","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M74CAFWC2H75GJ81B39C9RSW","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M74CA9N2HTGCKJ93AE9NQMHA","vercel-react-view-transitions","Guide for implementing smooth, native-feeling animations using React's View Transition API (`\u003CViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter\u002Fexit of components, animate list reorder, implement directional (forward\u002Fback) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-view-transitions\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M74CA364D4EVDXZZQRVK1Z73","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M74C9YQZX1GVS18V0AYCYPZE","vercel-composition-patterns","React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-composition-patterns\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M74C9SEYD6F764Q1JACZX3A6","vercel-cli-with-tokens","Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. \"deploy to vercel\", \"set up vercel\", \"add environment variables to vercel\".","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-cli-with-tokens\u002FSKILL.md",[],[]]