CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

mocking-assistant

This guide shows TypeScript examples for mocking HTTP and GraphQL APIs with MSW, along with fixtures, service and function mocks, and test-specific overrides. It also covers error and timing scenarios, recommends mock-testing practices, and provides an output checklist.

Quality

80%

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/mocking-assistant/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

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

A dense, example-driven skill whose code is concrete and covers a wide range of mocking scenarios, held back by minor executability slips and duplicated examples. Its biggest structural weakness is the absence of any bundle files: all reference material is inlined in one long SKILL.md rather than split into one-level-deep references.

Suggestions

Split fixture catalogs, GraphQL handlers, and service-mock patterns into references/ files (e.g. references/fixtures.md, references/graphql.md) and keep SKILL.md as a lean overview with clearly signaled links.

Fix the executable gaps: import 'delay' from msw in handlers.ts and define 'handleClick' (and its imports) in the analytics and UserProfile test examples so code is truly copy-paste ready.

Remove the duplicated '/api/users/:id' handler definition — show it once in the Fixture Conventions section and reference it from the handlers section.

DimensionReasoningScore

Conciseness

The body is almost entirely executable code with terse one-line lead-ins ('## MSW Setup', '// mocks/handlers.ts') and no re-teaching of concepts Claude already knows. It is not 5 because of redundancy — the '/api/users/:id' handler appears in both the handlers section and the Fixture Conventions section, and some fixture blocks (three full product entries) run longer than needed.

4 / 5

Actionability

Nearly all examples are copy-paste-ready TypeScript with real file paths ('mocks/handlers.ts', 'tests/setup.ts'), covering HTTP, GraphQL, service, function, date, and module mocking. It falls short of 5 due to minor executable gaps: 'delay(2000)' is used in handlers.ts without importing 'delay', and 'handleClick' is referenced but never defined in the analytics and UserProfile test examples.

4 / 5

Workflow Clarity

The MSW Setup section gives a clear lifecycle sequence (beforeAll listen / afterEach resetHandlers / afterAll close) and the Output Checklist provides explicit completion checkpoints, and nothing here is destructive or batch-operational so no cap applies. It is not 5 because there is no guidance on the order or decision criteria for choosing among the ten mocking approaches.

4 / 5

Progressive Disclosure

The file has clear section headers, but there are no bundle files at all — roughly 380 lines are inlined in SKILL.md, including fixture catalogs, GraphQL handlers, and service-mock implementations that clearly belong in separate reference files. This fits 'some structure but content that should be separate is inline'; it is above the 2 anchor only because the section headers keep it navigable.

3 / 5

Total

15

/

20

Passed

Description

78%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 an explicit 'Use for' trigger clause and concrete tooling (MSW, fixture conventions). Its main weakness is that it expresses one broad action rather than enumerating several distinct capabilities, and it misses common trigger synonyms like 'mock data' or 'stubs'.

Suggestions

Enumerate a couple more distinct actions, e.g. 'Creates MSW handlers, defines reusable test fixtures, and mocks services/functions/dates' to move specificity from one verb to several concrete actions.

Add natural trigger synonyms such as 'mock data', 'stubs', or 'test doubles' to the Use-for clause for broader keyword coverage.

DimensionReasoningScore

Specificity

The description names the domain and one concrete action — 'Creates stable mocks for APIs, services, and UI components using MSW... fixture conventions, and example patterns' — but relies on a single verb rather than listing several distinct actions, matching the '1-2 concrete actions, not comprehensive' anchor. It falls below the 4 anchor, whose example enumerates multiple separate actions (extracts, fills, converts).

3 / 5

Completeness

It clearly answers 'what' ('Creates stable mocks for APIs, services, and UI components using MSW (Mock Service Worker), fixture conventions, and example patterns') and explicitly answers 'when' with concrete trigger phrases ('Use for "API mocking", "MSW", "test mocks", or "service mocking"'), matching the top anchor. It is not the 4 anchor because the 'when' clause is fully explicit rather than only partially specific.

5 / 5

Trigger Term Quality

Triggers '"API mocking", "MSW", "test mocks", or "service mocking"' are natural phrases users would say, giving good coverage, but common variants like 'mock data', 'stubs', or 'test doubles' are missing, so it does not reach the comprehensive-synonyms anchor at 5.

4 / 5

Distinctiveness Conflict Risk

The MSW/testing niche is clear and MSW itself is a distinct trigger, but generic terms like 'test mocks' create minor overlap with general test-writing skills, fitting 'mostly distinct; minor overlap risk with closely related skills'. It is not 5 because the trigger set is not fully isolated from adjacent testing skills.

4 / 5

Total

16

/

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/mocking-assistant/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.