Skip to content

Choosing a Claude Code Skill with Jev: A Local Setup Guide

Interactive Diagram

새 탭 ↗

You can ask the same coding agent to write a README or fix a bug. Picking which instructions to apply is a separate job from writing the files. TypeSafe’s Jev can help with that first job. Give it a fixed set of options in a Choice question, and it returns a selection and the probability it assigns to each option.

In this guide, a local script routes one line of text to draft documentation, plan a code change, or hold. You then decide whether to invoke the suggested skill in Claude Code. Classification happens on TypeSafe’s remote API. Only the script and the skill files are local. If you’re new to skills, start with the Claude Code skills and hooks post.

You need Bash on macOS or Linux, curl 7.55 or later for --header @-, jq, and a signed-in Claude Code installation. Run bash in your terminal before running the block below. Use a separate folder so the demo doesn’t mix with an existing project.

Terminal window
curl --version
jq --version
claude --version
mkdir -p jev-skill-demo
cd jev-skill-demo

Create an API key in the TypeSafe console. Run the read line on its own first, then enter the key at the prompt and press Enter. It won’t appear on screen. Don’t paste the key into a Claude conversation, SKILL.md, or a repository.

Terminal window
read -r -s -p 'TypeSafe API key: ' TYPESAFE_API_KEY
Terminal window
printf '\n'
export TYPESAFE_API_KEY

Save this as route-skill.sh. The script sends the request text as state and reads the selected choice and its probability. The 0.75 cutoff is an example, not a measured threshold. If the best candidate scores below it, the script prints hold. An HTTP or response-processing error exits with a nonzero status.

route-skill.sh
#!/usr/bin/env bash
set -euo pipefail
: "${TYPESAFE_API_KEY:?Set TYPESAFE_API_KEY first}"
if [[ $# -ne 1 || -z ${1:-} ]]; then
printf 'Usage: bash route-skill.sh "sample request"\n' >&2
exit 2
fi
payload=$(jq -n --arg state "$1" '{
model: "jev-1.14.0",
state: $state,
questions: {
route: {
type: "choice",
instructions: "Choose the best route for this request. If the intent is unclear, mixed, or unrelated, select hold.",
criteria: {
"draft-docs": "The user explicitly requests writing or editing documentation.",
"plan-code-change": "The user explicitly requests investigating or changing code behavior.",
hold: "The request is ambiguous, asks for both routes, or fits neither route."
}
}
}
}')
response=$(printf 'Authorization: Bearer %s\n' "$TYPESAFE_API_KEY" |
curl --fail --silent --show-error --max-time 15 \
--header @- --header 'Content-Type: application/json' \
--data-binary "$payload" https://api.typesafe.ai/v1/systemone)
jq -er '
.answers.route as $route
| $route.probabilities[$route.choice] as $p
| if $route.type != "choice" or ($p | type) != "number"
or $p < 0 or $p > 1 then
error("Invalid Choice response")
elif ($route.choice == "draft-docs" or $route.choice == "plan-code-change")
and $p >= 0.75 then
$route.choice
else
"hold"
end
' <<< "$response"

These inputs don’t refer to a real project. The comments show expected labels, not measured output. If either of the first two requests returns hold, stop and revisit the request and its criteria before picking a skill.

Terminal window
bash route-skill.sh 'Add installation steps to the README.' # draft-docs
bash route-skill.sh 'Investigate why page numbering starts at zero.' # plan-code-change
bash route-skill.sh 'Take a look at this.' # hold
ResultWhat to do next
draft-docsIf it matches your intent, type /draft-docs in Claude Code.
plan-code-changeIf it matches your intent, type /plan-code-change.
holdMake the request more specific without invoking a skill.
Error and nonzero exitFor 401, check the key. For 429, check the API rate limits.

4. Invoke the skill yourself in Claude Code

Section titled “4. Invoke the skill yourself in Claude Code”

Create the two skill directories in your demo folder. Both skills set disable-model-invocation: true, so you invoke them by typing the command yourself.

Terminal window
mkdir -p .claude/skills/draft-docs .claude/skills/plan-code-change
.claude/skills/draft-docs/SKILL.md
---
name: draft-docs
description: Draft documentation in the chat without editing files.
disable-model-invocation: true
---
Write a short documentation draft in the chat for the user's request.
Use example values for any missing facts. Do not edit files.
.claude/skills/plan-code-change/SKILL.md
---
name: plan-code-change
description: Outline a code investigation without editing files.
disable-model-invocation: true
---
Describe how you would investigate the reported behavior and verify a fix.
Do not edit files or claim that you ran tests.

After classifying the requests, unset the API key and launch Claude Code in the same directory. The Claude Code process you start here won’t inherit that environment variable.

Terminal window
unset TYPESAFE_API_KEY
claude

At the Claude Code prompt, open /skills and check for draft-docs and plan-code-change. If they’re missing, check that you launched claude from the demo folder and that each file is named SKILL.md. Troubleshoot skill discovery separately from the Jev response.

If you got draft-docs, you can type the following at the Claude Code prompt. This is where you decide whether the recommendation makes sense and invoke it yourself.

/draft-docs Draft installation steps for the example tool's README.

5. Optional: Install the official TypeSafe skill

Section titled “5. Optional: Install the official TypeSafe skill”

The two skills above perform tasks you invoke after reviewing the classifier’s decision. The official TypeSafe skill helps Claude Code write the integration by explaining the Jev API, question types, classification criteria, and response handling. The demo does not need it. Installing it alone does not change how Claude Code chooses models or skills.

For Claude Code, register the TypeSafe marketplace and install the plugin with the commands below. The official docs cover other agents and manual installation. Choose just one installation method per agent.

Terminal window
claude plugin marketplace add typesafe-ai/skills
claude plugin install typesafe@typesafe-ai

Start a new Claude Code session and enter /typesafe:typesafe-ai to check that the skill loads. To review the integration before sending any API requests, load the skill and try this prompt:

Use the TypeSafe skill to review the Jev request and response fields in route-skill.sh.
Suggest the classification criteria and when to hold. Do not call the API or edit files.

To update the plugin, run both commands, then restart Claude Code or enter /reload-plugins.

Terminal window
claude plugin marketplace update typesafe-ai
claude plugin update typesafe@typesafe-ai

The API format and skill setup follow the official docs checked on 2026-12-01. Live Jev responses, installation and invocation of the official plugin, an end-to-end Claude Code run, and speed or cost gains were not verified directly. The request goes to TypeSafe, so start with synthetic text rather than internal code, customer data, or credentials. If you made a dedicated key that you no longer need after testing, revoke it in the console.

If you have only two skills and the distinction is clear, keyword rules might be enough. Write down the expected outcomes and hold criteria for a few ambiguous requests, then compare how well your rules and Jev meet them. Total task time includes both the extra classification call and any rework from choosing the wrong skill.

To choose the model that receives a request rather than the instructions it uses, see Choosing Claude Code Models with Jev for the difference between recommendation hooks and automatic routing.