chrome-release-verify
预览截图
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "chrome-release-verify":https://skillpi.com/zh/skills/deepskill-78f2b491d4c4a1a149bcb2b0e87d9da018b1ad639312dcee8d36385d92203a46。安装前核对上游来源和版本:https://github.com/electron/electron。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为 Electron 发布分支提供端到端的 Chrome 安全补丁回溯支持。给定一个 Chrome Releases 博客链接和一个发布分支(例如 41-x-y),确定在“实际同步的源码”中缺失的 CVE 修复,本地生成 cherry‑pick 补丁,使用 e sync --3 和 lint --patches 进行验证,然后推送单个 PR。适用于需要查询某个 CVE 是否已入选分支或为发布分支生成/验证 cherry‑pick 补丁集的场景。
介绍来源: third_party · electron · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 端对端的Chrome安全后门为电子发布分支. 由于一个Chrome Release的博客URL和一个分支(例如. 41 -x-y),确定哪些 CVE 修饰从 * 实际同步源 * 中缺失, 在本地写入樱桃标记补丁, 用 `e sync --3` + 键 `lint --patches` ,然后推动单一的公关。 当被要求将 Chrome 安全放行返回到 N- x-y 时使用, “ CVE- X 已经在 N- x-y 中了吗 ” , 或者生产/ 验证放行的樱桃签集 。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: chrome-release-verify
description: End-to-end Chrome security backport for an Electron release branch. Given a Chrome Releases blog URL and a branch (e.g. 41-x-y), determines which CVE fixes are missing from the *actual synced source*, writes the cherry-pick patches locally, validates them with `e sync --3` + `lint --patches`, then pushes a single PR. Use when asked to backport a Chrome security release to N-x-y, "is CVE-X already in N-x-y?", or to produce/validate the cherry-pick set for a release branch.Chrome Release → Validated Backport PR
Input: $ARGUMENTS = <release-branch> <chrome-releases-blog-url> (e.g. 41-x-y https://chromereleases.googleblog.com/2026/04/stable-channel-update-for-desktop_15.html). Ask if either is missing.
The flow is local-first: nothing is pushed until every patch applies via e sync --3 and passes lint --patches.
1. Map CVE → bug → fix CL
Run /chrome-release-cls <blog-url> (or its inline procedure) to produce /tmp/cve_bugs.txt (CVE|bug|severity|desc) and a per-bug canonical fix CL. For each CL also note repo (path under src/: ., v8, third_party/{skia,angle,pdfium,dawn}, third_party/libaom/source/libaom) and gerrit-host.
Prefer the target-milestone merge CL if one exists (e.g. on 41-x-y ≈ M146, prefer the [M146] cherry-pick over the main CL) — it's already rebased and far less likely to conflict. Find it via git log --all --grep on the Change-Id, or Gerrit ?q=bug:<n>. If Chrome did not merge a fix to the target milestone, that is not by itself a reason to skip — Chrome's merge window is shorter than Electron's support window. Fall back to the main CL (or a nearby-milestone rebase, see step 5) and let step 3 decide whether the vulnerable code exists on the branch.
2. Prepare a synced worktree
Reuse bp-<NN> from e show configs if present, else e worktree add bp-<NN> ~/src/electron-bp-<NN> --source <current> --no-sync.
cd <root>/src/electron
git fetch origin <branch>
git checkout -B security-backport/<branch>/<short-date> origin/<branch>
e use bp-<NN>
e sync 2>&1 | tee /tmp/bp_sync.log
If sync fails with NotADirectoryError: '<root>/src/.git/objects/info/alternates', remove GIT_CACHE_PATH from the bp config's env and retry.
3. Verify IN-TREE vs NEEDS-BACKPORT
For each bug, three checks against the synced repo:
git -C "$repo" log HEAD --since='1 year ago' -E --grep="\b${bug}\b" --format='%h %s'- Fetch Change-Id from Gerrit, then
git log HEAD --grep="^Change-Id: ${cid}$" grep -rlE "(\b${bug}\b|${cid})" <root>/src/electron/patches/
Any hit ⇒ IN-TREE. All empty ⇒ NEEDS-BACKPORT.
Rows that step 1 (or an upstream triage report you were handed) left as RESTRICTED / no public CL are not inherited — re-resolve them here before classifying. Run git -C "$repo" fetch origin and git -C "$repo" log --all --remotes -E --grep="(Bug|Fixed):.*\b${bug}\b" --format='%h %s', the chrome-release-cls skill's gitiles_grep on refs/heads/main and the branch-heads refs of chromium/src, v8 and the component's repo, and a fresh Gerrit ?q=bug:<id> / ?q=message:<id> query. The Gerrit change record is often restricted while the fix commit is already public in git, and restrictions lift during a run, so an earlier RESTRICTED verdict is a hint, not a result. A row stays RESTRICTED only when all of those are empty; it is never IN-TREE by omission — list it separately in the report so a human can follow up.
For each NEEDS-BACKPORT CL, also fetch its file list (/changes/<proj>~<cl>/revisions/current/files) and skip if every file is under chrome/browser/, chrome/android/, ios/, or components/**/android/ — Electron doesn't compile those.
Report the table now (CVE | Sev | Bug | Component | Verdict | CL) and the proposed backport set; get user sign-off before continuing.
4. Write patches locally (no push yet)
For each backport CL, fetch the raw patch and write it into patches/<dir>/:
curl -s "https://${host}.googlesource.com/changes/${proj//\//%2F}~${cl}/revisions/current/patch" \
| base64 -d > "patches/${dir}/cherry-pick-${short}.patch"
echo "cherry-pick-${short}.patch" >> "patches/${dir}/.patches"
For repos with no Gerrit host e cherry-pick supports (e.g. libaom on aomedia), instead git cherry-pick the upstream commits onto the synced sub-repo HEAD and git format-patch the result.
For any newly-created patches/<dir>/, append to patches/config.json preserving the compact one-line-per-entry style:
{ "patch_dir": "src/electron/patches/<dir>", "repo": "src/third_party/<dir-or-nested-path>" }
5. Validate with e sync --3
e sync --3 2>&1 | tee /tmp/bp_sync3.log
On Patch failed at NNNN <subject>:
cdinto the failing repo, inspectgit difffor conflict markers.- Test-only files (e.g.
web_tests/VirtualTestSuites,*_unittest.cccontext drift): take ours (git checkout --ours -- <file>) if the security-relevant hunks merged cleanly. - Substantive code conflicts: a conflict is not a reason to drop. Work through, in order:
- A merge of the same Change-Id on the target milestone (
git log --all --grepon the Change-Id, or Gerrit?q=change:<Change-Id>) — swap to it. - The same Change-Id on a nearby milestone (the author's rebase, e.g. an
[M152]CL when the target is M150 — status NEW is fine), and any prerequisite CL the fix was written against (the refactor that introduced the helpers or signatures the fix touches). Pick those so the fix applies verbatim; list prerequisites in the report. - Otherwise hand-port the fix's semantics onto the branch's code, inside the pick's patch file: resolve the hunks in the target repo, fold them into the pick's commit (
git commit --fixup+ autosquash rebase), then re-export. Keep the upstream commit header verbatim and append anElectron adaptation notes (<branch>)paragraph to the patch header describing every adaptation (renamed member, changed signature, helper inlined, ...). Adapt mechanically and structurally only — never change what the fix checks or guards, and never invent semantics the upstream diff doesn't have. Mark the rowBACKPORTED (adapted)and flag it for reviewer attention in the report and the PR body. An adapted pick is held to the same bar as any other:e sync --3,lint --patches, and whatever build gate the caller imposes.
- A merge of the same Change-Id on the target milestone (
- DROPPED is reserved for two cases: (a) the vulnerable code is absent on the branch (file, function or feature doesn't exist), or (b) a subsystem rewrite where the fix has no counterpart to attach to. Every DROPPED row must say which, with the evidence. Remove a dropped patch fully (delete the file, remove from
.patchesandconfig.json). - After resolving:
git add <files> && git -c commit.gpgsign=false am --continue, thene patches <repo>to export the resolved patch, then re-rune sync --3. Repeat until clean.
6. Export → lint → re-apply loop
e patches all
node script/lint.js --patches # must exit 0
If lint reports findings (typically trailing whitespace on + content lines), fixing them changes the bytes the patch writes, which invalidates the index <old>..<new> blob hashes that e patches baked in. Hand-editing a .patch and pushing it as-is will pass lint locally but fail CI's Apply Patches re-export check with a one-line index hash diff.
So whenever lint (or you) modifies any .patch file after export, round-trip once more:
# fix the lint findings in patches/**/*.patch, then:
e sync # re-apply the edited patches (no --3 needed; they applied cleanly last time)
e patches all # re-export so index blob hashes match the edited content
node script/lint.js --patches # must now exit 0
git diff --quiet -- patches/ || { echo "patches changed again — repeat the loop"; }
Repeat until lint --patches exits 0 and git diff -- patches/ is empty after the final e patches all. Only then is the patch set CI-stable.
7. Commit, push, PR
git add patches/
git commit -m "chore: cherry-pick <N> changes from <dirs>"
git push origin HEAD
gh pr create --repo electron/electron --base <branch> --head <this-branch> \
--title "chore: cherry-pick <N> changes from <dirs>" \
--label "<branch>" --label backport-check-skip --label semver/patch --label "security 🔒" \
--body-file /tmp/pr_body.md
PR body format — follow .github/PULL_REQUEST_TEMPLATE.md (Description of Change / Checklist / Release Notes sections; PRs that don't follow it are auto-closed):
#### Description of Change
Backports the following changes:
* [`<shortCommit>`](<gerrit-CL-url>) from <patchDir> — <subject>
* [`<shortCommit>`](<gerrit-CL-url>) from <patchDir> — <subject> (adapted for <branch>; see patch header)
* ...
#### Checklist
- [x] I have filled out the PR description
- [x] [I have reviewed and verified the changes](https://github.com/electron/governance/blob/main/policy/ai.md)
#### Release Notes
Notes: Backported fixes from upstream Chromium and V8.
Keep the PR body low-key about security. The PR is public the moment it opens, while the fixes only protect users after a release ships — don't advertise the exploit map in between. Concretely: no CVE numbers, no crbug.com links, no "security"/"0-day"/severity wording anywhere in the title, body, or Notes: line. The security 🔒 label is fine (it's how releases track these). Upstream commit subjects stay verbatim even when they say "UAF" — rewriting them breaks traceability to the Gerrit CL. Adjust the Notes: wording to match what's actually in the set (e.g. drop "and V8" if no v8 patches).
Keep the CVE↔CL mapping out of the PR entirely: leave it in the local notes file (/tmp/cve_cls.txt) and report it to the user in chat, including any adapted, dropped or skipped fixes with reasons.
Restore e use <previous> when done.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 直接解决 Electron 发布分支中 Chrome 安全补丁回溯的核心痛点
- 具有明确的高频使用场景和实际工程价值
- 提供端到端自动化解决方案,显著提升安全补丁管理效率
亮点
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易误触或漏触
- description 位置正确且内容完整
亮点
- Phase/步骤清晰,有明确的出口条件
- 包含端到端示例,便于理解和执行
- frontmatter 完整,单文件长度适中
亮点
- 工具来源明确,参数正确
- 覆盖主要异常情况,有完善的错误处理机制
- 不可逆操作有确认机制,确保执行安全
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
覆盖或清理工作区
可能覆盖未提交文件或清除未跟踪文件。先查看 git status,提交或备份改动,确认目标文件后再操作。
主文档提及 · 第 75 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- chromereleases.googleblog.com
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。