Typed Agent Service — AI skill for Claude Code
Typed AI agent service (TypeScript): Zod 4 tool schemas as the single source of truth (runtime validation, inferred types, generated JSON Schema), a bounded provider-agnostic tool-use agent loop, SSE.
How to install Typed Agent Service
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jkelly-dev1/typed-agent-service and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Typed Agent Service does
Typed AI agent service (TypeScript): Zod 4 tool schemas as the single source of truth (runtime validation, inferred types, generated JSON Schema), a bounded provider-agnostic tool-use agent loop, SSE streaming, and an RFC 9457 error boundary. React and Angular front ends over the same endpoints. Fastify 5, every claim mapped to a test.
Alternatives in AI
- Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
- Geo SEO Claude — GEO-first SEO skill for Claude Code 3.6k ★
- Engage.Scorecard — Calibrate model verdict trust (Wilson-bounded miss-rate) to short-circuit re-validation 348 ★
README
typed-agent-service
[](https://github.com/jkelly-dev1/typed-agent-service/actions/workflows/ci.yml)
A TypeScript AI agent service built as a personal learning project: Fastify 5, Zod 4 tool schemas, a provider-agnostic tool-use agent loop, SSE streaming, a typed error boundary, and two small front ends -- React and Angular -- that render the same stream. It runs fully offline on a deterministic mock provider by default and switches to a real model (Anthropic or OpenAI) with two environment variables.
The rule this repo follows: no claim without a test. The table below maps each claim in this README to the test that enforces it.
What it demonstrates
- Zod schemas as the single source of truth for tools: one schema validates every model-supplied tool call at runtime, infers the executor's input type at compile time, and generates the JSON Schema the model sees.
- A bounded agent loop: tool requests are validated, executed, and fed back; a hard iteration cap stops a model that never finishes.
- Streaming SSE and buffered JSON endpoints over the same typed event contract, with client-disconnect and timeout cancellation.
- An RFC 9457 problem+json error boundary with stable machine-readable codes that never leaks internals.
- A provider seam (mock / Anthropic / OpenAI) where tests and CI never touch the network.
- A React client that consumes the same typed event contract, including its own
SSE framing because
EventSourcecannot POST, and the two different ways this API reports failure. - An Angular client over the SAME endpoints and the same contract, written standalone, signal-based and zoneless, so the contract is proven to be a contract rather than a shape one framework happened to fit.
Claims backed by tests
| Claim | Test |
|---|---|
| Schema-invalid tool calls never reach an executor | tests/tools.test.ts "rejects schema-invalid in |
Related Skills
Agent Runtime
Provider-agnostic LLM agent loop for Node: bounded tool calling with validated inputs, token-budget memory, tr
Create PR Develop
Create PR to develop branch with full validation (sync, tests 100%, lint, types) and AI-generated title/body
Aigateway
Protocol-faithful, multi-provider AI gateway for OpenAI, Anthropic, Gemini, and OpenAI-compatible APIs — nativ
Rails AI Context
45 MCP tools that give AI coding agents ground truth about your Rails app: schema, models, routes, controllers
Ssot Schema
SSOT(Single Source of Truth)における設計スキーマおよび実装ルールを定義する中核リポジトリ。本リポジトリは、AIエージェント(Copilot / Claude / GeminiCLI / Cur
Config Guard
Stop AI agents from crashing OpenClaw by validating config changes. Auto-backup, schema validation, and auto-r
Related Agents
Zod
Safely switches between TS-only types and Zod-inferred runtime validation with preflight checks.
Hono Builder
Hono API implementer — routes, middleware, validation, error handling, streaming/SSE, the typed RPC client (Ap
Sub Agent Architect
PROACTIVELY used when designing DB schemas, defining Prisma/Supabase structures, or establishing TypeScript ty