llm-structured-output — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited llm-structured-output (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Extract typed, validated data from LLM API responses instead of parsing free-text. This skill covers the three main approaches: OpenAI's response_format with JSON Schema, Anthropic's tool_use block for structured extraction, and Google's responseSchema in Gemini. You will learn when each approach works, when it breaks, and how to build retry logic around schema validation failures that every production system encounters.
response_format, json_mode, json_object, or json_schema in OpenAItool_use or tool_result blocks for data extraction (not for actual tool execution)zodResponseFormat() from the openai npm packageinstructor, marvin, or manual validationcontrolled generation, constrained decoding, or grammar-based sampling in local modelsDo NOT use this skill when:
zod-validation-expert instead)response_format: { type: "json_schema", json_schema: { ... } }. This enables Structured Outputs with guaranteed schema conformance via constrained decoding.input_schema and set tool_choice: { type: "tool", name: "extract_data" }. Claude returns the structured data in the tool_use content block.generationConfig.responseSchema with a JSON Schema object and set responseMimeType: "application/json".--json-schema flag for constrained decoding at the token level.BaseModel. For TypeScript, define a Zod schema and convert it with zodResponseFormat(). For raw API calls, write JSON Schema directly.description string that tells the model what to put there. Models use these descriptions as implicit prompt instructions — a field described as "The user's sentiment as positive, negative, or neutral" produces better results than a bare sentiment: str with no context."You are a data extraction system. Analyze the input and return the requested fields. Do not include explanations outside the JSON structure."json_schema mode, set "strict": true in the schema definition. This activates constrained decoding where the model can only output tokens that conform to the schema. Without strict: true, the model may still produce invalid JSON.response.content by finding the block where type == "tool_use" and reading its input field. Do not parse the text blocks — the structured data lives exclusively in the tool_use block.model_validate() or Zod's .parse() before passing data downstream. This catches semantic issues (empty strings, out-of-range numbers) that schema conformance alone cannot prevent."Your previous output failed validation: {error}. Fix the output." Cap retries at 3 attempts.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.