Agent skill

hono-ipc-patterns

Advanced patterns for Hono-based Electron IPC including Zod validation and error handling. Use when adding validation or handling errors in routes.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/hono-ipc-patterns-naporin0624-claude-plugin-hono-e-2

SKILL.md

Hono IPC Patterns

Resources

Topic File
CQRS Pattern ../cqrs-pattern/SKILL.md
Zod Validation ZOD-VALIDATION.md
Error Handling ../hono-ipc-routes/ERROR-HANDLING.md

Quick Reference

Zod Validation Targets

Target Example
json zValidator('json', z.object({ name: z.string() }))
query zValidator('query', z.object({ limit: z.coerce.number() }))
param zValidator('param', z.object({ id: z.string() }))

Error Pattern

typescript
result.match(
  (data) => c.json(data, 200),
  (error) => c.json({ error: error.message }, 500)
);

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results