用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/GoogleChromeLabs/wpt-gen --skill wpt-gen-manual-test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Evaluate the quality of a WPT test file against guidance derived from the upstream WPT documentation. Use when reviewing a generated or submitted test before merge.
Evaluate a WPT test file against extracted normative requirements from its governing spec. Use when a spec URL is available and conformance to the spec needs to be judged. Pairs with the wpt-evaluator skill, which checks against WPT documentation guidance rather than spec conformance.
Generate Web Platform Tests (WPT) from minimal XML test suggestions. The agent will autonomously determine the test type and implementation details by analyzing existing repository paradigms. Use when the user asks to generate a Web Platform Test based on a test suggestion.
基于 SOC 职业分类
正在显示 SKILL.md
| name | wpt-gen-manual-test |
| description | Instructions to manually test the generate workflow of WPT-Gen to verify system integrity. |
This skill provides step-by-step instructions to manually test the generate workflow of WPT-Gen. This acts as a robust smoke test to catch regressions and verify the system's integrity during development.
We will use a small, stable web feature for this test: abortable-fetch.
Run the Generate Workflow:
Execute the following CLI command to trigger the generate workflow for abortable-fetch:
wpt-gen generate abortable-fetch
Wait for Generation: Allow the workflow to complete. It should read blueprints and generate tests autonomously.
Locate Generated Output:
Check the out/ or generated/ directory for the output tests related to abortable-fetch. You can also check the local WPT directory if it outputs there.
Inspect Generated Files:
testharness.js and testharnessreport.js inclusions) is present.AbortController and fetch).Check for Regressions:
After successfully verifying the generated tests, you must clean up the workspace to ensure no residual files interfere with future tests or get accidentally committed to the WPT repository.
Delete Generated Test Files:
Read the ~/.cache/wpt-gen/generated_tests.json file. Parse the path for each generated test and delete those specific files from the file system to safely remove untracked generated files without affecting the user's other work.
Revert Tracked Changes in WPT:
Navigate to the configured WPT repository and safely revert only the files that were modified during the generation step (such as WEB_FEATURES.yml) by running:
WPT_DIR="${WPT_DIR:-../wpt}"
git -C "$WPT_DIR" restore WEB_FEATURES.yml
Clear State Artifacts: Remove the JSON artifact to fully reset the test state:
rm -f ~/.cache/wpt-gen/generated_tests.json