원클릭으로
ui-eng-vision-widget-promoter
Promotes legacy views to modern UI.Widget classes, hooks up performUpdate() rendering, and exports default views.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Promotes legacy views to modern UI.Widget classes, hooks up performUpdate() rendering, and exports default views.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Use when migrating Chromium layout tests to DevTools unit tests
Use when starting a new task, creating a branch, switching branches, managing branches, creating and uploading CLs, handling stacked changes, or checking release and roll status in the DevTools Gerrit-based workflow. ALWAYS use this instead of running standard git checkout/switch commands for branch creation.
Reproduce and investigate flakiness in a test.
Refactor user-facing UIStrings and localization comments in a DevTools module folder according to UX writing guidelines (child task of b/40799900). Use when simplifying wording, checking sentence case, or improving L10n comments in UIStrings for a specific folder or issue. Don’t use for general code changes or non-UIStrings files.
Migrates legacy imperative DOM construction to local declarative Lit-html templates rendered inside existing containers.
Consolidates manual DOM creation, updates, and constructors into private helper methods and structured state interfaces.
SOC 직업 분류 기준
| name | ui-eng-vision-widget-promoter |
| description | Promotes legacy views to modern UI.Widget classes, hooks up performUpdate() rendering, and exports default views. |
| allowed-tools | code_search open_urls |
This subskill completes the architectural transition, upgrading the component
from legacy base classes (like SimpleView or custom wrapper layouts) into
clean UI.Widget classes that use native update rendering delegates.
Change Class Inheritance:
UI.Widget (or specialized
sub-layouts like UI.Widget.VBox)..element directly for manual append
operations.Upgrade View Delegates & Inject View:
Migrate the local Lit template strings into a formally exported default view layout:
export const DEFAULT_VIEW: View = (input, output, target) => {
Lit.render(html`...`, target);
};
Make the view injectable in the constructor for testability (as per docs/ui_engineering.md):
class MyWidget extends UI.Widget.VBox {
#view: View;
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
super(true, element);
this.#view = view;
}
Implement the standard modern performUpdate() override on the widget:
override performUpdate(): void {
this.#view(this.viewInput, this.viewOutput, this.contentElement);
}
Clean Up Legacy Wrappers:
Remove any LegacyWrapper bindings or custom wrappable custom elements.
Replace old panel instantiations with standard <devtools-widget>
declarative entries:
html`<devtools-widget .widgetConfig=${widgetConfig(MyWidgetClass, [params])}></devtools-widget>`
Inspect instantiator files (e.g., ApplicationPanelSidebar.ts) and
decouple any direct accesses to .element.