CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

api-mock-server

The guide provides implementation examples for REST and GraphQL handlers, browser and Node setup, json-server routes, fixture factories, and reusable mock scenarios. It also shows test and Playwright integrations for success, error, loading, and empty states, followed by 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/api-mock-server/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 body is highly actionable, with executable, well-chosen code for MSW, json-server, fixtures, scenarios, and E2E mocking, but it front-loads everything into a single long file with no progressive disclosure or validation checkpoints. Splitting tool-specific deep dives into reference files and tightening the redundant checklist/best-practices overlap would materially improve it.

Suggestions

Move GraphQL mocking, Playwright integration, and json-server custom routes into one-level-deep reference files (e.g., references/graphql.md, references/e2e.md) and keep SKILL.md as a concise overview with clear links, improving both conciseness and progressive disclosure.

Add explicit validation steps to the Core Workflow (e.g., start with onUnhandledRequest: 'error' to catch unmocked requests, confirm handlers intercept before writing tests) so the sequence has real checkpoints.

Fix the small executability gaps: remove // comments from the db.json block and replace json-server.config.js with the actual CLI-flag configuration json-server supports.

DimensionReasoningScore

Conciseness

The ~560-line body is almost entirely dense, relevant code with no concept-explanation padding, but it could be tightened: the full five-verb CRUD handler set, GraphQL, json-server custom routes, factories, scenarios, and Playwright sections all live inline, and the Output Checklist substantially repeats the Best Practices list. This lands on 'mostly efficient but could be tightened' rather than lean.

3 / 5

Actionability

Nearly everything is copy-paste ready — install commands (`npm install -D msw`, `npx msw init ./public --save`), complete typed handlers, browser/node/test setup, and factory/scenario code covering the common cases. Minor gaps keep it from anchor 5: the `db.json` block contains `//` comments (invalid if pasted as JSON), `json-server.config.js` is not a real json-server configuration mechanism, and the `slowNetwork` handler's `return undefined` fall-through is questionable.

4 / 5

Workflow Clarity

The Core Workflow lists six sequenced steps (choose approach → define handlers → fixtures → scenarios → integrate tests → document), but each is a terse one-liner with no commands, and no validation checkpoints exist anywhere (e.g., verifying mocks actually intercept requests or that `onUnhandledRequest: 'error'` passes). This matches 'steps listed but validation gaps / checkpoints missing'.

3 / 5

Progressive Disclosure

No bundle files exist (no references/, scripts/, or assets/ directories) and the skill is a well-headered 560-line monolith; sections like GraphQL mocking, Playwright integration, and json-server custom middleware clearly belong in one-level-deep reference files. Section structure is good, which lifts it above anchor 2, but the absence of any file split leaves it at 'content that should be separate is inline'.

3 / 5

Total

13

/

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 that follows best practice: concrete capability statement plus an explicit "Use when..." clause with multiple natural trigger phrases. The only weaknesses are mild — one action verb backed by tool choices rather than several distinct actions, and one loosely scoped trigger ("test fixtures").

DimensionReasoningScore

Specificity

"Creates mock API servers for testing and development with MSW, json-server, or custom handlers" names the domain, purpose, and three concrete implementation approaches, going beyond the 1-2 action anchor; it stops short of anchor 5 because it describes essentially one action (creating mock servers) rather than a comprehensive list of distinct capabilities.

4 / 5

Completeness

Explicitly answers both questions: the what ("Creates mock API servers for testing and development with MSW, json-server, or custom handlers") and the when ("Use when users request 'API mocking', 'mock server', 'MSW setup', 'test fixtures', or 'mock API responses'") with concrete trigger phrases, matching the anchor-5 pattern.

5 / 5

Trigger Term Quality

Five natural quoted triggers ("API mocking", "mock server", "MSW setup", "test fixtures", "mock API responses") cover what users would actually say, with good synonym coverage across mock/mocking. Not anchor 5 because common variants like "stub API", "fake server", or "intercept requests" are missing.

4 / 5

Distinctiveness Conflict Risk

The core triggers ("API mocking", "mock server", "MSW setup", "mock API responses") carve out a clear niche with minimal conflict risk, but "test fixtures" is a broader term that could overlap with general testing/skills, keeping it at the minor-overlap anchor rather than anchor 5.

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

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/api-mock-server/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.