What problem does it solve?
Prevents TypeScript bugs in the EOS SaaS stack by enforcing type-safe HTTP routes, tenant-safe database access, and runtime-validated mutations before they hit the intelligence layer.
Core Features & Use Cases
- Type-safe Hono routes: Strongly typed
Env context ensures orgId/userId are correctly threaded through handlers.
- Zod-gated mutations: Uses
safeParse to validate and safely narrow request bodies without turning malformed input into 500s.
- RLS-correct Drizzle access: Requires
withOrg(orgId, fn) so tenant-scoped queries behave correctly under Postgres RLS.
- Typed Python bridge calls: Sends structured payloads from TypeScript routes to the Python
eos_ai layer without calling LLMs directly in TS.
Quick Start
Use the typescript skill when you are adding a new Hono route or debugging a failing EOS endpoint, and ask it to describe the required Hono Env typing, the Zod safeParse pattern, and the withOrg() RLS guardrails for the specific route you’re implementing.