Skills for Real Engineers. Straight from my .agents directory.
langgraph-decision-models
Agent skill fromlangchain-ai/langchain-skills
INVOKE THIS SKILL when routing a LangGraph agent with a decision model (TypeSafe Jev, SemIf) instead of an LLM, or when auditing an existing agent for LLM calls that only produce a routing decision. Covers langchain-typesafe Noul/Choice/Score, reading answers correctly, threshold design, and LangSmith Gateway wiring.
How to install langgraph-decision-models
npx skills add langchain-ai/langchain-skills# or add only this skill to Claude Code: copy the folder
config/skills/langgraph-decision-models/
# into
~/.claude/skills/langgraph-decision-models/ (all projects)
.claude/skills/langgraph-decision-models/ (one project)
1<overview>2A **decision model** answers typed questions about state and returns probabilities instead of prose. It replaces the common pattern of prompting an LLM, parsing its text, and branching on the result.34- **`Noul(instructions=...)`** — binary question, returns a probability of yes5- **`Choice(instructions=..., criteria={...})`** — picks one label, returns the full distribution plus confidence6- **`Score(instructions=..., criteria=[...])`** — grades against an ordered rubric, returns an expected value plus confidence78`TypeSafeClassifier` is a LangChain `Runnable[ClassifierRequest, ClassifierResponse]`, so it drops into a node like any other runnable. Up to 32 questions share one request and are answered independently — your code combines them.910**Reach for one when** a node generates text only so you can parse a decision out of it: routing, triage, filtering, guardrails, or per-item classification over a batch.1112**Do not** reach for one when the node's output is the product (summaries, drafts, code) or when the judgment needs multi-step reasoning. A decision model classifies; it does not think.13</overview>1415---1617## Install and wire1819`langchain-typesafe` is alpha (`0.0.1a3`) and `TypeSafeClassifier` is marked `@beta` — pin it and expect churn.2021```bash22uv add langchain-typesafe23```2425Three ways to reach a model. The classifier POSTs to `{base_url}/v1/systemone` with `Authorization: Bearer {api_key}`, so switching providers is constructor arguments only:2627<ex-wiring>28…
Excerpt shown under the repository's MIT license.
More skills in langchain-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
