CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

foundation-test-migration

Migrating unit tests to foundation unit tests using TestUniverse and devtools_foundation_module. Use when moving tests away from DOM-heavy helpers like describeWithEnvironment or describeWithMockConnection.

Quality

83%

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

75%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 a well-structured, actionable migration guide with executable code for each step, concrete error-message-driven troubleshooting, and explicit dual-runtime verification commands. All dimensions land at 4 rather than 5 only due to minor gaps: a placeholder in one snippet, filler phrases in the intro, no mid-workflow test-run checkpoint, and no offloading of advanced scenarios to reference files.

DimensionReasoningScore

Conciseness

The body is efficient and code-heavy, with high-value warnings like '**Crucial:** Without setupRuntimeHooks, tests creating SDK models will crash', but contains minor trimmable filler such as 'This skill provides guidance on...' and the '(Isomorphic)' gloss. Not 5 because a few tokens do not earn their place; well above 3 since nothing is padded or over-explained.

4 / 5

Actionability

Snippets include real imports (setupRuntimeHooks, MockCDPConnection) and runnable verification commands ('./dt test front_end/core/sdk/NetworkManager.test.ts --node-unit-tests'), but the legacy-singletons example has a literal '[...]' placeholder and relies on unstated imports. Not 5 due to these small gaps; clearly above 3 since guidance is executable rather than pseudocode.

4 / 5

Workflow Clarity

The migration is clearly sequenced (Replace Heavy Helpers -> Access Dependencies via Universe -> Legacy Singletons -> BUILD.gn Changes) and ends with explicit verification commands for both runtimes, plus pitfalls keyed to concrete failure messages. Not 5 because there is no mid-migration checkpoint instructing iterative test runs; above 3 because validation steps are explicit, so no validation cap applies.

4 / 5

Progressive Disclosure

Sections are well organized with no nested or buried references and no bundle files to navigate, and the ~170-line body is a defensible size for a single SKILL.md. Not 5 because the file exceeds 50 lines and advanced material (legacy-singleton bridging, troubleshooting) could plausibly live in reference files; above 3 because there is no reference dump or inlined content that clearly belongs elsewhere.

4 / 5

Total

16

/

20

Passed

Description

82%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 and concrete 'Use when' clause covering both what the skill does and when to invoke it. The only weakness is that it names the migration action and tools rather than enumerating the specific sub-tasks the skill guides (helper replacement, CDP mocking, BUILD.gn changes, dual-runtime verification).

Suggestions

Enumerate the concrete migration actions in the description, e.g. 'Replace describeWithEnvironment/describeWithMockConnection with TestUniverse-based setups, stub CDP traffic via MockCDPConnection, and update BUILD.gn to devtools_foundation_module'.

Add natural trigger synonyms such as 'test migration' or 'foundation tests' so users phrasing the need differently still match.

Mention the dual-runtime (Node.js and Browser) verification outcome as a capability, which is the skill's end goal.

DimensionReasoningScore

Specificity

The description names the domain and the key tools ('using TestUniverse and devtools_foundation_module') but lists only one concrete action (migrating tests), without covering the several specific actions the skill actually performs (replacing helpers, mocking CDP traffic, updating BUILD.gn).

3 / 5

Completeness

It explicitly answers both 'what' ('Migrating unit tests to foundation unit tests using TestUniverse and devtools_foundation_module') and 'when' ('Use when moving tests away from DOM-heavy helpers like describeWithEnvironment or describeWithMockConnection') with concrete trigger phrases.

5 / 5

Trigger Term Quality

Natural trigger terms like 'unit tests', 'describeWithEnvironment', 'describeWithMockConnection', and 'DOM-heavy helpers' match what a user would actually say, but common variations such as 'test migration' or 'foundation tests' are missing.

4 / 5

Distinctiveness Conflict Risk

The niche tool and helper names (TestUniverse, devtools_foundation_module, describeWithMockConnection) create a clear, distinct trigger surface with minimal risk of conflicting with other skills.

5 / 5

Total

17

/

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

ChromeDevTools/devtools-frontend

Path

.agents/skills/foundation-test-migration/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.