Builds provider-neutral typed AI contracts with JSON Schema validation, adapters for native or generic LMs, bounded repair, and explicit failure handling.
Ships in typed-decision-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Define one provider-neutral DecisionSpec; implement adapters. Internal schemas are not provider wire schemas: adapters enforce current criteria shape, cardinality, context, and media limits.
native: provider returns typed probabilities directly.structured-output: LM uses JSON Schema/tool calling.prompt-parse: last-resort JSON extraction; stricter validation and lower trust.All adapters normalize into same validated result (references/decision-result.schema.json). Types generated by SDK do not replace runtime validation. After schema validation, run equivalent of scripts/validate_result.py: answer IDs/types match questions, selected Choice exists, probability keys match criteria, distributions sum to 1 within documented tolerance, and Score range matches levels.
flowchart LR
A[Application] --> S[DecisionSpec]
S --> D{Adapter}
D --> N[Native decision model]
D --> L[Structured-output LM]
D --> P[Prompt/parse fallback]
N --> V[Runtime validator]
L --> V
P --> V
V --> C[Pure policy/composer]
C --> X[Action]
C --> F[Fallback/review]
D -. usage .-> U[Usage ledger]
V -. retries/failures .-> U
C -. route .-> U
[0,1]; validate distribution sum with documented tolerance.Preserve raw response for audit after redaction. Never log API keys, secrets, or sensitive state.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/decision-designDecompose broad AI tasks into atomic Choice, Score, and Noul judgments; batch independent questions and compose results deterministically with confidence-aware routing./token-benchmarkMeasure baseline versus typed-decision pipelines using comparable token, call, latency, cost, retry, and quality data; generate honest Markdown reports and slides./typed-decision-engineering:type-safe-contractsfrom typed-decision-engineering
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin typed-decision-engineeringOther plugins' skills for the same job