[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76TGT93ENKRP7CAMGPAS5FW":3,"skill-same:01M76TGT93ENKRP7CAMGPAS5FW":101},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M76TGT93ENKRP7CAMGPAS5FW","clerk-nextjs-patterns",null,"Advanced Next.js patterns - middleware, Server Actions, caching with Clerk.","SatangThevalue\u002Fai-skills","SatangThevalue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F17944930?v=4","01M756VHQQ58XSM5PDS03W79VY","Sa-Tang","01M756VHRNYXRY7HM230S4YHVV",0,"MIT","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: clerk-nextjs-patterns\ndescription: Advanced Next.js patterns - middleware, Server Actions, caching with\n  Clerk.\nlicense: MIT\nallowed-tools: WebFetch\ncompatibility: Requires NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY. For manual JWT verification (standalone API servers without Clerk middleware), additionally requires CLERK_JWT_KEY or CLERK_PEM_PUBLIC_KEY.\nmetadata:\n  author: clerk\n  version: 2.2.0\n---\n\n# Next.js Patterns\n\n> **Version**: Check `package.json` for the SDK version — see `clerk` skill for the version table. Core 2 differences are noted inline with `> **Core 2 ONLY (skip if current SDK):**` callouts.\n\nFor basic setup, see `clerk-setup` skill.\n\n## What Do You Need?\n\n| Task | Reference |\n|------|-----------|\n| Server vs client auth (`auth()` vs hooks) | references\u002Fserver-vs-client.md |\n| Configure middleware (public-first vs protected-first) | references\u002Fmiddleware-strategies.md |\n| Protect Server Actions | references\u002Fserver-actions.md |\n| API route auth (401 vs 403) | references\u002Fapi-routes.md |\n| Cache auth data (user-scoped caching) | references\u002Fcaching-auth.md |\n\n## References\n\n| Reference | Description |\n|-----------|-------------|\n| `references\u002Fserver-vs-client.md` | `await auth()` vs hooks |\n| `references\u002Fmiddleware-strategies.md` | Public-first vs protected-first, `proxy.ts` (Next.js \u003C=15: `middleware.ts`) |\n| `references\u002Fserver-actions.md` | Protect mutations |\n| `references\u002Fapi-routes.md` | 401 vs 403 |\n| `references\u002Fcaching-auth.md` | User-scoped caching |\n\n## Mental Model\n\nServer vs Client = different auth APIs:\n- **Server**: `await auth()` from `@clerk\u002Fnextjs\u002Fserver` (async!)\n- **Client**: `useAuth()` hook from `@clerk\u002Fnextjs` (sync)\n\nNever mix them. Server Components use server imports, Client Components use hooks.\n\nKey properties from `auth()`:\n- `isAuthenticated` — boolean, replaces the `!!userId` pattern\n- `sessionStatus` — `'active'` | `'pending'`, for detecting incomplete session tasks\n- `userId`, `orgId`, `orgSlug`, `has()`, `protect()` — unchanged\n\n> **Core 2 ONLY (skip if current SDK):** `isAuthenticated` and `sessionStatus` are not available. Check `!!userId` instead.\n\n## Minimal Pattern\n\n```typescript\n\u002F\u002F Server Component\nimport { auth } from '@clerk\u002Fnextjs\u002Fserver'\n\nexport default async function Page() {\n  const { isAuthenticated, userId } = await auth()  \u002F\u002F MUST await!\n  if (!isAuthenticated) return \u003Cp>Not signed in\u003C\u002Fp>\n  return \u003Cp>Hello {userId}\u003C\u002Fp>\n}\n```\n\n> **Core 2 ONLY (skip if current SDK):** `isAuthenticated` is not available. Use `if (!userId)` instead.\n\n### Conditional Rendering with `\u003CShow>`\n\nFor client-side conditional rendering based on auth state. `\u003CShow>` covers both authentication checks and authorization (feature, plan, role, permission) in one component.\n\n**Authentication check:**\n\n```tsx\nimport { Show } from '@clerk\u002Fnextjs'\n\n\u003CShow when=\"signed-in\" fallback={\u003Cp>Please sign in\u003C\u002Fp>}>\n  \u003CDashboard \u002F>\n\u003C\u002FShow>\n```\n\n**Authorization checks (B2B):**\n\n```tsx\n\u002F\u002F Feature-based (preferred — features can move between plans without redeploy)\n\u003CShow when={{ feature: 'analytics' }} fallback={\u003CUpgradePrompt \u002F>}>\n  \u003CAnalyticsDashboard \u002F>\n\u003C\u002FShow>\n\n\u002F\u002F Permission-based (preferred over role-based for granular access)\n\u003CShow when={{ permission: 'org:invoices:create' }}>\n  \u003CNewInvoiceButton \u002F>\n\u003C\u002FShow>\n\n\u002F\u002F Plan-based (tier-level gating)\n\u003CShow when={{ plan: 'pro' }}>\n  \u003CProFeatures \u002F>\n\u003C\u002FShow>\n\n\u002F\u002F Role-based (use sparingly — prefer permission)\n\u003CShow when={{ role: 'org:admin' }}>\n  \u003CAdminPanel \u002F>\n\u003C\u002FShow>\n```\n\n**Callback for complex logic:**\n\n```tsx\n\u003CShow when={(has) => has({ role: 'org:admin' }) || has({ role: 'org:billing_manager' })}>\n  \u003CBillingActions \u002F>\n\u003C\u002FShow>\n```\n\n> **Core 2 ONLY (skip if current SDK):** `\u003CShow>` does not exist. For authentication, use `\u003CSignedIn>` and `\u003CSignedOut>`. For authorization (role \u002F permission), use `\u003CProtect>` with the same prop names (`role`, `permission`, `condition`). Feature- and plan-based variants require Core 3. See `clerk-custom-ui` skill, `core-3\u002Fshow-component.md` for the full migration table.\n\n## Common Pitfalls\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| `undefined` userId in Server Component | Missing `await` | `await auth()` not `auth()` |\n| Auth not working on API routes | Missing matcher | Add `'\u002F(api|trpc)(.*)'` to `proxy.ts` (Next.js \u003C=15: `middleware.ts`) |\n| Cache returns wrong user's data | Missing userId in key | Include `userId` in `unstable_cache` key |\n| Mutations bypass auth | Unprotected Server Action | Check `auth()` at start of action |\n| Wrong HTTP error code | Confused 401\u002F403 | 401 = not signed in, 403 = no permission |\n\n## Session Tokens & Custom JWTs\n\n### getToken() for external APIs\n\nPass a custom JWT to third-party services (Hasura, Supabase, etc.) using JWT templates defined in the Clerk dashboard.\n\n**Server-side (Server Component or Route Handler)**:\n\n```typescript\nimport { auth } from '@clerk\u002Fnextjs\u002Fserver'\n\nexport default async function Page() {\n  const { getToken } = await auth()\n  const token = await getToken({ template: 'hasura' })\n  if (!token) return \u003Cp>Not authenticated\u003C\u002Fp>\n\n  const res = await fetch('https:\u002F\u002Fapi.example.com\u002Fgraphql', {\n    headers: { Authorization: `Bearer ${token}` },\n  })\n  const data = await res.json()\n  return \u003Cpre>{JSON.stringify(data)}\u003C\u002Fpre>\n}\n```\n\n**Client-side (Client Component)**:\n\n```typescript\n'use client'\nimport { useAuth } from '@clerk\u002Fnextjs'\n\nexport function DataFetcher() {\n  const { getToken } = useAuth()\n\n  async function fetchData() {\n    const token = await getToken({ template: 'supabase' })\n    if (!token) return\n\n    const res = await fetch('https:\u002F\u002Fapi.example.com\u002Fdata', {\n      headers: { Authorization: `Bearer ${token}` },\n    })\n    return res.json()\n  }\n\n  return \u003Cbutton onClick={fetchData}>Fetch\u003C\u002Fbutton>\n}\n```\n\n`getToken()` returns `null` when the user is not authenticated — always null-check before use.\n\n### useSession() for session data\n\nAccess session metadata in client components:\n\n```typescript\n'use client'\nimport { useSession } from '@clerk\u002Fnextjs'\n\nexport function SessionInfo() {\n  const { session } = useSession()\n  if (!session) return null\n\n  return (\n    \u003Cp>\n      Session {session.id} — last active: {session.lastActiveAt.toISOString()}\n    \u003C\u002Fp>\n  )\n}\n```\n\n### Manual JWT verification (no Clerk middleware)\n\nFor standalone API servers that receive Clerk session tokens from the `Authorization` header or the `__session` cookie (same-origin).\n\n**Using `@clerk\u002Fbackend` `verifyToken`** (recommended):\n\n```typescript\nimport { verifyToken } from '@clerk\u002Fbackend'\n\nconst token = req.headers.authorization?.replace('Bearer ', '')\nif (!token) return res.status(401).json({ error: 'No token' })\n\ntry {\n  const claims = await verifyToken(token, {\n    jwtKey: process.env.CLERK_JWT_KEY,\n  })\n  \u002F\u002F claims.sub = userId\n} catch {\n  return res.status(401).json({ error: 'Invalid token' })\n}\n```\n\n**Using `jsonwebtoken`** (when you can't use `@clerk\u002Fbackend`):\n\n```typescript\nimport jwt from 'jsonwebtoken'\n\nconst publicKey = process.env.CLERK_PEM_PUBLIC_KEY!.replace(\u002F\\\\n\u002Fg, '\\n')\nconst token = req.headers.authorization?.replace('Bearer ', '')\nif (!token) return res.status(401).json({ error: 'No token' })\n\ntry {\n  const claims = jwt.verify(token, publicKey, { algorithms: ['RS256'] }) as jwt.JwtPayload\n  \u002F\u002F Manually check exp and nbf (jsonwebtoken does this automatically, but verify azp if needed)\n  \u002F\u002F claims.sub = userId\n} catch {\n  return res.status(401).json({ error: 'Invalid or expired token' })\n}\n```\n\nToken sources:\n- **Same-origin requests**: `__session` cookie (Clerk sets this automatically)\n- **Cross-origin \u002F mobile \u002F API-to-API**: `Authorization: Bearer \u003Ctoken>` header\n\n> **CRITICAL**: Always check `exp` and `nbf` claims. `verifyToken` from `@clerk\u002Fbackend` handles this automatically; with raw `jsonwebtoken`, set `ignoreExpiration: false` (default) and ensure `clockTolerance` is minimal.\n\n## See Also\n\n- `clerk-setup` - Initial Clerk install\n- `clerk-orgs` - B2B patterns (active org, role\u002Fpermission gating)\n- `clerk-billing` - Plan and feature entitlements with `has()`\n- `clerk-webhooks` - Sync user\u002Forg events to your database\n- `clerk-custom-ui` - Theming and customization for built-in components\n\n## Docs\n\n[Next.js SDK](https:\u002F\u002Fclerk.com\u002Fdocs\u002Freference\u002Fnextjs\u002Foverview)\n","# Next.js Patterns\n\n> **Version**: Check `package.json` for the SDK version — see `clerk` skill for the version table. Core 2 differences are noted inline with `> **Core 2 ONLY (skip if current SDK):**` callouts.\n\nFor basic setup, see `clerk-setup` skill.\n\n## What Do You Need?\n\n| Task | Reference |\n|------|-----------|\n| Server vs client auth (`auth()` vs hooks) | references\u002Fserver-vs-client.md |\n| Configure middleware (public-first vs protected-first) | references\u002Fmiddleware-strategies.md |\n| Protect Server Actions | references\u002Fserver-actions.md |\n| API route auth (401 vs 403) | references\u002Fapi-routes.md |\n| Cache auth data (user-scoped caching) | references\u002Fcaching-auth.md |\n\n## References\n\n| Reference | Description |\n|-----------|-------------|\n| `references\u002Fserver-vs-client.md` | `await auth()` vs hooks |\n| `references\u002Fmiddleware-strategies.md` | Public-first vs protected-first, `proxy.ts` (Next.js \u003C=15: `middleware.ts`) |\n| `references\u002Fserver-actions.md` | Protect mutations |\n| `references\u002Fapi-routes.md` | 401 vs 403 |\n| `references\u002Fcaching-auth.md` | User-scoped caching |\n\n## Mental Model\n\nServer vs Client = different auth APIs:\n- **Server**: `await auth()` from `@clerk\u002Fnextjs\u002Fserver` (async!)\n- **Client**: `useAuth()` hook from `@clerk\u002Fnextjs` (sync)\n\nNever mix them. Server Components use server imports, Client Components use hooks.\n\nKey properties from `auth()`:\n- `isAuthenticated` — boolean, replaces the `!!userId` pattern\n- `sessionStatus` — `'active'` | `'pending'`, for detecting incomplete session tasks\n- `userId`, `orgId`, `orgSlug`, `has()`, `protect()` — unchanged\n\n> **Core 2 ONLY (skip if current SDK):** `isAuthenticated` and `sessionStatus` are not available. Check `!!userId` instead.\n\n## Minimal Pattern\n\n```typescript\n\u002F\u002F Server Component\nimport { auth } from '@clerk\u002Fnextjs\u002Fserver'\n\nexport default async function Page() {\n  const { isAuthenticated, userId } = await auth()  \u002F\u002F MUST await!\n  if (!isAuthenticated) return \u003Cp>Not signed in\u003C\u002Fp>\n  return \u003Cp>Hello {userId}\u003C\u002Fp>\n}\n```\n\n> **Core 2 ONLY (skip if current SDK):** `isAuthenticated` is not available. Use `if (!userId)` instead.\n\n### Conditional Rendering with `\u003CShow>`\n\nFor client-side conditional rendering based on auth state. `\u003CShow>` covers both authentication checks and authorization (feature, plan, role, permission) in one component.\n\n**Authentication check:**\n\n```tsx\nimport { Show } from '@clerk\u002Fnextjs'\n\n\u003CShow when=\"signed-in\" fallback={\u003Cp>Please sign in\u003C\u002Fp>}>\n  \u003CDashboard \u002F>\n\u003C\u002FShow>\n```\n\n**Authorization checks (B2B):**\n\n```tsx\n\u002F\u002F Feature-based (preferred — features can move between plans without redeploy)\n\u003CShow when={{ feature: 'analytics' }} fallback={\u003CUpgradePrompt \u002F>}>\n  \u003CAnalyticsDashboard \u002F>\n\u003C\u002FShow>\n\n\u002F\u002F Permission-based (preferred over role-based for granular access)\n\u003CShow when={{ permission: 'org:invoices:create' }}>\n  \u003CNewInvoiceButton \u002F>\n\u003C\u002FShow>\n\n\u002F\u002F Plan-based (tier-level gating)\n\u003CShow when={{ plan: 'pro' }}>\n  \u003CProFeatures \u002F>\n\u003C\u002FShow>\n\n\u002F\u002F Role-based (use sparingly — prefer permission)\n\u003CShow when={{ role: 'org:admin' }}>\n  \u003CAdminPanel \u002F>\n\u003C\u002FShow>\n```\n\n**Callback for complex logic:**\n\n```tsx\n\u003CShow when={(has) => has({ role: 'org:admin' }) || has({ role: 'org:billing_manager' })}>\n  \u003CBillingActions \u002F>\n\u003C\u002FShow>\n```\n\n> **Core 2 ONLY (skip if current SDK):** `\u003CShow>` does not exist. For authentication, use `\u003CSignedIn>` and `\u003CSignedOut>`. For authorization (role \u002F permission), use `\u003CProtect>` with the same prop names (`role`, `permission`, `condition`). Feature- and plan-based variants require Core 3. See `clerk-custom-ui` skill, `core-3\u002Fshow-component.md` for the full migration table.\n\n## Common Pitfalls\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| `undefined` userId in Server Component | Missing `await` | `await auth()` not `auth()` |\n| Auth not working on API routes | Missing matcher | Add `'\u002F(api|trpc)(.*)'` to `proxy.ts` (Next.js \u003C=15: `middleware.ts`) |\n| Cache returns wrong user's data | Missing userId in key | Include `userId` in `unstable_cache` key |\n| Mutations bypass auth | Unprotected Server Action | Check `auth()` at start of action |\n| Wrong HTTP error code | Confused 401\u002F403 | 401 = not signed in, 403 = no permission |\n\n## Session Tokens & Custom JWTs\n\n### getToken() for external APIs\n\nPass a custom JWT to third-party services (Hasura, Supabase, etc.) using JWT templates defined in the Clerk dashboard.\n\n**Server-side (Server Component or Route Handler)**:\n\n```typescript\nimport { auth } from '@clerk\u002Fnextjs\u002Fserver'\n\nexport default async function Page() {\n  const { getToken } = await auth()\n  const token = await getToken({ template: 'hasura' })\n  if (!token) return \u003Cp>Not authenticated\u003C\u002Fp>\n\n  const res = await fetch('https:\u002F\u002Fapi.example.com\u002Fgraphql', {\n    headers: { Authorization: `Bearer ${token}` },\n  })\n  const data = await res.json()\n  return \u003Cpre>{JSON.stringify(data)}\u003C\u002Fpre>\n}\n```\n\n**Client-side (Client Component)**:\n\n```typescript\n'use client'\nimport { useAuth } from '@clerk\u002Fnextjs'\n\nexport function DataFetcher() {\n  const { getToken } = useAuth()\n\n  async function fetchData() {\n    const token = await getToken({ template: 'supabase' })\n    if (!token) return\n\n    const res = await fetch('https:\u002F\u002Fapi.example.com\u002Fdata', {\n      headers: { Authorization: `Bearer ${token}` },\n    })\n    return res.json()\n  }\n\n  return \u003Cbutton onClick={fetchData}>Fetch\u003C\u002Fbutton>\n}\n```\n\n`getToken()` returns `null` when the user is not authenticated — always null-check before use.\n\n### useSession() for session data\n\nAccess session metadata in client components:\n\n```typescript\n'use client'\nimport { useSession } from '@clerk\u002Fnextjs'\n\nexport function SessionInfo() {\n  const { session } = useSession()\n  if (!session) return null\n\n  return (\n    \u003Cp>\n      Session {session.id} — last active: {session.lastActiveAt.toISOString()}\n    \u003C\u002Fp>\n  )\n}\n```\n\n### Manual JWT verification (no Clerk middleware)\n\nFor standalone API servers that receive Clerk session tokens from the `Authorization` header or the `__session` cookie (same-origin).\n\n**Using `@clerk\u002Fbackend` `verifyToken`** (recommended):\n\n```typescript\nimport { verifyToken } from '@clerk\u002Fbackend'\n\nconst token = req.headers.authorization?.replace('Bearer ', '')\nif (!token) return res.status(401).json({ error: 'No token' })\n\ntry {\n  const claims = await verifyToken(token, {\n    jwtKey: process.env.CLERK_JWT_KEY,\n  })\n  \u002F\u002F claims.sub = userId\n} catch {\n  return res.status(401).json({ error: 'Invalid token' })\n}\n```\n\n**Using `jsonwebtoken`** (when you can't use `@clerk\u002Fbackend`):\n\n```typescript\nimport jwt from 'jsonwebtoken'\n\nconst publicKey = process.env.CLERK_PEM_PUBLIC_KEY!.replace(\u002F\\\\n\u002Fg, '\\n')\nconst token = req.headers.authorization?.replace('Bearer ', '')\nif (!token) return res.status(401).json({ error: 'No token' })\n\ntry {\n  const claims = jwt.verify(token, publicKey, { algorithms: ['RS256'] }) as jwt.JwtPayload\n  \u002F\u002F Manually check exp and nbf (jsonwebtoken does this automatically, but verify azp if needed)\n  \u002F\u002F claims.sub = userId\n} catch {\n  return res.status(401).json({ error: 'Invalid or expired token' })\n}\n```\n\nToken sources:\n- **Same-origin requests**: `__session` cookie (Clerk sets this automatically)\n- **Cross-origin \u002F mobile \u002F API-to-API**: `Authorization: Bearer \u003Ctoken>` header\n\n> **CRITICAL**: Always check `exp` and `nbf` claims. `verifyToken` from `@clerk\u002Fbackend` handles this automatically; with raw `jsonwebtoken`, set `ignoreExpiration: false` (default) and ensure `clockTolerance` is minimal.\n\n## See Also\n\n- `clerk-setup` - Initial Clerk install\n- `clerk-orgs` - B2B patterns (active org, role\u002Fpermission gating)\n- `clerk-billing` - Plan and feature entitlements with `has()`\n- `clerk-webhooks` - Sync user\u002Forg events to your database\n- `clerk-custom-ui` - Theming and customization for built-in components\n\n## Docs\n\n[Next.js SDK](https:\u002F\u002Fclerk.com\u002Fdocs\u002Freference\u002Fnextjs\u002Foverview)\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":27,"compatibility":28},{"author":25,"version":26},"clerk","2.2.0","WebFetch","Requires NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY. For manual JWT verification (standalone API servers without Clerk middleware), additionally requires CLERK_JWT_KEY or CLERK_PEM_PUBLIC_KEY.","main","236825fbf4e5956a8cd2b0bf843494f0a5dfaf04","skills\u002Fsoftware-development\u002Fclerk-nextjs-patterns","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills","https:\u002F\u002Fgithub.com\u002FSatangThevalue","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fsatangthevalue\u002F","Hi, I'm Sa-Tang. 🖐️🖐️🖐️\r\nThanks for following.\r\nสวัสดีครับ สตังค์ครับผม\r\nขอบคุณหรับการติดตามครับ","2026-10-10 12:10:40",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add SatangThevalue\u002Fai-skills --skill clerk-nextjs-patterns",{"tool":43,"command":44},"bunx","bunx skills add SatangThevalue\u002Fai-skills --skill clerk-nextjs-patterns",{"tool":46,"command":47},"pnpm","pnpm dlx skills add SatangThevalue\u002Fai-skills --skill clerk-nextjs-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002FSKILL.md",true,[51,57,61,65,69,73,77,83,87,91,97],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"evals\u002Fevals.json","REFERENCE","参考文档",4871,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Fevals\u002Fevals.json",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fapi-routes.md",1462,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Freferences\u002Fapi-routes.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fcaching-auth.md",1373,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Freferences\u002Fcaching-auth.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fmiddleware-strategies.md",3742,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Freferences\u002Fmiddleware-strategies.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fserver-actions.md",1588,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Freferences\u002Fserver-actions.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fserver-vs-client.md",2379,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Freferences\u002Fserver-vs-client.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"templates\u002Fnextjs-basic-auth\u002Fapp\u002Flayout.tsx","OTHER","其他",565,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Ftemplates\u002Fnextjs-basic-auth\u002Fapp\u002Flayout.tsx",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"templates\u002Fnextjs-basic-auth\u002Fapp\u002Fpage.tsx",58,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Ftemplates\u002Fnextjs-basic-auth\u002Fapp\u002Fpage.tsx",{"path":88,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":89,"sourceHtmlUrl":90},"templates\u002Fnextjs-basic-auth\u002Fpackage.json",353,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Ftemplates\u002Fnextjs-basic-auth\u002Fpackage.json",{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"templates\u002Fnextjs-basic-auth\u002Fproxy.ts","SCRIPT","脚本",280,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Ftemplates\u002Fnextjs-basic-auth\u002Fproxy.ts",{"path":98,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":99,"sourceHtmlUrl":100},"templates\u002Fnextjs-basic-auth\u002Ftsconfig.json",576,"https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fclerk-nextjs-patterns\u002Ftemplates\u002Fnextjs-basic-auth\u002Ftsconfig.json",[102,109,116,123,130,137],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M76TQY0W54NCMRVE9HB8MMTA","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M76TNN9AYY91KD4DT415K1FF","subagent-driven-development","Execute plans via delegate_task subagents (2-stage review).","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsubagent-driven-development\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M76TME6SXP9SYJZCXX5FFZHR","react-composition-2026","Teaches modern React composition patterns for 2025\u002F2026. Use when designing component APIs, building shared UI libraries, or refactoring prop-heavy components.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Freact-composition-2026\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M76TMAR2D5G9BKZWGEFJKWT2","react-2026","Provides a comprehensive guide to the modern React 2026 stack. Use when starting a new React project or modernizing an existing one with current frameworks, build tools, routing, state management, or AI integration.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Freact-2026\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M76TM2FA8ZFZR1S6ZM34WFFK","plan","Plan mode: write markdown plan to .hermes\u002Fplans\u002F, no exec.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fplan\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M76TJVNAWDZ7DYQK3ZS0X09J","hermes-s6-container-supervision","Modify, debug, or extend the s6-overlay supervision tree inside the Hermes Agent Docker image — adding new services, debugging profile gateways, understanding the Architecture B main-program pattern.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fhermes-s6-container-supervision\u002FSKILL.md",[],[]]