Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

openrouter-decisions

БесплатноЗапускает вложенные скриптыНе проверен

Implement decision models through OpenRouter's Decisions API, which returns probabilities instead of generated text: pick the primitive per judgment, build…

OpenRouterTeamот OpenRouterTeam★ 334 звезды на GitHub

Об этом скилле

OpenRouter Decisions

A decision model reads application state and answers typed questions with probabilities, never text. The model judges, code computes. Code owns the workflow and every deterministic step, and the model fills in the judgments code cannot make. It is not a chat model, a coding agent, or a replacement for the LLM that drives one.

Every decision model on OpenRouter speaks the same Decisions API (also served as the TypeSafe-SDK-compatible System One API) and the same primitives, evaluated independently and in parallel within one request.

Need Primitive Returns
One option from a defined set choice choice, probabilities per option, confidence
Whether a condition holds noul noul, the probability of yes
Degree along ordered levels score score (probability-weighted position), probabilities per level, confidence
Where something is in an image (Jev 1.14 only) box box edges as fractions of the image, confidence

Read references/decisions-api.md when writing a request or reading a response, sending images, or calling through the System One API or TypeSafe SDK. Read references/question-design.md when designing the truth table, state, wording, and criteria, when an answer looks wrong, and for cookbook patterns. Read references/models.md when picking between the decision models the live catalog returns. Read references/decision-model-limits.md whenever a question involves quantities, dates, negation, indirection, or untrusted text, since those are the things a decision model does not do.

Steps

  1. Split judgment from computation. A step fits a decision model when its answer is bounded, needs judgment rather than computation, and a probability lets code act, defer, or escalate; a step that must produce text, values, or code, or whose answer already sits in a field code can read, stays as it is. Arithmetic, counting, date ordering, lookups, threshold comparisons, and string or pattern matching that extracts a fact (a path, an ID format, an amount) stay in code, and a value code already holds is never re-asked of the model. A keyword, regex, token-overlap, or similarity heuristic that stands in for a judgment (does this text mean X, is this the same request, is this relevant) is the judgment itself: the decision model replaces it, and its rules move into the question's inclusion and exclusion criteria rather than staying as a pre-filter. When code-side facts settle the action for an input (a path rule, a hard policy, an amount over a cap, an empty input), code returns that action and skips the model for that input. When code parses a value out of free text before comparing it, write the parser against the formats in real inputs and treat a parse miss as its own outcome. Generation goes to a generative model, and a decision model can then pick among its candidates. Done when every remaining item is a judgment that fits one primitive.

  2. Pick the primitive per judgment. Mutually exclusive alternatives are a choice, which is relative and settles which option. An independently testable condition is a noul, which is absolute and can be low for every label, so labels that can co-occur are one noul each. A degree along one dimension is a score whose levels each describe a situation that stands alone. One unordered label from a written rubric is one choice whose criteria restate the labels, not several nouls recombined in code. Ordered levels (a 1 to 5 rating, low to critical) are a score whose criteria restate the levels in order, even if code stores the result as a label. Split into nouls only when code combines them with facts of its own or reuses them elsewhere. Comparable per-item scores ranked in code give graded ranking. Locating a target in an image is a box. Done when each judgment has a primitive and a reason.

  3. Build the state. Send only what the questions read. Source text, identities, relationships, policies, and current facts, each in a named JSON field, filtered and retrieved in code first. Anything only code uses stays out (flags, counts, computed booleans, and any field that feeds a code-side rule such as a plan tier that caps a score), and code applies that rule to the returned answer. Unrelated material costs accuracy. Done when every field in state is read by at least one question and nothing a question needs is missing.

  4. Write the questions. instructions states the judgment and carries the task's own inclusion and exclusion rules (what counts, what looks similar but does not). criteria defines the possible answers and reads as an extension of the instructions, asked one way with no double negatives. Ask about the fact, not the text. "Is this change breaking" holds where "Does the description mention breaking changes" and "Does th

Полный SKILL.md на GitHub

Установить openrouter-decisions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdagents/openai.yamlreferences/decision-model-limits.mdreferences/decisions-api.mdreferences/models.mdreferences/question-design.mdscripts/decide.tsscripts/lib.test.tsscripts/lib.tsscripts/models.tsscripts/package-lock.jsonscripts/package.json

FAQ

Что делает скилл openrouter-decisions?

Implement decision models through OpenRouter's Decisions API, which returns probabilities instead of generated text: pick the primitive per judgment, build minimal state, write the questions, pin a model from the live catalog, gate in code, and probe thresholds on real inputs. Use when replacing a prompt-and-parse LLM call, a keyword or similarity heuristic, a human review queue, or a misfiring router, filter, or classifier with a decision model, when locating something in an image with a Box question, when moving TypeSafe SDK or System One code onto OpenRouter, when asked to find or implement decision-model use cases in an app or agent, and whenever decision models, Jev, TypeSafe, or System One come up. Covers routing, classification, moderation, guardrails, grounding checks, scoring, ranking, dedupe, escalation and approval gates, bounded extraction, and thresholds. Not for chat completions, text generation, or general OpenRouter setup.

Как установить скилл openrouter-decisions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл openrouter-decisions запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить openrouter-decisions с