CtrlK
BlogDocsLog inGet started
Tessl Logo

llm-structured-output

Get reliable JSON, enums, and typed objects from LLMs using response_format, tool_use, and schema-constrained decoding across OpenAI, Anthropic, and Google APIs.

60

Quality

70%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./skills/llm-structured-output/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

71%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This is a highly actionable skill with excellent code examples covering three major LLM providers, strong anti-pattern guidance, and useful edge case coverage. Its main weaknesses are verbosity (explaining concepts Claude already knows, over-detailed 'When to Use' section) and lack of progressive disclosure — at ~300 lines, the content would benefit from splitting best practices, edge cases, and provider-specific details into separate reference files. The workflow is solid but would be stronger if the retry/validation logic were demonstrated in a code example rather than only described in prose.

Suggestions

Trim the 'What This Skill Does' and 'When to Use This Skill' sections significantly — Claude doesn't need explanations of what structured output is or detailed negative matching criteria.

Split edge cases, best practices, and 'Never Do This' into separate bundle files (e.g., EDGE_CASES.md, BEST_PRACTICES.md) with brief summaries and links in the main SKILL.md.

Add a concrete code example showing the retry loop from step 9 — currently the most important production pattern is described only in prose.

Remove explanatory rationale from workflow steps (e.g., step 10's 'When structured output breaks in production, you need these logs to determine...') — Claude can infer why logging matters.

DimensionReasoningScore

Conciseness

The skill is thorough but noticeably verbose in several areas. The 'When to Use This Skill' section is overly detailed with 8 positive and 4 negative conditions. The 'What This Skill Does' intro paragraph explains concepts Claude already understands (what structured output is, what JSON is). The core workflow, while valuable, could be tightened — steps like 'Log every structured output call' over-explain rationale. However, the examples and edge cases sections are reasonably efficient.

3 / 5

Actionability

Excellent actionability with three complete, copy-paste ready code examples covering OpenAI (Python), Anthropic (Python), and OpenAI (TypeScript with Zod). Each example includes imports, client setup, schema definition, API call, and result extraction. The core workflow provides specific parameter names, field paths, and exact API configurations. The 'Never Do This' section gives concrete anti-patterns with specific technical details.

5 / 5

Workflow Clarity

The 10-step core workflow is clearly sequenced and includes validation (step 8) and retry logic (step 9) with a concrete retry cap. However, the validation/retry steps are described in prose rather than demonstrated in the code examples — none of the three examples show the retry loop or validation step in action. The workflow also lacks explicit checkpoints between steps (e.g., no 'if schema definition fails' branching). Still, the sequence is logical and the retry pattern is well-specified.

4 / 5

Progressive Disclosure

The content is a monolithic ~300-line file with no references to supporting files. The edge cases, best practices, and 'Never Do This' sections could reasonably be split into separate reference files. The content is well-sectioned with clear headers, which helps navigation, but for a skill this long, progressive disclosure into bundle files would be appropriate. No bundle files are provided, and none are referenced.

3 / 5

Total

15

/

20

Passed

Description

70%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is technically specific and clearly identifies a distinct niche around structured LLM outputs. It names concrete techniques and providers, making it distinguishable. However, it lacks an explicit 'Use when...' clause and misses some natural user phrases like 'structured output' or 'force JSON response'.

Suggestions

Add a 'Use when...' clause such as 'Use when the user needs structured output, wants to force JSON responses, or asks about constraining LLM output format.'

Include natural synonyms like 'structured output', 'force JSON', 'guaranteed format', 'function calling' to improve trigger term coverage.

DimensionReasoningScore

Specificity

Lists several specific actions (get JSON, enums, typed objects) and specific techniques (response_format, tool_use, schema-constrained decoding) across named APIs. Minor gaps in not mentioning validation, error handling, or other related tasks.

4 / 5

Completeness

Has a clear 'what' (get reliable structured outputs from LLMs using specific techniques) but lacks an explicit 'when' clause. There is no 'Use when...' guidance to tell Claude when to select this skill.

3 / 5

Trigger Term Quality

Includes strong technical trigger terms like 'JSON', 'enums', 'typed objects', 'response_format', 'tool_use', 'schema-constrained decoding', 'OpenAI', 'Anthropic', 'Google APIs'. Missing some natural user phrases like 'structured output', 'force JSON', 'guaranteed format', or 'function calling'.

4 / 5

Distinctiveness Conflict Risk

Very distinct niche combining structured output, specific decoding techniques, and named API providers. Unlikely to conflict with other skills due to the highly specific combination of terms like 'schema-constrained decoding' and 'response_format'.

5 / 5

Total

16

/

20

Passed

Validation

90%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation10 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

10

/

11

Passed

Repository
administrakt0r/AI-Agents-Safe-Coding-Skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.