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

93%

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

96%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 an excellent, dense migration guide: executable code for every step, explicit verification commands for both runtimes, and a pitfalls section that supplies feedback loops for the failure modes a migrator will actually hit. The only structural improvement would be splitting the advanced legacy-singleton bridging and troubleshooting detail into reference files to slim the main SKILL.md.

DimensionReasoningScore

Conciseness

Quotes: "Do not use describeWithEnvironment or describeWithMockConnection; both are banned in new and migrated unit tests", "TestUniverse.createTarget() defaults to about:blank", "deps is reserved for non-TypeScript generator targets". Nearly every token is project-specific knowledge Claude cannot already know (banned helpers, default URL differences, singleton wiring order, GN ts_deps semantics), with no generic-concept padding beyond a brief orienting intro — matching the lean 5 anchor rather than 4's 'minor instances of over-explanation'.

5 / 5

Actionability

Quotes: full import block with setupLocaleHooks/setupSettingsHooks/setupRuntimeHooks, "universe.createTarget({url: urlString`http://example.com/`})", the MockCDPConnection example, the sinon.stub singleton-bridging block, the complete BUILD.gn example, and "./dt test front_end/core/sdk/NetworkManager.test.ts --node-unit-tests". The guidance is copy-paste ready with OLD/NEW contrasts covering the common migration cases, matching the fully-executable 5 anchor.

5 / 5

Workflow Clarity

Quotes: numbered steps "1. Replace Heavy Helpers", "2. Access Dependencies via Universe", "3. Dealing with Legacy Singletons & Helpers"; the crash warning "Without setupRuntimeHooks, tests creating SDK models will crash"; the Verification section with explicit commands for both runtimes; and pitfalls with recovery guidance such as "Double-check the constructor of the failing manager to see which instance() it listens to". The sequence is clear with explicit validation commands and error-recovery feedback loops; this is not a destructive/batch operation, so no cap applies.

5 / 5

Progressive Disclosure

Quotes: section headers "## Core Concepts", "## Migration Guide", "## Pitfalls & Troubleshooting", "## BUILD.gn Changes", "## Verification". The single file (about 190 lines, no bundle files) is well organized with clear sections, fitting the 4 anchor of good structure with minor organization gaps; it is below 5 because content like the legacy-singleton bridging walkthrough and the troubleshooting entries could plausibly live in one-level-deep reference files, and the under-50-line simple-skill exception does not apply.

4 / 5

Total

19

/

20

Passed

Description

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

The description is strong: it states a concrete what with named tools and an explicit, trigger-phrase-rich when clause referencing the exact legacy helpers a DevTools contributor would mention. Its only weaknesses are slightly limited keyword coverage (missing common phrasings like "DevTools" or "test migration") and not previewing the fuller scope of the migration.

DimensionReasoningScore

Specificity

Quotes: "Migrating unit tests to foundation unit tests using TestUniverse and devtools_foundation_module". Names the domain and the concrete migration mechanism with both tool names, matching the 'several specific actions; minor gaps' anchor; it is above 3 (which expects only 1-2 actions without named tools) but below 5 because it omits aspects of the migration the body covers (BUILD.gn changes, CDP mocking, verification).

4 / 5

Completeness

Quotes: what = "Migrating unit tests to foundation unit tests using TestUniverse and devtools_foundation_module"; when = "Use when moving tests away from DOM-heavy helpers like describeWithEnvironment or describeWithMockConnection". Both what and when are explicit, and the when clause carries concrete trigger phrases (the named legacy helpers), matching the top anchor rather than 4 where the when is only generally stated.

5 / 5

Trigger Term Quality

Quotes: "Use when moving tests away from DOM-heavy helpers like describeWithEnvironment or describeWithMockConnection". Includes the exact legacy helper names a user would naturally mention plus "unit tests" and "foundation unit tests", which is good keyword coverage; it falls short of the 5 anchor because common variations like "DevTools", "test migration", or file-path phrasings are absent.

4 / 5

Distinctiveness Conflict Risk

Quotes: "foundation unit tests", "describeWithEnvironment or describeWithMockConnection". This is a clear niche with distinct, tool-specific triggers; there is minimal realistic overlap with any other skill, matching the 5 anchor.

5 / 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

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.