CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

api-contract-normalizer

The guide provides shared TypeScript contract types, response and error middleware examples, pagination and status-code conventions, and an OpenAPI schema. It also outlines a workflow and phased migration plan for adopting consistent API contracts.

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/api-contract-normalizer/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

57%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 content is highly actionable — complete, executable TypeScript contracts and middleware — but it functions as a monolithic reference document: HTTP basics are re-explained, the core workflow lacks validation checkpoints, and bulk material that belongs in reference files is entirely inline.

Suggestions

Move the full type definitions, OpenAPI spec, and migration plan to references/ files (e.g., references/types.md, references/migration.md), keeping SKILL.md as a concise overview with well-signaled one-level-deep pointers.

Trim the 'Status Code Standards' section to only project-specific mappings — Claude already knows standard HTTP status semantics like 404 = not found.

Add explicit validation checkpoints to the Core Workflow (e.g., test the normalization middleware against existing endpoints and verify the OpenAPI spec renders before starting the migration phases).

DimensionReasoningScore

Conciseness

Mostly efficient — the bulk is dense TypeScript/YAML contract code — but the 'Status Code Standards' section re-explains HTTP basics Claude already knows ('NOT_FOUND: 404, // Resource not found', 'UNAUTHORIZED: 401, // Missing/invalid auth') and the 'Best Practices' section restates what the code already shows. This matches 'mostly efficient but includes some unnecessary explanation or could be tightened'.

3 / 5

Actionability

The body provides complete, near copy-paste-ready TypeScript: full interfaces, both middleware functions, an ApiResponseBuilder class, and an OpenAPI schema. It falls short of anchor 5 due to minor gaps — 'ValidationError' is referenced but never imported, 'req.id' and 'req.apiVersion' are used without type augmentation or setup — but is well above anchor 3 since the code is real and executable, not pseudocode.

4 / 5

Workflow Clarity

The 'Core Workflow' lists a clear 7-step sequence (audit → define → types → middleware → document → migrate → version) but each step is a terse one-liner with no validation checkpoints — no step verifies the middleware against existing endpoints or tests contracts. The Output Checklist and migration-phase monitoring partially compensate, matching 'steps listed but validation gaps; checkpoints missing or implicit' rather than anchor 4's 'most checkpoints present'.

3 / 5

Progressive Disclosure

Sections are well-organized with clear headers, but ~400 lines of full type definitions, middleware implementation, OpenAPI spec, and a phased migration plan are all inlined in SKILL.md with no references/ files in the bundle — precisely the anchor-3 pattern of 'content that should be separate is inline' with some structure. Not anchor 2 because structure is good; not anchor 4 because nothing is split out.

3 / 5

Total

13

/

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 what the skill does, what it delivers, and when to use it, with quoted natural trigger phrases. Its only weakness is moderate trigger-term coverage and slight overlap risk with adjacent API-design skills.

DimensionReasoningScore

Specificity

The description enumerates concrete capabilities across the full domain — 'pagination format, error structure, status codes, response envelopes, and versioning strategy' — and concrete deliverables ('contract documentation, shared TypeScript types, middleware utilities, and migration plan'). Coverage is comprehensive across all major contract facets, matching the anchor-5 example rather than the minor-gaps level of 4.

5 / 5

Completeness

Both questions are explicitly answered: the 'what' in the first two sentences (unifies response patterns, provides types/middleware/documentation/migration plan) and the 'when' in 'Use when standardizing "API contracts", "response formats", "API conventions", or "API consistency"' with concrete trigger phrases — the exact pattern of the anchor-5 example.

5 / 5

Trigger Term Quality

The 'Use when' clause quotes four natural user phrasings — '"API contracts", "response formats", "API conventions", or "API consistency"' — which a user would plausibly say. It falls short of anchor 5 because common variants like 'API design', 'API guidelines', or 'standardize API responses' are missing; it is well above anchor 3 since the terms are natural and directly tied to the task.

4 / 5

Distinctiveness Conflict Risk

The niche — API contract/response-format standardization — is distinct with domain-specific triggers, but broad phrases like 'response formats' and 'API conventions' carry minor overlap risk with generic API-design or API-documentation skills. This matches 'mostly distinct; minor overlap risk with closely related skills' rather than anchor 5's minimal conflict risk.

4 / 5

Total

18

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/api-contract-normalizer/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.