CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

openapi-generator

This guide covers converting routes and TypeScript types into OpenAPI specifications, with schema examples and integrations for Fastify and NestJS. It also includes generator and validation scripts, best practices, and an output checklist.

Quality

75%

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/openapi-generator/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

50%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 rich with concrete, mostly executable TypeScript and YAML, but it has three systematic weaknesses: the core route-scanning function is a stub, the workflow's validation step lives outside the step sequence with no feedback loop, and everything (including a full schema library and framework integration guides) is inlined in one ~580-line file with references to scripts that don't exist. These keep every dimension at the midpoint despite strong raw material.

Suggestions

Implement the route scanner (or point to a real, bundled script under scripts/) so the pipeline from scan to export is fully executable — currently 'scanExpressWithOpenAPI' is a stub and the CLI calls an undefined 'scanRoutes'.

Move the framework integration examples (Fastify, NestJS) and the Common Schema Components library into reference files (e.g., references/frameworks.md, references/schemas.md) and link to them from the body, cutting SKILL.md to a lean overview plus the core workflow.

Embed validation as an explicit workflow step with a feedback loop — e.g., '7. Validate: run scripts/validate-openapi.ts; if errors, fix paths/schemas and re-validate' — instead of listing validation only in Best Practices and the final checklist.

DimensionReasoningScore

Conciseness

Quotes: an 80-line TypeScript AST converter ('## TypeScript to OpenAPI Schema Converter'), full '## Fastify Integration' and '## NestJS Integration' sections, and a 95-line '## Common Schema Components' library, all inlined in a ~580-line body. The content is mostly concrete code rather than padded prose, but whole sections of illustrative framework code and reference material inflate the token budget and could be tightened or moved to bundle files. Not 4 because the excess is sectional, not minor; not 2 because there is almost no over-explanation of concepts Claude already knows.

3 / 5

Actionability

Quotes: '// Implementation: traverse files and extract routes with JSDoc comments / Similar to postman generator but with OpenAPI-specific metadata' (a stubbed scanner) and the CLI calling 'await scanRoutes(options.framework, options.source)' which is never defined. Most code (base template, path generator, CLI, validation) is concrete, but the core route-scanning step is pseudocode, leaving the pipeline incompletely executable. Not 4 because a stubbed core input step is more than a minor gap; not 2 because the surrounding guidance is concrete and mostly executable.

3 / 5

Workflow Clarity

Quotes: '1. **Scan routes**: Find all API route definitions' through '6. **Export spec**: YAML or JSON format' — a clear six-step sequence, but validation appears only outside the workflow ('6. **Validate**: Run validation before publishing' in Best Practices) and in the final checklist, with no embedded validate-fix-retry loop. The sequence is present but checkpoints are implicit rather than part of the flow. Not 4 because no checkpoint is wired into the steps themselves; not 2 because the sequence is coherent and a validation script plus output checklist do exist.

3 / 5

Progressive Disclosure

Quotes: code comments '// scripts/type-to-schema.ts', '// scripts/express-openapi.ts', '// scripts/generate-openapi.ts' referencing files that do not exist, and no references/ or scripts/ bundle at all. Section headers give the document reasonable structure and navigability, but ~300 lines of converter, framework-integration, and schema-library content that clearly belongs in separate files is inlined, and the implied script references are broken. Not 4 because nothing is actually split out into well-signaled reference files; not 2 because the section organization is genuinely clear, not minimal.

3 / 5

Total

12

/

20

Passed

Description

92%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.

The description is strong: it states concrete capabilities with named frameworks and output targets, and closes with an explicit 'Use when' clause containing natural trigger phrases. The only weakness is trigger-term coverage, which is good but misses a few common synonyms. It is written in third person with no fluff.

DimensionReasoningScore

Specificity

Quotes: 'Generates OpenAPI 3.0/3.1 specifications from Express, Next.js, Fastify, Hono, or NestJS routes' and 'Creates complete specs with schemas, examples, and documentation that can be imported into Postman, Insomnia, or used with Swagger UI'. Multiple concrete actions are named with specific frameworks and output consumers, matching the comprehensive-coverage anchor; not 4 because coverage has no meaningful gaps.

5 / 5

Completeness

Quotes: 'Generates OpenAPI 3.0/3.1 specifications from... routes' (explicit what) and 'Use when users request "generate openapi", "create swagger spec"...' (explicit when with concrete trigger phrases). Both what and when are clearly and explicitly stated, matching the anchor-5 example shape. Not 4 because the 'when' clause is already fully explicit with concrete triggers.

5 / 5

Trigger Term Quality

Quotes: '"generate openapi", "create swagger spec", "openapi documentation", or "api specification"'. These are natural phrases a user would say, including the 'swagger' synonym, but common variations like 'open api', 'API docs', or 'endpoint documentation' are missing. Not 5 because coverage of synonyms is incomplete; not 3 because what is present is genuinely natural, not generic.

4 / 5

Distinctiveness Conflict Risk

Quotes: 'specifications from Express, Next.js, Fastify, Hono, or NestJS routes' and '"create swagger spec", "openapi documentation"'. The description carves a clear niche (OpenAPI spec generation from JS/TS route code) with distinct trigger phrases, so conflict risk with other skills is minimal. Not 4 because no closely related skill's territory meaningfully overlaps these specific triggers.

5 / 5

Total

19

/

20

Passed

Validation

87%

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

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

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

Warning

referenced_paths_exist

Referenced path issues: 5 possibly missing (scripts/express-openapi.ts, scripts/generate-openapi.ts, scripts/openapi-gen.ts, scripts/type-to-schema.ts, scripts/validate-openapi.ts)

Warning

Total

14

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/openapi-generator/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.