[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76SNN6JGFX00RRZEVJ5SNTC":3,"skill-same:01M76SNN6JGFX00RRZEVJ5SNTC":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M76SNN6JGFX00RRZEVJ5SNTC","org-api-route",null,"Create or update organization-scoped public `\u002Fapi\u002Fv1\u002F*` routes backed by Better Auth API keys in NowStack. Use for API-key route work, org API actions\u002Fqueries, API-key settings UI, public API docs, and future endpoint patterns that must resolve an organization from an API key.","zuzu59\u002Fz-skills","zuzu59","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15345233?v=4","01M756RFXRYFCM8DCAHTP0F5YW","Christian Zufferey","01M756RFYZRYH7F070CKQRMW38",0,"MIT","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Forg-api-route\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: org-api-route\ndescription:\n  Create or update organization-scoped public `\u002Fapi\u002Fv1\u002F*` routes backed by\n  Better Auth API keys in NowStack. Use for API-key route work, org API\n  actions\u002Fqueries, API-key settings UI, public API docs, and future endpoint\n  patterns that must resolve an organization from an API key.\n---\n\n# Org API Route\n\nBuild public API endpoints scoped to the organization that owns the API key.\nKeep route files tiny, keep auth and org resolution centralized, and document\neach endpoint as its own page.\n\n## Read First\n\nBefore editing, read:\n\n- `convex\u002F_generated\u002Fai\u002Fguidelines.md`\n- `.agents\u002Frules\u002Fapi-routes.md`\n- `.agents\u002Frules\u002Fconvex-authorization-dto.md`\n- `.agents\u002Frules\u002Fmdx.md` when touching docs\n- Existing references:\n  - `src\u002Flib\u002Fapi\u002Fpublic-api.ts`\n  - `convex\u002FapiKeys\u002Ffunctions.ts`\n  - `convex\u002FapiKeys\u002Factions.ts`\n  - `convex\u002FapiKeys\u002Fqueries.ts`\n  - `src\u002Froutes\u002Fapi\u002Fv1\u002Fme.ts`\n  - `src\u002Froutes\u002Fapi\u002Fv1\u002Fmembers.ts`\n  - `src\u002Froutes\u002Fapi\u002Fv1\u002Fmembers.$memberId.ts`\n  - `src\u002Froutes\u002Forgs\u002F$orgSlug\u002F(navigation)\u002Fsettings\u002Fapi-keys\u002Findex.tsx`\n  - `content\u002Fdocs\u002Fapi-me.mdx`\n  - `content\u002Fdocs\u002Fapi-members.mdx`\n  - `content\u002Fdocs\u002Fapi-member.mdx`\n\n## Architecture\n\n- HTTP route files call only `createPublicApiHandler(...)`.\n- Public Convex actions use `orgApiAction(...)`.\n- Internal Convex reads use `orgApiQuery(...)`.\n- `verifyApiKeyForOrg(...)` verifies the key and exposes `organizationId`.\n- Do not duplicate API-key extraction, verification, or org lookup in route files.\n- Do not call `authClient` from route files or the API-key settings UI.\n\n## Response Shape\n\n- Keep endpoint payloads focused on the resource requested.\n- Do not attach `organization` to every response by default.\n- Use `GET \u002Fapi\u002Fv1\u002Fme` for the organization attached to the API key.\n- Use resource endpoints for resource payloads only:\n  - `GET \u002Fapi\u002Fv1\u002Fmembers` returns `{ members }`.\n  - `GET \u002Fapi\u002Fv1\u002Fmembers\u002F:memberId` returns `{ member }`.\n  - `GET \u002Fapi\u002Fv1\u002Fme` returns `{ organization }`.\n- `createPublicApiHandler` strips `ok` and `status` from successful action\n  results before sending JSON.\n- Missing or invalid keys return `401`.\n- Missing org or resource returns `404`.\n\n## Documentation Rules\n\n- Always create one doc page per public endpoint.\n- Use `..\u002Fadd-documentation\u002Fscripts\u002Fcreate-doc.sh` for new docs,\n  then replace the generated template with endpoint-specific content.\n- Title pages by operation, not broad groups:\n  - `List Organization Members API`\n  - `Get Organization Member API`\n  - `Current Organization API`\n- Keep examples scoped to that endpoint only. Do not document list and detail\n  endpoints on the same page.\n- Add every new or changed endpoint doc to `CHANGELOG.md`.\n\n## API-Key Settings UI\n\n- Creation happens in a dialog.\n- The newly generated key is revealed in a dialog only; never render a large\n  inline one-time-key card under the page header.\n- Existing keys render in a table.\n- Row actions live in a dropdown menu, not inline icon buttons.\n- The docs entry near the `API Keys` title should stay minimal: a simple text\n  link labeled `Docs`.\n\n## API Key CRUD Learning\n\n`@better-auth\u002Fapi-key@1.6.10` can throw `dynamic module import unsupported`\nwhen its create\u002Fdelete endpoint permission path runs inside a Convex mutation.\nFor organization API-key settings:\n\n- Keep the outer function as `orgMutation(...)` with the repo's permission gate.\n- Create and delete keys through `components.betterAuth.adapter`.\n- Generate keys with the configured `nsk_` prefix.\n- Store the SHA-256 base64url hash in the Better Auth `apikey` model.\n- Return the raw key only once from the create mutation.\n- Delete by both `_id` and `referenceId` so keys stay scoped to the active org.\n\n## Workflow\n\n1. Add or update the internal `orgApiQuery`.\n2. Add or update the public `orgApiAction`.\n3. Add or update the `src\u002Froutes\u002Fapi\u002Fv1\u002F*` route with `createPublicApiHandler`.\n4. Add or update exactly one docs page per endpoint.\n5. Update API-key settings UI only when the discoverability surface changes.\n6. Update `CHANGELOG.md`.\n7. Run `pnpm ts`, `pnpm lint:ci`, `pnpm test:ci`, and `pnpm build` when route\n   behavior or docs are touched.\n","# Org API Route\n\nBuild public API endpoints scoped to the organization that owns the API key.\nKeep route files tiny, keep auth and org resolution centralized, and document\neach endpoint as its own page.\n\n## Read First\n\nBefore editing, read:\n\n- `convex\u002F_generated\u002Fai\u002Fguidelines.md`\n- `.agents\u002Frules\u002Fapi-routes.md`\n- `.agents\u002Frules\u002Fconvex-authorization-dto.md`\n- `.agents\u002Frules\u002Fmdx.md` when touching docs\n- Existing references:\n  - `src\u002Flib\u002Fapi\u002Fpublic-api.ts`\n  - `convex\u002FapiKeys\u002Ffunctions.ts`\n  - `convex\u002FapiKeys\u002Factions.ts`\n  - `convex\u002FapiKeys\u002Fqueries.ts`\n  - `src\u002Froutes\u002Fapi\u002Fv1\u002Fme.ts`\n  - `src\u002Froutes\u002Fapi\u002Fv1\u002Fmembers.ts`\n  - `src\u002Froutes\u002Fapi\u002Fv1\u002Fmembers.$memberId.ts`\n  - `src\u002Froutes\u002Forgs\u002F$orgSlug\u002F(navigation)\u002Fsettings\u002Fapi-keys\u002Findex.tsx`\n  - `content\u002Fdocs\u002Fapi-me.mdx`\n  - `content\u002Fdocs\u002Fapi-members.mdx`\n  - `content\u002Fdocs\u002Fapi-member.mdx`\n\n## Architecture\n\n- HTTP route files call only `createPublicApiHandler(...)`.\n- Public Convex actions use `orgApiAction(...)`.\n- Internal Convex reads use `orgApiQuery(...)`.\n- `verifyApiKeyForOrg(...)` verifies the key and exposes `organizationId`.\n- Do not duplicate API-key extraction, verification, or org lookup in route files.\n- Do not call `authClient` from route files or the API-key settings UI.\n\n## Response Shape\n\n- Keep endpoint payloads focused on the resource requested.\n- Do not attach `organization` to every response by default.\n- Use `GET \u002Fapi\u002Fv1\u002Fme` for the organization attached to the API key.\n- Use resource endpoints for resource payloads only:\n  - `GET \u002Fapi\u002Fv1\u002Fmembers` returns `{ members }`.\n  - `GET \u002Fapi\u002Fv1\u002Fmembers\u002F:memberId` returns `{ member }`.\n  - `GET \u002Fapi\u002Fv1\u002Fme` returns `{ organization }`.\n- `createPublicApiHandler` strips `ok` and `status` from successful action\n  results before sending JSON.\n- Missing or invalid keys return `401`.\n- Missing org or resource returns `404`.\n\n## Documentation Rules\n\n- Always create one doc page per public endpoint.\n- Use `..\u002Fadd-documentation\u002Fscripts\u002Fcreate-doc.sh` for new docs,\n  then replace the generated template with endpoint-specific content.\n- Title pages by operation, not broad groups:\n  - `List Organization Members API`\n  - `Get Organization Member API`\n  - `Current Organization API`\n- Keep examples scoped to that endpoint only. Do not document list and detail\n  endpoints on the same page.\n- Add every new or changed endpoint doc to `CHANGELOG.md`.\n\n## API-Key Settings UI\n\n- Creation happens in a dialog.\n- The newly generated key is revealed in a dialog only; never render a large\n  inline one-time-key card under the page header.\n- Existing keys render in a table.\n- Row actions live in a dropdown menu, not inline icon buttons.\n- The docs entry near the `API Keys` title should stay minimal: a simple text\n  link labeled `Docs`.\n\n## API Key CRUD Learning\n\n`@better-auth\u002Fapi-key@1.6.10` can throw `dynamic module import unsupported`\nwhen its create\u002Fdelete endpoint permission path runs inside a Convex mutation.\nFor organization API-key settings:\n\n- Keep the outer function as `orgMutation(...)` with the repo's permission gate.\n- Create and delete keys through `components.betterAuth.adapter`.\n- Generate keys with the configured `nsk_` prefix.\n- Store the SHA-256 base64url hash in the Better Auth `apikey` model.\n- Return the raw key only once from the create mutation.\n- Delete by both `_id` and `referenceId` so keys stay scoped to the active org.\n\n## Workflow\n\n1. Add or update the internal `orgApiQuery`.\n2. Add or update the public `orgApiAction`.\n3. Add or update the `src\u002Froutes\u002Fapi\u002Fv1\u002F*` route with `createPublicApiHandler`.\n4. Add or update exactly one docs page per endpoint.\n5. Update API-key settings UI only when the discoverability surface changes.\n6. Update `CHANGELOG.md`.\n7. Run `pnpm ts`, `pnpm lint:ci`, `pnpm test:ci`, and `pnpm build` when route\n   behavior or docs are touched.\n",{"name":5,"description":7},"master","46a82833a3f7f6f5f408511246a55e0485c5f7ab","skills\u002Forg-api-route",1,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills","https:\u002F\u002Fgithub.com\u002Fzuzu59","2026-09-30 17:58:42",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add zuzu59\u002Fz-skills --skill org-api-route",{"tool":37,"command":38},"bunx","bunx skills add zuzu59\u002Fz-skills --skill org-api-route",{"tool":40,"command":41},"pnpm","pnpm dlx skills add zuzu59\u002Fz-skills --skill org-api-route","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Forg-api-route\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M76SQGVSKRYNQX4AA4RXV3K0","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M76SQDSAZSA1272D56JY8Q2G","use-style","Apply named visual style guides to landing pages, app shells, and UI. Use for $use-style, \u002Fuseskill, list styles, or styles like ios-app, grid, vercel, black-grid, stripe, linear, raycast, gumroad, dusk, or luma.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-style\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M76SQAXDVX02V4JH4PF1MC9G","use-goal","Use when the user asks to create, draft, set, start, or refine a Codex or Claude Code `\u002Fgoal` objective for persistent multi-turn work.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-goal\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M76SQ8B11GTTGQ5CZHHGXFXM","use-fable","Orchestrator mode for Fable: Fable thinks, plans, and reviews while Codex CLI and subagents execute all heavy work. Use when the user invokes \u002Fuse-fable, says 'use fable', 'fable mode', 'orchestrator mode', or wants to save Fable tokens\u002Frate limits.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-fable\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M76SQ4SB7Q4CXEGGPA75KGFK","use-delegate","Delegation mode: the host agent (Claude or Codex) plans and reviews while heavy work runs on cheap executors: OpenCode Kimi K3, Codex GPT-5.6 terra\u002Fsol. Use when the user invokes \u002Fuse-delegate, says 'use delegate', 'delegate mode', 'orchestrator mode', or wants to save tokens\u002Frate limits.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-delegate\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M76SQ24836GDGMGGPV6Z2B7N","use-artifacts","Create Claude-style local HTML artifacts under ~\u002F.agents\u002Fartifacts. Use for plans, prototypes, visualizations, dashboards, diagrams, options, or substantial reusable content, with a portable local runtime and no Anthropic API.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-artifacts\u002FSKILL.md",[],[]]