Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add smicolon/ai-kit --skill rpc-typesafegit clone --depth 1 https://github.com/smicolon/ai-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/smicolon/ai-kit/rpc-typesafe)<a href="https://agentmods.dev/skills/smicolon/ai-kit/rpc-typesafe"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/rpc-typesafe/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/smicolon/ai-kit/rpc-typesafe"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/rpc-typesafe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.02247 |
| Opus 5.5 | $0.00018 | $0.00899 |
| Sonnet 5.5 | $0.00009 | $0.00449 |
| Haiku 4.5 | $0.00004 | $0.00225 |
Grade A, and why
rpc-typesafe scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 389 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hono RPC Type Safety
Patterns for type-safe client-server communication with Hono.
Server Setup
Export App Type
// src/index.ts
import { Hono } from 'hono'
import { zValidator } from '@hono/zod-validator'
import { z } from 'zod'
const app = new Hono()
// Define routes with validators for full type inference
const routes = app
.get('/users', async (c) => {
return c.json({ users: [{ id: '1', name: 'John' }] })
})
.post('/users',
zValidator('json', z.object({
email: z.string().email(),
name: z.string()
})),
async (c) => {
const data = c.req.valid('json')
return c.json({ id: crypto.randomUUID(), ...data }, 201)
}
)
.get('/users/:id', async (c) => {
const id = c.req.param('id')
return c.json({ id, name: 'John' })
})
export default routes
// CRITICAL: Export type for client
export type AppType = typeof routes
Route Chaining for Type Inference
// Chain routes to preserve types
const userRoutes = new Hono()
.get('/', async (c) => c.json({ users: [] }))
.post('/',
zValidator('json', createUserSchema),
async (c) => c.json({ id: '1' }, 201)
)
const postRoutes = new Hono()
.get('/', async (c) => c.json({ posts: [] }))
.post('/',
zValidator('json', createPostSchema),
async (c) => c.json({ id: '1' }, 201)
)
// Compose and export
const app = new Hono()
.route('/users', userRoutes)
.route('/posts', postRoutes)
export type AppType = typeof app
Client Setup
Basic Client
// client.ts
import { hc } from 'hono/client'
import type { AppType } from './server'
// Create typed client
const client = hc<AppType>('http://localhost:8787')
// Type-safe requests
const res = await client.users.$get()
const data = await res.json() // Typed!
Client Factory
// lib/api-client.ts
import { hc } from 'hono/client'
import type { AppType } from '@/server'
export function createClient(baseUrl: string, token?: string) {
return hc<AppType>(baseUrl, {
headers: token ? { Authorization: `Bearer ${token}` } : undefined
})
}
// Default instance
export const api = createClient(
process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8787'
)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 389 lines · 44 tokens per session scan A 57844450f236
rpc-typesafe is a skill published in the GitHub repository smicolon/ai-kit (7 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 2,247 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
rpc-typesafe compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rpc-typesafesmicolon/ai-kit | Skill | 7 | 2mo ago | MIT | A | 44 | Claude Code |
| add-dial-toolnanocoai/nanoclaw | Skill | 31k | today | MIT | A | 118 | Claude Code |
| add-telegramnanocoai/nanoclaw | Skill | 31k | today | MIT | A | 12 | Claude Code |
| add-gchatnanocoai/nanoclaw | Skill | 31k | today | MIT | A | 13 | Claude Code |
| add-signalnanocoai/nanoclaw | Skill | 31k | today | MIT | A | 22 | Claude Code |
| add-matrixnanocoai/nanoclaw | Skill | 31k | today | MIT | A | 19 | Claude Code |
| onecli-gatewaynanocoai/nanoclaw | Skill | 31k | today | MIT | A | 81 | Claude Code |