CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

api-test-suite-generator

This guide outlines a workflow for turning API routes and contracts into comprehensive test suites. It provides code examples for test setup, an API client, a generator script, fixtures, contract validation, and a `test-gen` CLI, plus testing recommendations and an output checklist.

Quality

79%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/api-test-suite-generator/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 delivers highly actionable, executable guidance for generating API test suites, with a clear workflow and a useful output checklist. Its weaknesses are token efficiency and organization — large, partly redundant code blocks are inlined rather than split into scripts/references, and the workflow lacks an explicit run-and-verify validation step.

Suggestions

Move the ~190-line generator script and CLI script into a `scripts/` directory and the full example test suite plus contract-testing section into `references/`, keeping SKILL.md as a lean overview with clearly signaled one-level-deep links.

Remove the redundancy between the "Example Generated Tests" section and the generator script — show one or two representative generated tests and rely on the generator code for the rest, cutting the body by roughly half.

Add an explicit validation step to the workflow (e.g., "Run the generated suite with the project's test runner and fix any failures before delivering") and define or stub the undefined helpers (`scanRoutes`, `groupRoutesByResource`, `createTestResource`, `hashPassword`) so the shipped code is executable as written.

DimensionReasoningScore

Conciseness

At ~590 lines the body is far heavier than the task warrants: the full generator script, the 145-line "Example Generated Tests" section, and the CLI script substantially duplicate one another (the examples largely restate what the generator emits). Prose itself is lean, but the redundancy and inlined bulk mean it could be tightened considerably, matching the "mostly efficient but could be tightened" anchor.

3 / 5

Actionability

The setup, API client, fixtures, contract tests, and example test code are concrete and largely copy-paste ready. Minor gaps keep it from a 5: the generator script calls undefined helpers (`createTestResource`, `scanRoutes`, `groupRoutesByResource`) and the fixture references an undefined `hashPassword`, so that code is not fully executable as written.

4 / 5

Workflow Clarity

The six-step "Core Workflow" (scan routes → analyze contracts → generate tests → assertions → edge cases → fixtures) is a clear sequence, and the "Output Checklist" provides a review checkpoint. It falls short of a 5 because there is no explicit validation step (e.g., run the generated tests to confirm they compile and pass before finishing).

4 / 5

Progressive Disclosure

Section headers organize the content well, but there are no bundle files at all: the generator script, full example suite, contract-testing guide, and CLI code (~400 lines of code that clearly belong in `scripts/` or `references/`) are fully inlined in SKILL.md. This matches the anchor of structure present but content that should be separate kept inline.

3 / 5

Total

14

/

20

Passed

Description

88%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 that clearly states concrete capabilities, names its tools and frameworks, and provides explicit quoted trigger phrases for when to use it. The only improvements are broader synonym coverage in the triggers and slightly sharper distinction from general test-writing skills.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — "Generates comprehensive API test suites", "Creates integration tests, contract tests, and edge case coverage" — and names the specific tools (Jest, Vitest, Supertest) and source frameworks (Express, Next.js, Fastify) involved, giving comprehensive coverage of the skill's capabilities with no real gaps.

5 / 5

Completeness

It explicitly answers both what ("Generates comprehensive API test suites... integration tests, contract tests, and edge case coverage") and when ("Use when users request..." with four concrete trigger phrases), matching the top anchor precisely.

5 / 5

Trigger Term Quality

Quoted triggers like "generate api tests", "create endpoint tests", "api test suite", and "integration tests for api" are natural phrases users would say, providing good keyword coverage. Not a 5 because common variations such as "test my endpoints", "REST API tests", or "route tests" are absent.

4 / 5

Distinctiveness Conflict Risk

The niche is clear — API test generation tied to specific runners and route frameworks — with distinct quoted triggers, giving minimal conflict risk. Slight overlap remains with generic unit/integration-testing skills via the broad phrase "integration tests", keeping it just below the top anchor.

4 / 5

Total

18

/

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 (595 lines); consider splitting into references/ and linking

Warning

referenced_paths_exist

Referenced path issues: 2 possibly missing (scripts/generate-api-tests.ts, scripts/test-gen.ts)

Warning

Total

14

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/api-test-suite-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.