typesafe-ai

Build typed AI judgments and probabilities into application code using TypeSafe System One models.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/Aki2022/skills --skill typesafe-ai-aki2022
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typesafe-ai
Source: https://github.com/Aki2022/skills/tree/main/typesafe-ai
Command: npx skills add https://github.com/Aki2022/skills --skill typesafe-ai-aki2022

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning natural language understanding into reliable application logic usually means fragile LLM prompt-and-parse pipelines. This Skill helps you replace those with typed judgments and probabilities from TypeSafe's System One models (like Jev), so your code owns the workflow while the model supplies programmable common sense. ## Core Features & Use Cases - Typed Primitives: Design judgments using Choice (pick one option), Noul (probability a condition holds), and Score (degree along a dimension) primitives with structured state, instructions, and criteria. - Composition Patterns: Apply proven patterns like routing with argument filling, reranking, value extraction, citation verification, composite scoring, and speculative fan-out, guided by live docs and cookbooks. - Uncertainty Handling: Use probabilities and confidence thresholds evaluated on your data to route, escalate, or verify decisions. - Use Case: Build a support ticket router that classifies intent, extracts typed parameters, scores urgency, and escalates low-confidence cases to a human, all as composable typed judgments rather than free-text prompts. ## Quick Start Ask the assistant to design a TypeSafe integration that routes incoming user requests to typed handlers using the Choice and Noul primitives, reading the live docs at docs.typesafe.ai first.

Frequently Asked Questions about typesafe-ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build AI features with typed outputs instead of LLM text generation?

Use TypeSafe System One models like Jev, which return typed judgments and probabilities rather than generated text. You define questions with instructions and criteria, supply relevant state, and your code consumes the structured answers directly.

What is the difference between Choice, Noul, and Score primitives?

Choice picks one option from a defined set with a probability distribution. Noul returns the probability that a condition holds, with no separate confidence value. Score gives a probability-weighted position on ordered levels for graded dimensions.

Does TypeSafe have Python and JavaScript SDKs?

Yes, TypeSafe provides both a Python SDK and a JavaScript SDK alongside a direct HTTP API. Read the current SDK pages at docs.typesafe.ai before writing integration code, since the live docs carry the authoritative API contracts.

How do I handle uncertainty and low-confidence model answers?

Use probabilities and confidence values to guide behavior with thresholds evaluated on your own data. Send uncertain or failing cases to a person or reasoning model, and ignore uncertainty on branches your code does not use.

When should I not use System One models for a task?

Keep known rules, exact calculations, deterministic lookups, and execution in ordinary code. Typed output guarantees the interface, not truth, so validate model performance in your target domain before relying on it.