Skip to main content
The TypeSafe agent skill gives your AI coding agent full context on the TypeSafe API: the three question types, the architectural patterns, and best practices for structuring evaluations.

Installation

Run these two commands in your terminal:
Read SKILL.md on GitHub or fetch the raw Markdown directly. For manual installation, copy the entire skills/typesafe-ai directory, including its reference files, into your agent’s skills directory. Choose one installation method to avoid duplicate copies.

Updates

For the Claude Code plugin, run:
Restart Claude Code or run /reload-plugins to load the update. To enable automatic updates, open /plugin, select Marketplaces → typesafe-ai → Enable auto-update. For skills.sh installations, run npx skills update. For manual copies, replace the entire skill directory with the latest GitHub version.

Example prompts

Naming the skill in your prompt — “use the TypeSafe skill” — works in any agent, so each of the prompts below does that. With the Claude Code plugin, you can also invoke /typesafe:typesafe-ai directly.
  • A good prompt to start with is a brainstorming prompt to help you figure out where TypeSafe can best be used in a project.
  • You can also create an API key and give your agent permission to figure out the best way to use TypeSafe by running cheap test queries.
  • Point your agent at a specific cookbook that solves a problem you have in your codebase, or point it at the cookbooks index and ask if there are any patterns that are similar to the ones in your project.

Good vibe coding principles

  1. Talk it out with your agent, using the example prompts above as a starting point.
  2. Review the plan and ensure it makes sense before implementing it.
  3. Put the constants (questions and thresholds) in a single place so they’re easy to review. Agents aren’t great at writing questions, so expect to edit collaboratively with them.
  4. Don’t take assertions at face value; encourage the agent to validate its assumptions.

Common issues

The agent isn’t using the skill

With the Claude Code plugin, invoke /typesafe:typesafe-ai. In other agents, ask to “use the TypeSafe skill”. If it still does not load, confirm the installer targeted the agent you are using, then restart the agent.

Routing isn’t working like you expect

Check the questions and thresholds. It’s possible that your thresholds are either set too high (causing false negatives) or too low (causing false positives). You may also need to tweak your questions to be more specific.

You’re using confidence thresholds everywhere

If all you care about is choosing the best option, you just need to choose the option with the highest confidence (rather than setting a confidence threshold). If you have a specific statistical algorithm in mind, you should probably be using probabilities instead of confidence.

It’s difficult to review TypeSafe code

The most important thing for humans to review is the questions and any threshold constants used in your TypeSafe code. These should be defined in a single code file so that they’re easy to find without too much spelunking.

The agent invents request or response fields

A stale skill can cause this. Update it using your installation method above and retry.