typesafe-ai

typesafe-ai is a skill for Claude Code, Codex from narumiruna/pi-extensions. It costs 98 tokens per session (1,629 once invoked), scanned A, original, MIT.

A guide for using TypeSafe and its Jev model to produce structured semantic judgments and probabilities. It covers designing questions, combining results, and calling the service from Python or JavaScript.

In plain words
What is it for?
Use it to design, integrate, evaluate, or update TypeSafe-based decisions and workflows.
Why use it?
It helps software use AI judgments as predictable data instead of relying on free-form text that must be interpreted afterward.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design, integrate, evaluate, or update TypeSafe-based decisions and workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/narumiruna/pi-extensions/typesafe-ai
Install

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.

Any agent
npx skills add narumiruna/pi-extensions --skill typesafe-ai
Clone the repo
git clone --depth 1 https://github.com/narumiruna/pi-extensions

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for typesafe-ai

README.md
[![agentmods](https://agentmods.dev/badge/skills/narumiruna/pi-extensions/typesafe-ai/github.svg)](https://agentmods.dev/skills/narumiruna/pi-extensions/typesafe-ai)
Your own site
<a href="https://agentmods.dev/skills/narumiruna/pi-extensions/typesafe-ai"><img src="https://agentmods.dev/badge/skills/narumiruna/pi-extensions/typesafe-ai/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.

agentmods 80×15 button for typesafe-ai

Your own site · 80×15
<a href="https://agentmods.dev/skills/narumiruna/pi-extensions/typesafe-ai"><img src="https://agentmods.dev/badge/skills/narumiruna/pi-extensions/typesafe-ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,629 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01629
Opus 5.5 $0.00039 $0.00652
Sonnet 5.5 $0.00020 $0.00326
Haiku 4.5 $0.00010 $0.00163

Measured 26d ago against content hash 7fb988672c4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typesafe-ai 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 26d 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.

packages/pi-typesafe/skills/typesafe-ai/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build with TypeSafe

TypeSafe makes units of AI intelligence usable like programming primitives: small judgments that code can compose into larger capabilities. Its System One models return focused typed judgments and probabilities instead of prose or reasoning explanations. Jev is TypeSafe's flagship System One model. Keep workflow, policy, exact calculations, permissions, and side effects in code.

Read the bundled references

The bundled TypeSafe references are local snapshots for task use. The live TypeSafe documentation remains authoritative when freshness matters.

Use typesafe_question

When the typesafe_question tool is active, prefer it for direct Jev judgments instead of constructing an HTTP request manually. Read its active schema before the first call because the tool validates each primitive's request shape. Supply one shared state and a non-empty map of named questions. Do not add provider credentials, endpoints, or model fields to tool input. The extension prefers the official TypeSafe API when TYPESAFE_API_KEY is available and uses its experimental OpenRouter fallback only when openRouterFallback: true in the package-owned pi-typesafe.json settings file explicitly enables it. A provider failure is not a reason to change a valid question or silently switch workflows.

Read the full file on GitHub · 118 lines

Changes

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.

  1. 26d ago First seen · 118 lines · 98 tokens per session scan A 7fb988672c4b

Subscribe to this mod's changes

typesafe-ai is a skill published in the GitHub repository narumiruna/pi-extensions (693 stars, last pushed today), licensed MIT. It adds 98 tokens to every session and 1,629 once invoked, about $0.0004 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-20.

Related

Other skills, from other repositories

developing-genkit-js

Develop AI-powered applications using Genkit in Node.js/TypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript/TypeScript, or when encountering Genkit errors, validation issues, type errors, or API problems.

google/skills · 60 tokens

ax-gen

This skill helps an LLM generate correct AxGen code using @ax-llm/ax. Use when the user asks about ax(), AxGen, generators, forward(), streamingForward(), validation, assertions, streaming assertions, field processors, step hooks, self-tuning, or structured outputs. For MCP clients, transports, prompts, resources…

ax-llm/ax · 86 tokens

ax-signature

This skill helps an LLM generate correct DSPy signature code using @ax-llm/ax. Use when the user asks about signatures, s(), f(), field types, string syntax, fluent builder API, validation constraints, or type-safe inputs/outputs.

ax-llm/ax · 57 tokens

ax-llm

This skill helps with using the @ax-llm/ax TypeScript library for building LLM applications. Use when the user asks about ax(), ai(), f(), s(), agent(), flow(), AxGen, AxAgent, AxFlow, signatures, streaming, or mentions @ax-llm/ax.

ax-llm/ax · 68 tokens

ax-playbook

This skill helps an LLM generate correct playbook code using @ax-llm/ax. Use when the user asks about playbook(), AxPlaybook, context playbooks, evolving context, ACE / Agentic Context Engineering, agent.playbook(), or growing/applying task knowledge offline and online with evolve() and update().

ax-llm/ax · 70 tokens

ax-refine

Use this skill when writing or reviewing Ax bestOfN/refine code, reward functions, thresholds, native sample selection, serial attempts, generated advice, and attempt diagnostics.

ax-llm/ax · 38 tokens