一键导入
trpc
tRPC v11 API layer with Zod and Ed25519 auth. Use when working on files in src/server/.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
tRPC v11 API layer with Zod and Ed25519 auth. Use when working on files in src/server/.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
UI component patterns for React 19, shadcn/ui, and Tailwind. Use when working on files in src/components/.
Loro CRDT state management with loro-mirror. Use when working on files in src/lib/crdt/.
Playwright E2E testing patterns. Use when working on files in tests/e2e/.
CSV and OFX transaction import parsing. Use when working on files in src/lib/import/.
Real-time sync with Supabase, Loro CRDT, and IndexedDB. Use when working on files in src/lib/sync/.
Client-side cryptography with libsodium. Use when working on files in src/lib/crypto/.
| name | trpc |
| description | tRPC v11 API layer with Zod and Ed25519 auth. Use when working on files in src/server/. |
All authenticated procedures verify Ed25519 signatures:
Router:
export const vaultRouter = router({
create: authedProcedure
.input(createVaultSchema)
.mutation(async ({ ctx, input }) => { ... }),
});
Schema:
export const createVaultSchema = z.object({
name: z.string().min(1).max(100),
encryptedSnapshot: z.string(),
wrappedKey: z.string()
});
throw new TRPCError({
code: "NOT_FOUND", // or "FORBIDDEN"
message: "Vault not found"
});