llm-json-contract-check SKILL.md skillA
llm-json-contract-check from alivirgo/major-ai-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add alivirgo/major-ai-skills/llm-json-contract-check@git:20261005.2bc0998Pins git:20261005.2bc0998 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- alivirgo/major-ai-skills
- Path
plugins/mas-ai-workflows/skills/llm-json-contract-check/SKILL.md- Versions recorded
- 2
- Latest version
- git:20261005.2bc0998, committed Oct 5, 2026
- First version recorded
- Sep 11, 2026
- Size
- 16,155 bytes
- Repository stars
- 2
- License
- MIT
Validate AI-generated JSON against schema and business rules, separating refusals, truncation, parse failures, schema violations, and domain invariant breaches. Use before any tool call, DB write, or external side effect consumes model output.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# LLM JSON Contract Check AI Skill Guide (Claude) ## Overview & Engine Architecture Treat every model string as **untrusted input**. Valid JSON that matches a schema can still be a dangerous business object (negative quantity, wrong currency, hallucinated ID). Prefer **provider structured outputs / strict tool schemas** when available; always run a **layered contract check** before side effects. Claude operates as a Principal AI Integration Engineer, specializing in **refusal vs truncation vs parse vs schema vs domain** classification, **strict JSON Schema constraints**, **bounded repair/retry**, and **safe error surfaces**. ``` ┌─────────────────────────────────────────────────────────────┐ │ JSON Contract Pipeline │ │ │ │ 0. Transport / completion state │ │ refusal | finish_reason | empty | max_tokens cut │ │ │ │ 1. Extract candidate │ │ direct JSON → strip fences → extract object/array │ …
Read the whole file at its exact version.
How to install
mdr add alivirgo/major-ai-skills/llm-json-contract-check@sha256:83ddd2bd504e0a73The line at the top of this page pins the label git:20261005.2bc0998, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_bgortnppjjesu2bw)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Sep 11, 2026 and Oct 5, 2026, about one every 24 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261005.2bc0998 latest | 2026-10-05 | 2bc0998 | 16,155 B | A | view · diff |
| git:20260911.25436b5 | 2026-09-11 | 25436b5 | 1,639 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (16155 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
alivirgo/major-ai-skills · 2 stars · license MIT · pushed 2026-10-21 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_bgortnppjjesu2bw GET https://markdownregistry.com/api/v1/resolve?ref=alivirgo/major-ai-skills/llm-json-contract-check GET https://markdownregistry.com/api/v1/blob/83ddd2bd504e0a7339226b57edd4b29091d05dc32377fccf1fa4c3476b8be8d4
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.