一键导入
vrt-approve
Approve current VRT captures as new baselines. Can approve all or specific screens selectively. Use after reviewing /swift-assist:vrt results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Approve current VRT captures as new baselines. Can approve all or specific screens selectively. Use after reviewing /swift-assist:vrt results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apply accessibility identifier fixes from a doctor report to Swift source files. Adds .accessibilityIdentifier() modifiers to interactive elements. Use after /swift-assist:doctor.
Report test coverage across the app - how many screens have flows, how many elements have accessibility identifiers, and what to tackle next. Use for a quick health check on your testing setup.
Walk the running app using computer use, inspect the view hierarchy with Grantiva, and report elements missing accessibility identifiers. Use for accessibility audits or test preparation.
Walk the app using computer use and generate Grantiva screen definitions and flow YAML files for every discovered user flow. Use after /swift-assist:doctor for reliable tests.
Run a single named flow by name. Faster than /swift-assist:test when you're debugging one broken screen and don't want to wait for the full suite.
Generate a GitHub Actions workflow that runs Grantiva VRT in CI on every pull request. Use to add cloud visual regression testing with GitHub Check integration to your project.
| name | vrt-approve |
| description | Approve current VRT captures as new baselines. Can approve all or specific screens selectively. Use after reviewing /swift-assist:vrt results. |
| argument-hint | ["SCREEN_NAME ..."] |
Approve current visual regression captures as the new baselines, either for all screens or selectively.
/swift-assist:vrt-approve
/swift-assist:vrt-approve settings checkout
/swift-assist:vrt-approve login-filled
[SCREEN_NAME ...]: Optional list of specific screen names to approve. If omitted, approves all screens.Before approving, show the user exactly what's changing:
Screens to approve:
settings (8.4% diff from current baseline)
checkout (4.1% diff from current baseline)
This will replace the stored baselines with the current captures.
Proceed? (y/n)
Run the Grantiva approve command:
All screens:
grantiva diff approve
Selective screens:
grantiva diff approve settings checkout
Baselines updated.
settings -> new baseline saved
checkout -> new baseline saved
Future /swift-assist:vrt runs will compare against these new baselines.
/swift-assist:vrt first