CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

data-client-react-testing

Test @data-client/react with renderDataHook and mountDataClient - jest unit tests, fixtures, interceptors, MockResolver, mock responses, nock HTTP mocking, fake timers for polling/subscription tests, DataProvider test setup, hook and component testing. Use when writing or debugging tests for hooks, components, or resources built on @data-client/react.

70

Quality

88%

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

SKILL.md
Quality
Evals
Security

Quality

Content

78%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 well-organized, code-dense reference skill with excellent progressive disclosure — all referenced files exist and are one level deep. The main weaknesses are small: a couple of non-executable snippets (untyped fixture interfaces, the bare nock example) and some redundancy between the Best Practices section and earlier guidance.

Suggestions

Replace the untyped SuccessFixture/ResponseInterceptor pseudocode with real TypeScript definitions or just link to references/Fixtures.md, which already documents the fixture format.

Fix the nock example so it executes as written (e.g. render a component or use a fetch middleware to trigger TodoResource.get), or note the surrounding setup it requires.

Trim the Best Practices bullets that duplicate inline guidance (the automatic-cleanup note and tool-selection advice) to reclaim tokens without losing information.

DimensionReasoningScore

Conciseness

The body is code-first and lean, explaining nothing Claude already knows, but the Best Practices section duplicates earlier guidance (cleanup is explained at line 41 and repeated as 'Don't manually call renderDataHook.cleanup()' at line 214, and tool-selection advice repeats the section intros). This fits 'efficient; minor instances of over-explanation that could be trimmed' rather than the every-token-earns-its-place anchor at 5.

4 / 5

Actionability

Most sections give near copy-paste examples (renderDataHook usage, mutation via resolverFixtures, MockResolver rendering), but the SuccessFixture/ResponseInterceptor 'interfaces' are untyped pseudocode ('endpoint;', 'response(...args);' without types) and the nock example calls 'await TodoResource.get({ id: 1 })' with no fetch/manager wiring, so it likely won't execute as written. Concrete guidance with minor gaps fits 4 rather than the fully-executable anchor at 5, and clearly exceeds the pseudocode-heavy anchor at 3.

4 / 5

Workflow Clarity

This is a pattern catalog rather than a linear process, and it handles scenario-to-tool decisions well: the Best Practices list ('Use renderDataHook() for testing hooks...', 'Use nock when testing networking definitions', 'Don't mock @data-client internals directly') plus the test file organization section give a clear decision path. Minor gaps: no guidance on running tests or verifying they pass, which fits 'clear sequence with most checkpoints present' at 4 rather than 5. No destructive or batch operations apply, so no validation cap is triggered.

4 / 5

Progressive Disclosure

The body is a concise overview with one runnable example per topic, and all detailed API docs are pushed to a references/ directory that is exactly one level deep. Every one of the 7 links in the References section (renderDataHook, makeRenderDataHook, Fixtures, MockResolver, mockInitialState, unit-testing-hooks, unit-testing-components) points to a real existing file, each labeled with a one-line description — matching the clear-overview, well-signaled-references top anchor.

5 / 5

Total

17

/

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.

A strong description: concrete, comprehensive, and explicit about both capabilities and trigger conditions, tightly scoped to one library. The only minor gap is a few missing natural synonyms a user might say when asking for test help.

DimensionReasoningScore

Specificity

The description enumerates many concrete actions and tools: 'Test @data-client/react with renderDataHook and mountDataClient - jest unit tests, fixtures, interceptors, MockResolver, mock responses, nock HTTP mocking, fake timers for polling/subscription tests, DataProvider test setup'. This is comprehensive coverage of the library's testing surface with no significant gaps, matching the top anchor rather than the 'several specific actions; minor gaps' anchor.

5 / 5

Completeness

It explicitly answers 'what' (the full first sentence listing capabilities) and 'when' ('Use when writing or debugging tests for hooks, components, or resources built on @data-client/react'). Both are concrete and explicit, matching the top anchor exactly.

5 / 5

Trigger Term Quality

Good natural keyword coverage ('jest unit tests', 'mock responses', 'hook and component testing', 'writing or debugging tests'), but common variations users might say are missing (e.g. 'spec', '.test.ts', 'test suite'). Fits 'good keyword coverage; a few natural terms missing' rather than the comprehensive-synonyms anchor at 5, and clearly exceeds the partial-coverage anchor at 3.

4 / 5

Distinctiveness Conflict Risk

The description is anchored to a single specific library (@data-client/react) with library-specific tools (renderDataHook, MockResolver, mountDataClient), giving it a clear niche with distinct triggers and minimal risk of firing for unrelated testing skills.

5 / 5

Total

19

/

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

reactive/data-client

Path

.agents/skills/data-client-react-testing/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.