chrome-release-cls

给定一个 Chrome Releases 博客文章链接(chromereleases.googleblog.com),提取文章中列出的每个 CVE/漏洞,并在本地的 Chromium 代码库及其子仓库中搜索,定位修复该问题的底层 Gerrit CL。适用于需要将 Chrome 安全发布说明映射到具体修复 CL,或查找 Chrome 稳定版更新中对应 CVE 的提交记录的场景。

仓库最近推送
GitHub Stars
124,031
Forks
17,895
Issues / PRs
620

预览截图

来自skillπ 实验室的展示

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "chrome-release-cls":https://skillpi.com/zh/skills/deepskill-211023bb2f4a614100a85052f309634fe7310741c69faea0c2a25bf808c2650b。安装前核对上游来源和版本:https://github.com/electron/electron。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

给定一个 Chrome Releases 博客文章链接(chromereleases.googleblog.com),提取文章中列出的每个 CVE/漏洞,并在本地的 Chromium 代码库及其子仓库中搜索,定位修复该问题的底层 Gerrit CL。适用于需要将 Chrome 安全发布说明映射到具体修复 CL,或查找 Chrome 稳定版更新中对应 CVE 的提交记录的场景。

0 下载

介绍来源: third_party · electron · 0.0.1 参考来源

SkillPi 解读

能完成的任务
鉴于一个 Chrome Releases 博客贴出 URL (chromereleases.googleblog.com), 提取每个 CVE/bug,并通过搜索本地的 Chromeum 检查和子重置器来找到其固定的基础的 Gerrit CL. 当被请求将 Chrome 安全释放注释映射为修正 CL 时使用,或在 Chrome 稳定更新中查找哪些承诺对应 CVES 。
适合谁
来源文档未说明。
输入和输出
`$ARGUMENTS` a 包括: `https://chromereleases.googleblog.com/...` URL (中文(简体) ). 如果为空, 请向用户询问一个 。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: chrome-release-cls
description: Given a Chrome Releases blog post URL (chromereleases.googleblog.com), extract every CVE/bug and find the underlying Gerrit CL that fixed it by searching the local Chromium checkout and sub-repos. Use when asked to map Chrome security release notes to fixing CLs, or to find which commits correspond to CVEs in a Chrome stable update.

Chrome Release → Fixing CL Mapper

Maps every security fix in a Chrome Releases blog post to the Gerrit CL(s) that fixed it.

Input

$ARGUMENTS — a https://chromereleases.googleblog.com/... URL. If empty, ask the user for one.

Procedure

1. Extract CVE → bug ID pairs from the blog post

The blog HTML buries bug IDs inside <a> tags, so strip tags first. Run:

curl -sL "$URL" | python3 -c '
import sys, re, html
t = re.sub(r"<[^>]+>", " ", sys.stdin.read())
t = re.sub(r"\s+", " ", html.unescape(t))
seen = set()
for m in re.finditer(r"\[\s*(\d{6,})\s*\]\s*(Critical|High|Medium|Low)\s*(CVE-\d{4}-\d+):\s*([^.]+?)\.", t):
    if m.group(3) in seen: continue
    seen.add(m.group(3))
    print(f"{m.group(3)}|{m.group(1)}|{m.group(2)}|{m.group(4).strip()}")
' > /tmp/cve_bugs.txt
cat /tmp/cve_bugs.txt

If this yields nothing, the page may have changed format — fall back to grep -oE 'CVE-[0-9]{4}-[0-9]+' and grep -oE 'crbug\.com/[0-9]+' and pair them by order.

2. Find the fixing CL for each bug

Search git history in the Chromium checkout and relevant sub-repos for commits whose Bug: or Fixed: footer references the bug ID, then extract the Reviewed-on: Gerrit URL.

Repo selection by component keyword:

  • ANGLE → third_party/angle
  • Skia, Graphite → third_party/skia
  • PDFium → third_party/pdfium
  • Dawn → third_party/dawn
  • V8, Turbofan, Maglev, Turboshaft → v8
  • everything else → . (chromium/src)

Always also fall back to . if the hinted repo has no match.

cd /root/src/electron/src   # chromium root (parent of electron/)

lookup() {
  local bug="$1" repos="$2"
  for repo in $repos . v8 third_party/skia third_party/angle third_party/pdfium third_party/dawn; do
    local hits
    hits=$(git -C "$repo" log --all --since='6 months ago' -E \
           --grep="(Bug|Fixed):.*\\b${bug}\\b" --format='%H' 2>/dev/null | sort -u)
    [[ -z "$hits" ]] && continue
    while read -r h; do
      git -C "$repo" log -1 --format='%B' "$h" | grep '^Reviewed-on:' | sed 's/^/    /'
      echo "      ↳ $(git -C "$repo" log -1 --format='%s' "$h")"
    done <<<"$hits"
    return 0
  done
  echo "    (not found locally)"
}

Drive it from /tmp/cve_bugs.txt. Prefer the non-[M1xx]-prefixed commit subject as the canonical main CL; the [M1xx] ones are branch cherry-picks.

3. Handle misses

For any bug with no local hit:

  • git -C <repo> fetch origin then re-search --remotes (fix may be newer than the checkout).
  • Search gitiles history — works with or without a checkout and needs no auth. Query refs/heads/main plus the release's branch refs (refs/branch-heads/<Chromium branch number> for chromium/src, refs/branch-heads/<V8 major.minor> for v8/v8, likewise angle/angle and skia on chromium.googlesource.com, and pdfium.googlesource.com/pdfium, dawn.googlesource.com/dawn, aomedia.googlesource.com/aom). The response starts with a )]}' line; gitiles grep is a substring match over the whole commit message, so check the hit's Bug:/Fixed: footer:
    gitiles_grep() {  # gitiles_grep <host> <repo> <ref> <bug>   e.g. chromium v8/v8 refs/branch-heads/15.2 558734727
      curl -s "https://$1.googlesource.com/$2/+log/$3?format=JSON&n=50&grep=$4" | tail -n +2 | python3 -c '
    import sys, json, re
    for c in json.load(sys.stdin).get("log", []):
        if re.search(r"^(Bug|Fixed):.*\b" + sys.argv[1] + r"\b", c["message"], re.M):
            print(c["commit"], c["message"].splitlines()[0])
    ' "$4"
    }

    For chromium/src always bound the walk with a range — an unbounded grep over its full history times out (HTTP 502): pass refs/branch-heads/<previous milestone's branch>..refs/branch-heads/<this branch> and refs/branch-heads/<this branch>..refs/heads/main as the ref (branch number = third component of the Chrome version, e.g. 8010 for 153.0.8010.x; the previous milestone's is in https://chromiumdash.appspot.com/fetch_milestones?mstone=<N-1>). The sub-repos are small enough to walk unbounded (a few seconds). A hit gives the sha, the ref, and (from the commit message) the Reviewed-on: CL — report it as the fix even if Gerrit refuses to show that CL.

  • Query Gerrit directly: curl -s "https://chromium-review.googlesource.com/changes/?q=bug:${BUG}&n=10" | tail -n +2 | python3 -m json.tool (also try skia-review, pdfium-review, dawn-review, aomedia-review).
  • b/ bug format (Skia, Graphite, Dawn): These repos reference bugs as b/<id> in commit messages rather than Bug: <id> footers. The Gerrit bug: query will return nothing. Use message:<id> search instead:
    curl -s "https://skia-review.googlesource.com/changes/?q=message:${BUG}&n=5" | tail -n +2

    Apply the same pattern for dawn-review.googlesource.com when the component is Dawn.

  • Tracing main CLs from merges: When only [M1xx] merge CLs are found, query the CL detail for cherry_pick_of_change to find the original main CL number:
    curl -s "https://chromium-review.googlesource.com/changes/${CL_NUM}?o=CURRENT_REVISION" | tail -n +2 | python3 -c "
    import sys, json
    d = json.load(sys.stdin)
    print(d.get('cherry_pick_of_change', 'none'))
    "
  • A CL that is restricted in Gerrit may still be public in git. The change record and the repository have separate ACLs, and the change often stays hidden for days after the commit has landed on main and the branch-heads. So RESTRICTED is only a valid verdict once git history (local, --remotes after a fetch) and gitiles have both come up empty — a Gerrit miss on its own is not enough.
  • If still nothing and the bug was reported very recently (especially by "Google Threat Intelligence" or marked in-the-wild), the CL is likely still access-restricted — report it as RESTRICTED rather than guessing, and flag it for a re-check (restrictions are commonly lifted within hours).

4. Special cases

  • Roll CLs — skip and find the upstream fix: For components whose fixes land in upstream repos (PDFium, Dawn, Skia, Graphite, libaom, libvpx, ffmpeg), the chromium-review hit will be a Roll src/third_party/... commit. Do not report the roll CL as the fix. Instead, query the component's own Gerrit instance directly for the actual fixing CL:

    • PDFium → pdfium-review.googlesource.com (use bug: or message: query)
    • Dawn → dawn-review.googlesource.com (use message: query — uses b/ format)
    • Skia / Graphite → skia-review.googlesource.com (use message: query — uses b/ format)
    • libaom → aomedia-review.googlesource.com

    Only if the upstream Gerrit instance returns no results should you fall back to reporting the roll CL — in that case, include the roll CL and note that the actual fix is upstream but the specific CL could not be identified.

  • Multiple Reviewed-on: lines in one commit body: cherry-picks keep the original line plus a new one. The first Reviewed-on: is the original CL.

  • A bug may have multiple distinct fix CLs (fix + follow-up hardening) — list all of them.

5. Output

Produce a markdown table per severity level: CVE | Bug | Component | Fix CL (main). Link bugs as https://crbug.com/<id>. Save raw output (including all branch merges) to /tmp/cve_cls.txt and mention the path.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 高价值/高频刚需:直接解决用户明确的核心任务痛点,将 Chrome 安全发布说明映射到修复 CL,或查找 Chrome 稳定版更新中对应 CVE 的提交记录。
  • 适用于安全研究人员、Chromium 开发者等高频刚需用户。
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰。
  • description 明确描述了输入格式(chromereleases.googleblog.com URL)和核心功能(提取 CVE/bug 并找到修复 CL)。
结构规范85/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整。
  • 文档结构清晰,分为 Input、Procedure(多个步骤)、Special cases、Output,每个步骤都有详细的命令和逻辑说明。
执行可靠80/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制。
  • 脚本中使用了 curl、git、python3 等标准工具,参数正确,覆盖了多种异常情况(如页面格式变化、本地未找到、Gerrit 限制等),并提供了 fallback 机制。
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • chromereleases.googleblog.com
  • chromium-review.googlesource.com
  • chromiumdash.appspot.com
  • crbug.com
  • skia-review.googlesource.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。