agentleFS
lizliz404lizliz404/agent-skills/skills/typesafe-ai/SKILL.md

typesafe-ai

Skill0 starsChanged 26 days agoMITView on GitHub

Use TypeSafe AI System One (Jev) for typed semantic judgments—Noul yes/no probabilities, closed-set Choice, and ordered Score—through TypeSafe's own API and TYPESAFE_API_KEY. Use when integrating, operating, or troubleshooting TypeSafe/Jev, especially in Shelf Radar and chuhai-cloud; do not use for text generation.

  • Reads credentials

36 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use computer-use, diagnosing-bugs and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    computer-use

    Use Orca's computer-use CLI to inspect and operate local desktop app windows through accessibility trees, screenshots, and safe UI actions. Use for desktop app interaction: list apps/windows, get app state, read visible UI, click controls, type, press keys, scroll, drag, set values, or perform accessibility actions. Also use for browser windows, webviews, Orca app UI, or other desktop UI. Triggers include "computer use", "orca computer", "read Spotify", "read Slack", "control/click/read in a desktop app", and "get app state".

    Also in 3 projects that use this

  • GoogleSkill

    diagnosing-bugs

    Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

    Also in 3 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 4 projects that use this

  • GoogleSkill

    codebase-design

    Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

    Also in 3 projects that use this

  • MicrosoftSkill

    grill-with-docs

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

    Also in 3 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 3 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 36 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer explicit per-project loading.

    line 22
  2. Distinctive:

    Do not assume price/free quota from old Gateway documentation.

    line 23
  3. Distinctive:

    Use replay fixtures for ordinary tests.

    line 56
  4. Very specific:

    Start with https://docs.typesafe.ai/llms.txt when current API details are needed.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 36 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

TypeSafe System One / Jev

Jev is TypeSafe's System One model: state in, typed judgments with probabilities out. It is not a text-generating LLM. Code owns execution and validation; Jev supplies narrow semantic decisions.

Route and credentials — direct only

Owner decision, 2026-10-22: use TypeSafe's own API only. Vercel Gateway is disabled (no credits). Do not select it, load its archived key, or fall back to it. A Gateway billing failure is not a TypeSafe failure.

  • HTTP: POST https://api.typesafe.ai/v1/systemone.
  • Model: jev-latest; record the actual model version returned.
  • Credential: TYPESAFE_API_KEY.
  • SDK base: https://api.typesafe.ai (SDK appends /v1/systemone).
  • Local verified key file: ~/.agents/secrets/typesafe.env, mode 0600.
  • SG verified key file: ~/.agents/secrets/jev.env, mode 0600; Shelf lab symlink ~/.config/shelf-radar/semantic-lab/jev.env.
  • These absolute home directories differ by host; verify existence and names without printing values. Do not assume SG lacks a key or upload another copy before checking.
  • Prefer explicit per-project loading. Never print keys, provider exception bodies, Authorization headers, or secret ENV file contents.
  • Do not assume price/free quota from old Gateway documentation. Usage tokens are not actual billing. Keep bounded call budgets and existing cumulative ledgers; no reset to manufacture budget.

Request / response

POST https://api.typesafe.ai/v1/systemone
Authorization: Bearer $TYPESAFE_API_KEY
Content-Type: application/json

{"model":"jev-latest","state":{"query":"德国的收纳"},"questions":{"market":{"type":"choice","instructions":"Which source market is explicitly requested?","criteria":{"DE":"Germany","FR":"France","none":"Not specified","other":"Another market"}}}}
  • Question IDs are code identifiers, not model-visible instructions.
  • Choice: criteria is a map of option → description, not an options array. Returns choice, probabilities, confidence. Include unspecified/unsupported choices where needed.
  • Noul: a yes/no question, returns noul in 0..1; no separate confidence.
  • Score: ordered 2–10 levels, returns score and probability distribution.
  • Response includes actual model and usage.input_tokens/output_tokens.
  • Batch independent questions in one request; each question receives the state. Record actual token usage rather than assuming batching is free.
  • 401: authentication; 422: request contract; 429/529: rate limit/overload. Use explicit bounded retry policy; do not silently switch providers.

Official SDK

Python: typesafe-sdk, TypeSafeClient(api_key=..., base_url="https://api.typesafe.ai", model="jev-latest"); system_one(state=..., questions={...}). Use SDK Choice(instructions=..., criteria={...}), Noul, Score, and explicit timeout/retry limits. Reuse existing installed SDK before adding dependencies.

JS: @typesafe-ai/sdk. Verify installed version-matched APIs before coding.

Integration discipline

  1. Inspect existing adapter and callers; do not duplicate a provider control plane.
  2. Send only the task state and supported candidates. Validate every returned field before executing anything.
  3. Preserve verbatim source values and distinguish extraction, semantic judgment, and deterministic execution.
  4. Calibrate adoption on held-out examples. A minimum over every unrelated field can reject all useful answers; do not lower thresholds merely to improve development scores.
  5. Provider unavailable / low confidence must have explicit behavior; a silent fallback with zero accepted model answers is not a shipped semantic improvement.
  6. Use replay fixtures for ordinary tests. Live tests need bounded authorization, retained usage and no secret logs.

Documentation

Start with https://docs.typesafe.ai/llms.txt when current API details are needed. Relevant pages: /primitives/choice.md, /primitives/noul.md, /primitives/score.md, /confidence.md, /patterns/intent-routing.md, /cookbooks/pre_parsed_value_extraction_cookbook.md.

Host/product code may still contain a historical Gateway-first adapter. That is stale implementation, not permission to use the disabled route; adjust the owning adapter under its project's change rules. Do not change unrelated production services while fixing a Skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.