CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

structured-output-extractor

The guide compares extraction methods and provides TypeScript examples for OpenAI structured outputs, function calling, Zod validation, multi-step extraction, streaming, and error handling. It also offers implementation recommendations and a checklist for validating, testing, and handling edge cases in structured extraction.

Quality

78%

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 ./.agents/skills/structured-output-extractor/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

63%Weight 40%Scale 1-5

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

The body is actionable and well-structured with real code and a clear workflow, but it is a monolithic 560-line file that should be split into reference files, and it contains duplicated patterns and version-pinned model names that hurt token efficiency. Several code snippets also lack the imports needed to run as written.

Suggestions

Split advanced sections (streaming, hierarchical/multi-step patterns, error handling) into references/ files and keep SKILL.md as a concise overview, matching the implied 'extractors/*.ts' file structure.

Remove time-sensitive model version pins like 'gpt-4-turbo-preview' and 'gpt-4o-2024-08-06', or move them to a deprecated-patterns section.

Make each code snippet self-contained (imports, openai instance, the 'extract' helper in multistep.ts) or explicitly note shared prerequisites once.

DimensionReasoningScore

Conciseness

The ~560-line body includes near-duplicate patterns (Function Calling vs. Tool Use sections), a hand-rolled 'Simplified' zodToJsonSchema, and time-sensitive model versions ('gpt-4-turbo-preview', 'gpt-4o-2024-08-06') that age poorly. Mostly code rather than concept-padding, but noticeable tightening is possible.

3 / 5

Actionability

Concrete, real TypeScript throughout covering the common extraction cases. Not 5 because several snippets are not self-contained: retry.ts and streaming.ts use undeclared 'openai'/'z' imports, and multistep.ts calls an undefined 'extract' helper.

4 / 5

Workflow Clarity

The 5-step Core Workflow (Define schema → Choose method → Generate → Validate → Handle errors) is clearly sequenced, and retry-with-error-context code provides a feedback loop. Not 5 because validation checkpoints are terse labels rather than explicit gates tied to commands.

4 / 5

Progressive Disclosure

Well-organized section headers, but the entire skill is one monolithic file with no references/ bundle despite '// extractors/*.ts' header comments implying separate files. Streaming, hierarchical, and error-handling sections are inline content that belongs in one-level-deep reference files.

3 / 5

Total

14

/

20

Passed

Description

83%Weight 40%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.

A strong description with clear what/when structure, third-person voice, and natural trigger phrases. It is specific about techniques (JSON schemas, Zod, function calling) and unlikely to fire for unrelated skills, though it could broaden trigger synonyms slightly.

Suggestions

Add common trigger synonyms such as 'schema', 'validate LLM output', or 'extract JSON from text' to broaden natural-term coverage.

Mention error handling/retry capabilities in the description since they are a core part of the skill body.

DimensionReasoningScore

Specificity

Names several concrete capabilities ('using JSON schemas, Zod validation, and function calling for reliable parsing') rather than vague language. Falls short of 5 because capabilities like retry/error handling, streaming, or complex-schema extraction covered in the body are absent from the description.

4 / 5

Completeness

Explicitly answers both what ('Extracts structured data from LLM responses using JSON schemas, Zod validation, and function calling') and when ('Use when users request...') with concrete trigger phrases, matching the top anchor. Not 4 because the when-clause is explicit and specific rather than vague.

5 / 5

Trigger Term Quality

Includes natural phrases users would say: 'structured output', 'JSON extraction', 'parse LLM response', 'function calling', 'typed responses'. Not 5 because common synonyms such as 'schema', 'validate LLM output', or 'extract JSON' are missing.

4 / 5

Distinctiveness Conflict Risk

The LLM-response-parsing niche with distinct triggers ('structured output', 'typed responses') is mostly distinct. Not 5 because there is minor overlap risk with generic JSON-processing or data-extraction skills.

4 / 5

Total

17

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (562 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/structured-output-extractor/SKILL.md

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.