用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dyad-sh/dyad --skill dyade2e-rebase命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Diagnose and fix failing CI checks on a pull request from its latest GitHub Actions CI run. Use when PR CI has E2E/Playwright failures, macOS or Windows unit-test failures, or presubmit/type/build failures; analyzes the exact run logs and artifacts, invokes dyad:deflake-e2e-from-run for E2E failures, reproduces targeted unit tests locally, and publishes the fixes.
Address all outstanding issues on a GitHub Pull Request by handling both review comments and failing CI checks.
Read all unresolved GitHub PR comments from trusted authors and address or resolve them appropriately.
正在显示 SKILL.md
基于 SOC 职业分类
| name | dyad:e2e-rebase |
| description | Rebase E2E test snapshots based on failed tests from the PR comments. |
Rebase E2E test snapshots based on failed tests from the PR comments.
Get the current PR number using gh pr view --json number --jq '.number'
Fetch PR comments and look for the Playwright test results comment. Parse out the failed test filenames from either:
- \filename.spec.ts`)npm run e2e e2e-tests/filename.spec.ts)If no failed tests are found in the PR comments, inform the user and stop.
Build the application binary:
npm run build
IMPORTANT: E2E tests run against the built binary. If any application code (anything outside of e2e-tests/) has changed, you MUST run this build step before running E2E tests, otherwise you'll be testing the old version.
For each failed test file, run the e2e test with snapshot update:
PLAYWRIGHT_HTML_OPEN=never npm run e2e e2e-tests/<testFilename>.spec.ts -- --update-snapshots
After updating snapshots, re-run the same tests WITHOUT --update-snapshots to verify they pass consistently:
PLAYWRIGHT_HTML_OPEN=never npm run e2e e2e-tests/<testFilename>.spec.ts
If any test fails on this verification run, inform the user that the snapshots may be flaky and stop.
Show the user which snapshots were updated using git diff on the snapshot files.
Review the snapshot changes to ensure they look reasonable and are consistent with the PR's purpose. Consider:
If the snapshots look reasonable, commit and push the changes:
git add e2e-tests/snapshots/
git commit -m "Update E2E snapshots"
git push
Inform the user that the snapshots have been updated and pushed to the PR.