CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

devtools-ui-widgets

Guidelines for building UI widgets using the MVP architecture in DevTools. Covers Widget lifecycle, lit-html views, and state management.

Quality

72%

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/ui-widgets/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

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

This is a dense, highly actionable engineering guide: complete executable examples, exact API signatures, lint rule names, and a wealth of real gotchas that only a codebase expert would know. Its weaknesses are structural — a monolithic 425-line body with no reference files for the long-tail gotchas, run-on sentences needing tightening, and a migration workflow lacking explicit validation checkpoints.

Suggestions

Move the long-tail gotcha sections (devtools-tree/devtools-prompt, data-grid and directives, toolbar visibility, non-widget render adapters) into references/ files (e.g., references/gotchas.md, references/legacy-interop.md) and keep SKILL.md as an overview with one-level-deep, clearly signaled pointers.

Add explicit validation checkpoints to the migration workflow, e.g., after each step: run eslint/stylelint on changed files, run the unit tests shipped in the same CL, and verify @scope wrapping in a standalone CL before proceeding.

Break up the longest nested-parenthetical rules (constructor options, performUpdate exceptions, ListWidget migration) into short bullet points or a small table, and drop or trim the "Improving this Guide" boilerplate section.

DimensionReasoningScore

Conciseness

Nearly all content is genuinely non-obvious, project-specific knowledge (INJECT/Universe wiring, @scope gotchas, widgetCounterMap pitfalls, ListWidget migration policy) that Claude cannot know, so it does not explain known concepts. However, at ~425 lines with extremely long nested-parenthetical sentences (e.g., the constructor/container-options rules and the performUpdate exception clauses) plus a filler "Improving this Guide" section, it could be noticeably tightened. It fits anchor 3 (mostly efficient but could be tightened) better than anchor 2, since the density comes from overloaded rule sentences rather than padded explanations of familiar material.

3 / 5

Actionability

The guide supplies complete, copy-paste-ready TypeScript for the widget file, CSS scoping, a parent composition example, and a full unit test file with real imports (createViewFunctionStub, renderElementIntoDOM, TestUniverse), plus exact lint rule names (@devtools/no-unscoped-light-dom-styles, check_scope_selectors), file paths, and signature requirements. This matches anchor 5: fully executable examples covering the common cases, and exceeds anchor 4 which permits minor gaps.

5 / 5

Workflow Clarity

"Refactoring Legacy Components" provides a clear numbered 5-step sequence (analyze rendering logic, convert base class, migrate state, update usage, scope styles) and the testing section mandates shipping tests in the same CL. But the workflow contains no explicit validation checkpoints or error-recovery loops (no "run the lint/tests, fix, re-verify" step) even though widget migration and @scope CSS wrapping are called out as regression-prone, which fits anchor 3 (steps present, validation implicit/missing) rather than anchor 4 (most checkpoints present).

3 / 5

Progressive Disclosure

There are no bundle files (no references/, scripts/, or assets/ directories), so the entire ~38KB body — including the long tail of gotchas (devtools-tree, data-grid, SwatchPopoverHelper, toolbar visibility) that would naturally live in reference files — is inlined in SKILL.md. Section headers are clear and consistent, which lifts it above anchor 2 (minimal structure), but content that clearly belongs in separate one-level-deep references is inline, matching anchor 3 rather than anchor 4.

3 / 5

Total

14

/

20

Passed

Description

65%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 specific to a well-defined niche and uses the domain's real vocabulary, making trigger matching reliable for DevTools widget work. Its main weaknesses are the complete absence of a "when to use this" trigger clause (capping completeness at 3) and topic-noun phrasing instead of concrete actions.

Suggestions

Add an explicit trigger clause, e.g., "Use when creating or refactoring UI widgets in the DevTools front_end, working with UI.Widget, lit-html view functions, or migrating legacy VBox/HTMLElement components to the MVP pattern."

Convert topic nouns into concrete actions, e.g., "Build Model-View-Presenter widgets, write lit-html view functions, manage presenter state, and migrate legacy imperative components to UI.Widget."

Include natural synonym terms users might say, such as "presenter", "view function", "custom element", or "Widget migration", to broaden trigger coverage.

DimensionReasoningScore

Specificity

"Guidelines for building UI widgets using the MVP architecture in DevTools. Covers Widget lifecycle, lit-html views, and state management." names the domain and three concrete coverage areas (lifecycle, lit-html views, state management), but these are topic nouns rather than the concrete actions the top anchors call for, and coverage is not comprehensive. It sits above anchor 2 (which only names the domain with generic actions) but below anchor 4 (which lists several specific actions with only minor gaps).

3 / 5

Completeness

The "what" is clearly stated (guidelines for building DevTools UI widgets under MVP, covering lifecycle, lit-html views, state management), but there is no "Use when..." clause or equivalent trigger guidance, which per the judging guidelines caps completeness at 3. It is not a 4 because the "when" is entirely absent rather than merely implicit, and not a 2 because the "what" is specific and multi-part.

3 / 5

Trigger Term Quality

Terms like "UI widgets", "MVP architecture", "DevTools", "Widget lifecycle", "lit-html", and "state management" are exactly the vocabulary a DevTools front_end developer would use when needing this skill. It falls short of anchor 5 because there are no synonyms or variations (e.g., "presenter", "view function", "custom element", "refactoring widgets") that users might naturally say, and above anchor 3 because keyword coverage is good rather than partial.

4 / 5

Distinctiveness Conflict Risk

The combination of "DevTools", "MVP architecture", "Widget", and "lit-html" carves out a clear niche with distinct triggers; no generic skill (PDF, documents, general UI work) would collide with it. It matches anchor 5 (clear niche, distinct triggers, minimal conflict risk) and is clearly above anchor 4, which still allows overlap with closely related skills.

5 / 5

Total

15

/

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/ui-widgets/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.