Agent skill
trpc
tRPC v11 API layer with Zod and Ed25519 auth. Use when working on files in src/server/.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/trpc-bentefay-moneyflow
SKILL.md
tRPC Guidelines
Authentication
All authenticated procedures verify Ed25519 signatures:
- Verify signature matches pubkeyHash
- Verify timestamp is recent (prevent replay)
- Verify message matches request
Patterns
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(),
});
Critical Rules
- Never trust client data - always validate with Zod
- Never store unencrypted data - all sensitive data comes pre-encrypted
- Verify signatures - every mutation must be signed
- Check permissions - verify user has vault access
- Use transactions - wrap multi-step operations
Error Handling
throw new TRPCError({
code: "NOT_FOUND", // or "FORBIDDEN"
message: "Vault not found",
});
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?