[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AYWS0WSMYF60Z3DC8TJTHW":3,"skill-same:01M7AYWS0WSMYF60Z3DC8TJTHW":62},{"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":35,"commitSha":36,"skillDirectory":37,"forksCount":14,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7AYWS0WSMYF60Z3DC8TJTHW","clerk-custom-auth",null,"Wire Clerk authentication into NON-Next.js frontends (especially Angular SPA) and into backends with EXISTING custom auth (NestJS\u002FExpress JWT), as an SSO ADD-ON — without hardcoding keys. Covers the Angular package reality (@clerk\u002Fangular does NOT exist; use @clerk\u002Fclerk-js), the bun-installed `clerk` CLI location, and the gitignore + build-time-injector secret pattern. Use when the protected `clerk-setup` skill's Next.js\u002FReact-centric steps don't apply, or when adding Clerk alongside an existing auth system.","dbillion\u002Fhermes-skills-public","dbillion","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49393855?v=4","01M7AVH8QPGCM8WKWS22TRT0T6","Oludayo Adeoye","01M7AVH8RD1JJWA0YS9CFEWAV9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fauth\u002Fclerk-custom-auth\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: clerk-custom-auth\ndescription: >-\n  Wire Clerk authentication into NON-Next.js frontends (especially Angular SPA)\n  and into backends with EXISTING custom auth (NestJS\u002FExpress JWT), as an SSO\n  ADD-ON — without hardcoding keys. Covers the Angular package reality\n  (@clerk\u002Fangular does NOT exist; use @clerk\u002Fclerk-js), the bun-installed\n  `clerk` CLI location, and the gitignore + build-time-injector secret pattern.\n  Use when the protected `clerk-setup` skill's Next.js\u002FReact-centric steps don't\n  apply, or when adding Clerk alongside an existing auth system.\nlicense: MIT\ntags: [clerk, angular, nestjs, sso, secrets, auth]\nglobs:\n  - \"**\u002Fclerk.service.ts\"\n  - \"**\u002Fauth\u002F*.ts\"\n  - \"**\u002Finject-clerk-key.mjs\"\n---\n\n# Clerk for Custom \u002F Non-Next.js Auth (SSO Add-On)\n\nThis skill fills gaps the official `clerk-setup` skill leaves for Angular SPAs and\nprojects that already have their own auth. It is additive: Clerk is an SSO option,\nnot a replacement, unless the user explicitly wants a full swap.\n\n## When to use\n- Frontend is **Angular** (no `@clerk\u002Fangular` package exists — see below).\n- Backend already has auth (NestJS `\u002Fapi\u002Fauth\u002Flogin` + JWT, Passport, etc.) and you\n  want Clerk as an extra \"Continue with Clerk\" button.\n- You need to inject Clerk keys into a build without committing them.\n\n## CRITICAL: Angular package reality (2026)\n`npm view @clerk\u002Fangular` and `@clerk\u002Fclerk-angular` both **404**. Clerk has no\ndedicated Angular SDK. Use:\n- **Client:** `@clerk\u002Fclerk-js` (vanilla SDK). Wrap in an Angular `ClerkService`\n  (`providedIn: 'root'`). Drive imperatively — there is NO `ClerkProvider` component.\n  ```ts\n  import { Clerk } from '@clerk\u002Fclerk-js';\n  this.clerk = new Clerk(environment.clerkPublishableKey);\n  await this.clerk.load();\n  this.clerk.mountSignIn(hostEl, { routing: 'virtual' });\n  const token = await this.clerk.session.getToken();\n  ```\n- **Backend (NestJS\u002FExpress):** `@clerk\u002Fbackend` (this one DOES exist —\n  `npm view @clerk\u002Fbackend version` returns a real version). Use\n  `createClerkClient({ secretKey })` + `clerk.verifyToken(token)` in a guard.\n\n## `clerk` CLI is installed via BUN, not npm\n`npm i -g @clerk\u002Fcli` \u002F `@clerk\u002Fclerk-cli` both 404. On this user's machine the CLI\nis at `~\u002F.bun\u002Fbin\u002Fclerk` (v2.2.0). Prepend to PATH:\n```bash\nexport PATH=\"$HOME\u002F.bun\u002Fbin:$PATH\"\nclerk whoami                       # email + linked app (linked:null if none)\nclerk apps list --json             # pick app_id\nclerk link --app app_xxx\nclerk env pull                     # writes CLERK_PUBLISHABLE_KEY + CLERK_SECRET_KEY to .env.local\n```\n`clerk env pull` writes to the **current directory's** `.env.local` — `cd` into the\nspecific sub-project first, or keys land in the wrong folder.\n\n## NEVER HARDCODE KEYS (user-corrected, hard rule)\nPasting even a publishable key as a literal into a tracked source file was explicitly\nrejected (\"why will you hard code it in 2026?\"). Correct pattern for frontends that\ncan't natively read `.env.local` at build (Angular):\n1. `clerk env pull` → gitignored `.env.local`.\n2. Build-time injector script (run via `prebuild`) reads the key and writes the\n   framework env file.\n3. **Gitignore the generated env file** so the key can never commit.\n\nSee `scripts\u002Finject-clerk-key.mjs` (template) and wire\n`\"prebuild\": \"node scripts\u002Finject-clerk-key.mjs\"` in package.json. Add both\n`src\u002Fenvironments\u002Fenvironment.ts` and `.env.local` to `.gitignore`. Verify:\n`git add -A --dry-run | grep environment.ts` must return nothing.\nSecret (`CLERK_SECRET_KEY`) goes ONLY in the backend's gitignored `.env` (append,\nnever commit). The file-read tool refuses `.env*` by design — confirm presence with\n`grep -oE \"VARNAME=\"` (names only), never print values.\n\n## SSO add-on bridge (keep existing auth)\n1. Angular: \"Continue with Clerk\" button → `clerk.mountSignIn` → on success\n   `clerk.session.getToken()`.\n2. POST that token to `POST \u002Fapi\u002Fauth\u002Fclerk` on the backend.\n3. Backend: `clerk.verifyToken(token)` → find\u002Fcreate local user by clerkId\u002Femail →\n   **issue your own JWT**. Existing JWT guard keeps working; Clerk is optional.\n\n## Pitfalls\n- Don't `npm i @clerk\u002Fangular` — it 404s. Use `@clerk\u002Fclerk-js`.\n- Don't look for `ClerkProvider` in Angular — drive `@clerk\u002Fclerk-js` from a service.\n- Don't hardcode keys in `environment.ts` — use the injector + gitignore.\n- `clerk` CLI not on npm PATH — it's bun at `~\u002F.bun\u002Fbin\u002Fclerk`.\n- `clerk env pull` target dir = CWD; `cd` into the right sub-project first.\n\n## See also\n- `clerk-setup` (protected, hub-installed) — Next.js\u002FReact quickstarts, `clerk doctor`.\n- `clerk-backend-api` — raw Clerk REST explorer.\n- Memory rule: \"Never hardcode\u002Fecho secrets\" — this skill is the executable form.\n","# Clerk for Custom \u002F Non-Next.js Auth (SSO Add-On)\n\nThis skill fills gaps the official `clerk-setup` skill leaves for Angular SPAs and\nprojects that already have their own auth. It is additive: Clerk is an SSO option,\nnot a replacement, unless the user explicitly wants a full swap.\n\n## When to use\n- Frontend is **Angular** (no `@clerk\u002Fangular` package exists — see below).\n- Backend already has auth (NestJS `\u002Fapi\u002Fauth\u002Flogin` + JWT, Passport, etc.) and you\n  want Clerk as an extra \"Continue with Clerk\" button.\n- You need to inject Clerk keys into a build without committing them.\n\n## CRITICAL: Angular package reality (2026)\n`npm view @clerk\u002Fangular` and `@clerk\u002Fclerk-angular` both **404**. Clerk has no\ndedicated Angular SDK. Use:\n- **Client:** `@clerk\u002Fclerk-js` (vanilla SDK). Wrap in an Angular `ClerkService`\n  (`providedIn: 'root'`). Drive imperatively — there is NO `ClerkProvider` component.\n  ```ts\n  import { Clerk } from '@clerk\u002Fclerk-js';\n  this.clerk = new Clerk(environment.clerkPublishableKey);\n  await this.clerk.load();\n  this.clerk.mountSignIn(hostEl, { routing: 'virtual' });\n  const token = await this.clerk.session.getToken();\n  ```\n- **Backend (NestJS\u002FExpress):** `@clerk\u002Fbackend` (this one DOES exist —\n  `npm view @clerk\u002Fbackend version` returns a real version). Use\n  `createClerkClient({ secretKey })` + `clerk.verifyToken(token)` in a guard.\n\n## `clerk` CLI is installed via BUN, not npm\n`npm i -g @clerk\u002Fcli` \u002F `@clerk\u002Fclerk-cli` both 404. On this user's machine the CLI\nis at `~\u002F.bun\u002Fbin\u002Fclerk` (v2.2.0). Prepend to PATH:\n```bash\nexport PATH=\"$HOME\u002F.bun\u002Fbin:$PATH\"\nclerk whoami                       # email + linked app (linked:null if none)\nclerk apps list --json             # pick app_id\nclerk link --app app_xxx\nclerk env pull                     # writes CLERK_PUBLISHABLE_KEY + CLERK_SECRET_KEY to .env.local\n```\n`clerk env pull` writes to the **current directory's** `.env.local` — `cd` into the\nspecific sub-project first, or keys land in the wrong folder.\n\n## NEVER HARDCODE KEYS (user-corrected, hard rule)\nPasting even a publishable key as a literal into a tracked source file was explicitly\nrejected (\"why will you hard code it in 2026?\"). Correct pattern for frontends that\ncan't natively read `.env.local` at build (Angular):\n1. `clerk env pull` → gitignored `.env.local`.\n2. Build-time injector script (run via `prebuild`) reads the key and writes the\n   framework env file.\n3. **Gitignore the generated env file** so the key can never commit.\n\nSee `scripts\u002Finject-clerk-key.mjs` (template) and wire\n`\"prebuild\": \"node scripts\u002Finject-clerk-key.mjs\"` in package.json. Add both\n`src\u002Fenvironments\u002Fenvironment.ts` and `.env.local` to `.gitignore`. Verify:\n`git add -A --dry-run | grep environment.ts` must return nothing.\nSecret (`CLERK_SECRET_KEY`) goes ONLY in the backend's gitignored `.env` (append,\nnever commit). The file-read tool refuses `.env*` by design — confirm presence with\n`grep -oE \"VARNAME=\"` (names only), never print values.\n\n## SSO add-on bridge (keep existing auth)\n1. Angular: \"Continue with Clerk\" button → `clerk.mountSignIn` → on success\n   `clerk.session.getToken()`.\n2. POST that token to `POST \u002Fapi\u002Fauth\u002Fclerk` on the backend.\n3. Backend: `clerk.verifyToken(token)` → find\u002Fcreate local user by clerkId\u002Femail →\n   **issue your own JWT**. Existing JWT guard keeps working; Clerk is optional.\n\n## Pitfalls\n- Don't `npm i @clerk\u002Fangular` — it 404s. Use `@clerk\u002Fclerk-js`.\n- Don't look for `ClerkProvider` in Angular — drive `@clerk\u002Fclerk-js` from a service.\n- Don't hardcode keys in `environment.ts` — use the injector + gitignore.\n- `clerk` CLI not on npm PATH — it's bun at `~\u002F.bun\u002Fbin\u002Fclerk`.\n- `clerk env pull` target dir = CWD; `cd` into the right sub-project first.\n\n## See also\n- `clerk-setup` (protected, hub-installed) — Next.js\u002FReact quickstarts, `clerk doctor`.\n- `clerk-backend-api` — raw Clerk REST explorer.\n- Memory rule: \"Never hardcode\u002Fecho secrets\" — this skill is the executable form.\n",{"name":5,"tags":24,"globs":31,"license":15,"description":7},[25,26,27,28,29,30],"clerk","angular","nestjs","sso","secrets","auth",[32,33,34],"**\u002Fclerk.service.ts","**\u002Fauth\u002F*.ts","**\u002Finject-clerk-key.mjs","master","f341c46fed021656175d5c9ccc67a72126e50bfb","skills\u002Fauth\u002Fclerk-custom-auth","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public","https:\u002F\u002Fgithub.com\u002Fdbillion","I enjoy writing codes,teaching programming, solving problems, tasted automation in Python and never looked back😋😋😋💞","2026-10-14 03:31:55",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add dbillion\u002Fhermes-skills-public --skill clerk-custom-auth",{"tool":48,"command":49},"bunx","bunx skills add dbillion\u002Fhermes-skills-public --skill clerk-custom-auth",{"tool":51,"command":52},"pnpm","pnpm dlx skills add dbillion\u002Fhermes-skills-public --skill clerk-custom-auth","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fauth\u002Fclerk-custom-auth\u002FSKILL.md",true,[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Finject-clerk-key.mjs","SCRIPT","脚本",1487,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fauth\u002Fclerk-custom-auth\u002Fscripts\u002Finject-clerk-key.mjs",[63,70,77,86,93,100],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7B25T0V7RBKES86Y3RTXQRN","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7B25DSBBMZRHVD28MAX7N5X","gemini-vision-fallback","Vision fallback: Gemini REST API if vision_analyze blocked.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fvision\u002Fgemini-vision-fallback\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7B22XW9QXT2ZWWXVZDFWYZP","twitter-cli","Use twitter-cli for ALL Twitter\u002FX operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7B22QMWY1B4F7BC114RG4S6","prism-scan","Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code\u002Fartifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-scan\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7B22JA5XCAP1ACT6V50WYR1","prism-reflect","Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-reflect\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7B22EB15M75M4X3C52YGDCC","prism-full","Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-full\u002FSKILL.md",[],[]]