用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vaadin/expense-manager --skill visual-verification命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | visual-verification |
| description | Visually verify an implemented use case using Playwright MCP. Use after implementing UI changes. |
Use Playwright MCP to visually validate the implemented use case.
Unless the use case specifies a particular resolution, use 1920x1080 as the browser resolution.
The dominant cost of a Playwright run is setup clicks and large
browser_snapshot accessibility-tree dumps, not the assertions. Remove both:
local profile on an empty DB
seeds labelled DRAFT/SUBMITTED/APPROVED report fixtures via LocalReportSeeder,
so you log in and land directly on the screen under test — never click through
create → add line → save → submit just to reach a state. The fixtures, the
logins (form-stub, dev password expense), and the deep-link routes are in
docs/manual-verification.md.aria-label / stable name attributes rather than
browser_snapshot → find-ref → click loops. For the login form,
input[name="username"] / input[name="password"] + Enter submits without
hunting for the shadow-DOM submit button.browser_fill_form (one call, many fields) instead
of many browser_type calls.depth, filename) rather than dumping the
full tree into context.All the steps listed here must be done and all details are important. The goal is to be thorough instead of quick.
The most important part is to verify what the user sees, i.e. a screenshot. DOM, CSS rules etc can be used as helpers but the screenshot is what really matters.
var(--vaadin-background-color) may resolve differently depending on the inherited color scheme