typesafe-ai
Skill1 starsChanged 7 months agoMITView on GitHub
Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives. Its System One models, including Jev, turn natural language and application state into typed judgments and probabilities that code can combine. Use when a feature needs programmable common sense, when brainstorming what AI could make possible in an app, or when an LLM prompt-and-parse step could become a structured decision. Applications include routing, ranking, extraction, verification, and interactive experiences; these are starting points, not the limits. Read live docs and cookbooks to find useful patterns and discover new combinations.
- Reads credentials
17 other projects use a version of this, 16 of them edited.
Adopted by
Most recently taken up by
- the-vibey-project/vibeyedited, first seen Oct 7, 2026
- Hive-Academy/ptah-extensionedited, first seen Oct 3, 2026
- dzhng/jevgrepedited, first seen Oct 2, 2026
- SoftMissT/tudo-sobre-vibe-codingedited, first seen Oct 1, 2026
- compozy/compozyedited, first seen Oct 1, 2026
- VerusK/claude-skillsedited, first seen Sep 22, 2026
Used with
Projects with it also use impeccable and improve-codebase-architecture.
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.
MicrosoftSkillimpeccable
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
Also in 3 projects that use this
AWSSkillimprove-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 16
- compozy/compozy★ 2.8k100% same
- typesafe-ai/skills★ 2.6k100% same
- dzhng/jevgrep★ 2.3k100% same
- parkers0405/neoism★ 121100% same
- nidhi-singh02/agent-router★ 103100% same
- baldaworks/callee★ 76100% same
- Hive-Academy/ptah-extension★ 29100% same
- aymericbeaumet/dotfiles★ 15100% same
- narumiruna/skills★ 1575% same
- kubet/azdaja★ 13100% same
6 more not listed
Wrote their own version · 1
- wundercorp/loki★ 24same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- arenaSkill
- autopilotSkill
- blast-radiusSkill
- brainstormSkill
- clarifySkill
- code-reviewSkill
- debug-errorSkill
- diagram-designSkill
- explain-codeSkill
- java-coderSkill
- owasp-securitySkill
- pdfSkill
- pretty-mermaidSkill
- refactor-codeSkill
- reflectSkill
- skill-hunterSkill
- teachSkill
- technical-writingSkill
- test-coverageSkill
- typescript-coderSkill
- unslopSkill
- write-testsSkill
- wrongSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 13 are common, 1 is distinctive, and 2 are very specific to this project.
13
Common
Most of the 17 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 32
Start with the documentation index to discover relevant pages and cookbooks.
- Very specific: line 36
Follow links from the index.
- Common: line 38
Before writing an integration, read the current API or chosen SDK page and the question guidance relevant to the design.
- Common: line 41
If the index is unavailable, use the direct links below or the site's navigation.
- Common: line 42
If Markdown fetching fails, try the normal page.
- Common: line 57
Start from the behavior the user wants: what will the application show, select, change, or hand off?
- Common: line 62
When brainstorming or choosing an architecture, consider more than classification.
- Common: line 83
Verify and escalate: Check specific claims or fields against their evidence.
- Common: line 112
Ask one narrow, coherent judgment per question.
- Common: line 119
Keep the needed answers available.
- Common: line 132
Use probabilities and confidence to guide behavior, with thresholds evaluated on the user's data and consequences.
- Common: line 139
Keep policy explicit and raw judgments reusable.
- Common: line 145
Test representative cases and the resulting application behavior.
- Common: line 148
Treat cookbook thresholds and demo results as examples to evaluate, not universal rules or permanent model limitations.
- Distinctive: line 169
After changing the helper, run its subprocess tests:
- Very specific: line 175
Do not put credentials in request files or command arguments.
“Common” is measured: kept by at least 6 in 10 of the 17 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.
Files
Build with TypeSafe
TypeSafe makes units of AI intelligence usable like programming primitives: small judgments you can compose into larger capabilities. Its System One models return fast, focused judgments that software can consume directly. Jev is TypeSafe's flagship and first System One model. It understands natural language and returns typed answers and probabilities rather than generating text or reasoning explanations. Code owns the workflow; the model supplies programmable common sense where ordinary code needs semantic understanding.
Read the live docs
The live TypeSafe docs are the source of truth. Read them as part of the task. This skill gives direction; the docs carry current concepts, prompting guidance, API contracts, SDK usage, models, limits, and worked examples.
- Start with the documentation index to discover relevant pages and cookbooks. Use targeted reads rather than loading the entire site.
- Mintlify serves Markdown by appending
.mdto a page path, for example how to build with TypeSafe. Follow links from the index; convert extensionless documentation page links to.mdwhen useful. Resolve relative links againsthttps://docs.typesafe.ai. - Before writing an integration, read the current API or chosen SDK page and the question guidance relevant to the design. For a new workflow, also inspect the closest cookbook: it often shows a better decomposition than a generic classifier.
- If the index is unavailable, use the direct links below or the site's navigation. If Markdown fetching fails, try the normal page. If live access is unavailable, use available local docs or installed SDK types, state that limitation, and avoid inventing version-dependent details.
| Task | Start here; follow the relevant details |
| Understand the programming model | System One, building guide |
| Explore what to build | Use-case map, then relevant cookbooks from the index |
| Prepare inputs and questions | State, primitives, then the chosen primitive's page |
| Decide how to handle uncertainty | Confidence |
| Write API code | HTTP API, Python SDK, or JavaScript SDK |
| Update an older integration | Migration guide and the installed SDK's current reference |
Find the useful shape
Start from the behavior the user wants: what will the application show, select, change, or hand off? Work backward to the judgments it needs. Keep known rules, calculations, exact lookups, and execution in code. Preserve the user's chosen stack and scope; add TypeSafe where semantic understanding helps.
When brainstorming or choosing an architecture, consider more than classification. The patterns below are starting points: combine primitives around the user's goal, including ideas that do not fit an established recipe.
- Route and fill known arguments. A request can select a handler and its typed parameters. Ask useful branch-specific questions up front and consume only the relevant answers. Explore function calling and speculative fan-out.
- Select instead of generate. Find candidate values or source spans in code, use a judgment to select the intended one, then copy or normalize it. Code can also assemble source text into a formatted document or reading guide. Explore value extraction and structure recovery.
- Find and judge evidence. Retrieve candidates, compare their relevance to a query, and select useful context. Explore reranking and hierarchical classification.
- Turn judgments into reusable data. Score dimensions once, then let code or user controls change weights, thresholds, rankings, and views. With labeled outcomes, those signals can become classical ML features. Explore composite scoring and feature discovery.
- Verify and escalate. Check specific claims or fields against their evidence; send uncertain or failing cases to a person or reasoning model. Explore citation checks and extraction cascades.
- Respond to changing state. Code can retain goals and observations while fresh judgments guide the next bounded step. Keep inferred state distinct from observed facts, and check freshness before applying a result to a changed situation.
For open-ended requests, offer the few directions that best serve the user's goal and recommend a starting point. For a concrete request, choose the relevant pattern and build; a brainstorm is not a mandatory detour.
Design the judgments
Choose by what the answer means, then read the relevant primitive page:
| Need | Primitive | Important distinction |
| One of a defined set | Choice | Picks one option; its distribution compares competing options |
| Whether a condition holds | Noul | Probability of yes; no separate confidence; use one per label when several may apply |
| Degree along a described dimension | Score | Probability-weighted position on ordered levels; use comparable per-item Scores for graded ranking |
Give each question enough relevant state to answer: source text, identities,
relationships, policies, and current facts. Prefer named JSON fields when context
has several parts. Put the judgment in instructions and define its possible
answers in criteria. Question IDs are for code and are not sent to the model;
include complete meaning in the question. Reference nested state with backticked
paths such as ticket.messages[0].text.
Ask one narrow, coherent judgment per question. Split independently useful dimensions, without destroying the relationship being judged. A bounded action selection or contextual interpretation is valid; atomic does not mean literal fact extraction or a one-sentence limit. Strings work for simple questions. Use structured objects or arrays when definitions, contrasts, exclusions, or examples clarify instructions or criteria. Score levels must describe concrete situations and stand on their own.
Keep the needed answers available. Include a no-match outcome when nothing may fit; use a separate presence judgment when it is independently useful. For source-value selection, check candidate coverage: the model cannot choose an omitted value.
Compose and verify
Ask independent questions over the same state together, including useful speculative questions. They run in parallel and cannot see one another's answers. State each speculative premise explicitly; code consumes the applicable answers. A second request is warranted when an earlier answer is needed to fetch evidence, construct new state, or determine the next options. Extra questions still use tokens; measure actual request budgets, cost, and end-to-end latency.
Use probabilities and confidence to guide behavior, with thresholds evaluated on the user's data and consequences. Choice/Score confidence summarizes distribution concentration, not overall workflow correctness or permission to act. A Noul near 0.5 means similar probability for yes and no, not medium intensity. Several acceptable alternatives can also spread probability; low confidence need not invalidate a harmless preference choice. Ignore uncertainty on unused branches.
Keep policy explicit and raw judgments reusable. Weighted scores suit compensating preferences; an “any serious violation” rule needs separate conditions. Changing a weight or display filter need not rerun inference when evidence and question meanings are unchanged. Typed output guarantees the interface, not truth. System One models are trained for calibrated decisions; validate their performance in the target domain.
Test representative cases and the resulting application behavior. For failures, inspect the exact state, questions, candidates, answers, composition, and observed outcome. Separate missing evidence, model errors, code errors, and service failures. Treat cookbook thresholds and demo results as examples to evaluate, not universal rules or permanent model limitations. Keep API credentials server-side in web apps.
Run a direct evaluation
For quick experiments, use the bundled zero-dependency Node.js helper. It requires
Node.js 20 or newer and reads the API key only from TYPESAFE_API_KEY:
node scripts/evaluate.mjs request.json
node scripts/evaluate.mjs < request.jsonResolve scripts/evaluate.mjs relative to this skill directory. The request file must
contain state and a non-empty questions object. The helper adds "jev-latest"
when model is omitted, writes the JSON response to stdout, and writes diagnostics
to stderr. Each request has the same 10-second timeout default as the official
JavaScript SDK. HTTP error bodies are omitted because they may echo submitted state.
The helper makes one request and does not replace the SDK retry behavior needed in
production integrations.
After changing the helper, run its subprocess tests:
node --test scripts/evaluate.test.mjsDo not put credentials in request files or command arguments. Do not send repository,
private, or user data to TypeSafe unless the user has authorized that external
transmission. Never print or persist TYPESAFE_API_KEY.
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
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.

