[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD18GMVM1BEM31VF538R8A":3,"skill-same:01M6AD18GMVM1BEM31VF538R8A":180},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":17,"updatedAt":67,"install":68,"resources":81},"01M6AD18GMVM1BEM31VF538R8A","generate-cve-json","CVE 5.x JSON 文档生成","Generate a CVE 5.x JSON document from an \u003Ctracker> tracking\nissue, ready to paste into the Vulnogram `#source` tab of the ASF CVE tool\nat https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002F\u003CCVE-ID>#source. The conversion is\ndeterministic: same issue in, same JSON bytes out. Handles multiple\ncredits (one per line) and multiple references (URLs extracted from the\nissue's \"Public advisory URL\" and \"PR with the fix\" fields; the\n\"Security mailing list thread\" field is treated as internal-only and\nnever exported).","从 \u003Ctracker> 跟踪工单生成 CVE 5.x JSON 文档，可直接粘贴到 https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002F\u003CCVE-ID>#source 处 ASF CVE 工具的 Vulnogram `#source` 标签页。该转换是确定性的：相同的工单输入总是产生完全相同的 JSON 字节输出。支持多条致谢信息（每行一条）和多个引用（URL 从工单的 \"Public advisory URL\" 和 \"PR with the fix\" 字段提取；\"Security mailing list thread\" 字段被视为仅内部使用，绝不导出）。","apache\u002Fmagpie","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACRKRED1THWRMNQ1E2RYE7",146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,10],"generate","generate cve json","cve","json","when","invoke","at","exported","paste","tracker","references","publish","conversion","team","URL","either","only","fix","never","ready","update","2026-11-10 10:12:30",false,"---\n# SPDX-License-Identifier: Apache-2.0\n# https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\nname: generate-cve-json\ndescription: |\n  Generate a CVE 5.x JSON document from an \u003Ctracker> tracking\n  issue, ready to paste into the Vulnogram `#source` tab of the ASF CVE tool\n  at https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002F\u003CCVE-ID>#source. The conversion is\n  deterministic: same issue in, same JSON bytes out. Handles multiple\n  credits (one per line) and multiple references (URLs extracted from the\n  issue's \"Public advisory URL\" and \"PR with the fix\" fields; the\n  \"Security mailing list thread\" field is treated as internal-only and\n  never exported).\nwhen_to_use: |\n  Invoke when a security team member says \"generate CVE JSON for NNN\",\n  \"update the CVE tool entry for NNN\", \"paste-ready CVE for NNN\", or is\n  about to publish the advisory for a tracking issue and wants the CVE\n  record filled in from the issue body in one paste-and-save step. Not\n  appropriate before the CVE has been allocated (the script needs a CVE\n  ID either from the issue body's `CVE tool link` field or from a\n  `--cve-id` override).\n---\n\n# generate-cve-json\n\nThis skill produces a CVE 5.x JSON document from a tracking issue in\n[`\u003Ctracker>`](https:\u002F\u002Fgithub.com\u002F\u003Ctracker>), ready to\npaste into the Vulnogram **\"#source\"** tab of the ASF CVE tool. The goal is\nto eliminate the manual \"copy each field from the issue into the right\nVulnogram form input\" step when you are preparing to publish an advisory.\n\n> **Project-agnostic by design.** All project-specific values\n> (vendor, top-level product \u002F package name, project display map,\n> CNA org id, generator tag, …) are loaded from a TOML config the\n> adopting project ships at `\u003Cproject-config>\u002Ftools\u002Fcve-tool-vulnogram\u002Fcve-json-config.toml`.\n> Concrete `apache-foo-project-*` strings appearing in this\n> document are **illustrative examples** of how a project with a\n> project-style package layout would configure things; replace\n> them mentally with the adopter's own package taxonomy. The\n> schema and lookup order are documented in the package\n> [README](README.md#configuration).\n\n**Golden rule:** the script generates a *proposal* JSON document. It\nparses a handful of structured fields from the issue body, but it cannot\nread the security team member's mind. Always review the generated JSON\nbefore pasting, and always do the final review inside Vulnogram before\nmoving the CVE from DRAFT → REVIEW → READY → PUBLIC.\n\n**Release-vote gating (opt-in, recommended for ASF projects).** The\nemitted `CNA_private.state` follows a tri-state state machine:\n\n- `DRAFT` — the CNA is incomplete *or* the project has opted into\n  release-vote gating and no vote is in progress yet.\n- `REVIEW` — the CNA is review-ready (CVE ID + title + description +\n  affected versions + CWE + severity + ≥ 1 credit + ≥ 1 reference)\n  *and* either the project hasn't opted into gating (legacy: ready ⇒\n  REVIEW) or an RC vote is in progress (signalled by the configured\n  tracker label or a `--review` CLI flag).\n- `PUBLIC` — the CNA is review-ready *and* the public advisory has\n  shipped (a `vendor-advisory` reference is present).\n\nProjects opt into gating by setting `[workflow].release_vote_gating\n= true` in their `cve-json-config.toml` and choosing the label name\nvia `[workflow].rc_voting_label` (default `\"rc voting\"`). The sync\nskill is responsible for detecting [VOTE] threads on the project's\ndev list (e.g. `dev@\u003Cproject>.apache.org`) and proposing the label\nadd\u002Fremove; the generator only reads the label on the tracker. Non-\nASF adopters who publish advisories without a separate release-vote\nstep typically leave gating off — the legacy \"ready ⇒ REVIEW\"\nbehaviour is the right default for that workflow.\n\nProjects whose own scanner reports through the security list (and so\nleaves no `N\u002FA —` thread sentinel) list its name in\n`[discovery].internal_markers` in the same file, for example\n`internal_markers = [\"\u003Cscanner name in the thread field>\", \"\u003Cits public credit name>\"]`;\nthe generator then records those finds as `source.discovery: INTERNAL`.\n\n**Determinism:** the same input issue body produces exactly the same JSON\nbytes on every run. The script uses only the Python standard library, has\nno timestamps or machine-dependent values in its output, sorts JSON keys,\nand sorts references alphabetically. This lets you paste the result into\nVulnogram, tweak fields in the tool, re-run the script later, and cleanly\ndiff the two to see what the tool has added \u002F what you changed by hand.\n\n---\n\n## Inputs\n\n- **Issue number** (required) — e.g. `232`.\n- Optional CLI overrides:\n  - `--cve-id CVE-YYYY-NNNN+` — override the CVE ID if the issue body's\n    `CVE tool link` field has not yet been filled in, or retarget the\n    JSON to a different CVE ID.\n  - `--title \"\u003Cvendor>: \u003Cproduct>: …\"` — override the CVE title.\n    Default is the GitHub issue title with the project's\n    `\u003Cvendor>: \u003Cproduct>:` prefix (sourced from the TOML config) when\n    it does not already start with that phrase.\n  - `--version-start X.Y.Z` — override the start of the affected version\n    range (the `affected[].versions[].version` field). Default is the\n    lower bound parsed from the Affected versions field when it uses\n    `>= X, \u003C Y` syntax, otherwise `\"0\"`.\n  - `--remediation-developer \"Name\"` — append a `type: \"remediation\n    developer\"` credit on top of whatever the body's *Remediation\n    developer* field already lists (auto-populated by the\n    `security-issue-sync` skill from the linked PR's author). Repeat\n    the flag to add multiple developers; duplicates between the\n    body field and CLI flags are dropped silently. The reporter\n    credit(s) from the *Reporter credited as* field are always\n    emitted with `type: \"finder\"`.\n  - `--vendor` \u002F `--product` \u002F `--package-name` \u002F `--collection-url` —\n    override the product identity fields. The defaults come from the\n    project's TOML config (`product.vendor`, `product.default_product`,\n    `product.default_package_name`, `product.default_collection_url`).\n    They are used as the identity for *Affected versions* lines that\n    don't start with a recognisable per-package directory name\n    (see the multi-product note below). `--collection-url` reaches the\n    record only through the purl it is used to derive (see\n    `product.purl_type` below) — except for a product that opts out of\n    purls, the one case a record still carries a `collectionURL`.\n  - **Helm charts — `purl_type = \"helm\"`, and you must know where the\n    chart is published.** A chart is identified by its repository, not by\n    its name: two projects may both ship a chart called `superset`. So the\n    generator emits\n\n    ```text\n    pkg:helm\u002F\u003Cchart>?repository_url=\u003Cbase URL>\n    ```\n\n    taking the base URL from `product.default_collection_url` (or the\n    package's `collection_url` override), and **refuses to emit a purl at\n    all without one** rather than producing a chart identifier that matches\n    somebody else's chart.\n\n    **If the base URL is not recorded anywhere, ask whoever publishes the\n    chart.** It is whatever a user would put in `helm repo add` — the\n    `https:\u002F\u002F…` site serving `index.yaml`, or the `oci:\u002F\u002F…` registry path\n    for a chart published as an OCI artifact. Either is accepted verbatim;\n    a trailing slash is dropped so the same repository does not produce two\n    identifiers. Do not infer it from the project's homepage: charts are\n    routinely served from a different host than the project site.\n\n    Note that `helm` is **not** one of the types the purl specification\n    registers. It is used because the scanners that would match this\n    advisory to a deployed chart emit it, and because the two spec-correct\n    encodings — `pkg:oci\u002F` for an OCI registry and `pkg:generic\u002F` for a\n    classic repository — would give the same chart two different identities\n    depending on how it happened to be published. A strict validator may\n    object to the type; being invisible to every scanner is the worse\n    outcome.\n\n  - `product.purl_type` *(config only)* — the Package URL type\n    for the project's packages (`pypi`, `npm`, `cargo`, …). Every\n    `affected[]` entry carries a `packageURL` (`pkg:\u003Ctype>\u002F\u003CpackageName>`).\n    Per the CVE Record Format the purl never includes a version — the\n    entry's `versions[]` carries the range.\n\n    **The purl is the only package identifier the record carries.** The\n    ASF CVE tool treats the Package URL as the recommended identifier and\n    derives the legacy `collectionURL` \u002F `packageName` pair from it when\n    the record is serialised for publication, so the generator emits the\n    purl alone. Writing the pair as well would hand the tool two\n    identifiers that can disagree — which it reports rather than\n    silently reconciles.\n\n    **A purl is required, not optional.** A record needs one to be\n    promoted, so the generator refuses to emit a record it cannot build\n    a purl for rather than producing one the CNA will reject later.\n    Leaving the key unset is fine when the type can be **derived from\n    `product.default_collection_url`** — PyPI, npm, crates.io,\n    RubyGems and NuGet hosts are recognised — and only hosts whose type\n    is unambiguous are mapped, because a guessed type yields a\n    valid-looking identifier pointing at the wrong ecosystem.\n\n    Set `purl_type = \"none\"` to state deliberately that a product has no\n    package host — a source-only release published to `dist.apache.org`\n    and nowhere else, for instance. That is an explicit decision rather than an omission, which\n    is the distinction the previous optional behaviour lost. Those\n    entries — and only those — carry `collectionURL` \u002F `packageName`\n    instead, because there is no purl for the CVE tool to derive them\n    from.\n    Name normalisation follows the package-url spec per type, and is\n    implemented for the types whose rules have been read from it:\n    `pypi` (lowercased, `_` becomes `-`) and `npm` (scope becomes the\n    namespace, so `@angular\u002Fanimation` renders as\n    `pkg:npm\u002F%40angular\u002Fanimation`; names keep their case, since\n    mixed-case npm packages were grandfathered in). Any other type has\n    its name passed through unchanged, and a name needing namespace\n    semantics is covered by `product.purl_namespace` below, and without\n    one such a type is an error rather than a guessed purl.\n  - `product.purl_namespace` *(optional, config only)* — the namespace\n    for purl types that require one: a Maven `groupId`, a Composer\n    vendor, a Go module prefix. Types the spec gives no namespace\n    (`pypi`, `cargo`, `gem`, `nuget`) ignore it, and an npm scope\n    carried in the package name itself wins over it. A type that\n    requires a namespace and has none is an error naming this key — a\n    guessed Maven groupId would point at another organisation's artifact,\n    and silently omitting the purl produces an unpromotable record.\n  - `[packages.overrides.\"\u003CpackageName>\"]` *(config only)* — per-package\n    distribution identity, for a project that ships to more than one\n    ecosystem. Accepts `product`, `collection_url` and `purl_type`; anything\n    omitted falls through to the `product.*` default, so a package that\n    differs only in purl type need not restate its collection URL.\n\n    The case this exists for: a project whose packages are on PyPI **and**\n    which also ships, say, a Helm chart from its own site. `product.*`\n    describes only the majority ecosystem, so without an override the\n    odd-one-out inherits it and the record claims `pkg:pypi\u002F\u003Cchart>` — a\n    package that host does not carry. Since purls are what scanners match\n    on, a wrong one is acted upon, unlike the wrong free-text product name\n    it replaced.\n\n    ```toml\n    [packages.overrides.\"apache-example-helm-chart\"]\n    product = \"Apache Example Helm Chart\"\n    collection_url = \"https:\u002F\u002Fexample.apache.org\u002F\"\n    purl_type = \"none\"\n    ```\n\n    The key is the resolved `packageName`, so the package must be one the\n    configured `package_pattern` matches — extending that pattern is a\n    prerequisite, not an extra. `--product-for` still wins over the\n    `product` set here.\n  - `--product-for PACKAGE=PRODUCT` — override the CVE product display\n    name for a specific `packageName`. Repeat to override multiple\n    packages. Useful when a package is not in the project's\n    `project_display_map` config, or when an acronym needs different\n    casing from the title-cased fallback. Example:\n    `--product-for apache-foo-project-baz='Apache Foo Project Baz'`.\n  - `--org-id \u003Cuuid>` — override the CNA assigner org id (defaults to\n    the ASF org id).\n  - `--discovery \u003Cword>` — override `source.discovery` (one of `UNKNOWN`,\n    `INTERNAL`, `EXTERNAL`, `USER`; default derived as below).\n  - `--no-envelope` — emit only the inner `cna` container instead of\n    the full CVE 5.x record (envelope is the default).\n  - `--review` \u002F `--draft` (mutually exclusive) — force the emitted\n    `CNA_private.state` to `REVIEW` or `DRAFT` regardless of the\n    tracker's labels. Useful in two cases:\n    - `--review` lets a release manager nudge a record forward by\n      hand when the `rc voting` label is not yet set on the tracker.\n    - `--draft` walks a record back when an RC vote was cancelled or\n      failed and the label is still around.\n    Both flags only matter when release-vote gating is enabled in\n    the project's TOML config (see below); otherwise the state is\n    derived from the CNA's readiness alone and these flags have no\n    effect beyond what the legacy logic produces.\n  - `--attach` — after generating the JSON, embed it at the end of\n    the tracking issue's **body** (after the *CVE tool link* field),\n    wrapped in a collapsible `\u003Cdetails>` block. The block is bracketed\n    by HTML-comment markers\n    (``\u003C!-- generate-cve-json: cve=CVE-YYYY-NNNN+ version=v1 -->`` …\n    ``\u003C!-- generate-cve-json:end cve=CVE-YYYY-NNNN+ version=v1 -->``)\n    that the script uses on later runs to find the existing block and\n    **replace it in place**, so re-runs update the embedded attachment\n    instead of duplicating it or breaking other body fields. The\n    attachment lives in the body — not as a comment — so it stays\n    above every status-change comment in the timeline (effectively\n    \"pinned\" without needing any pin mechanism). Requires the\n    positional issue argument; incompatible with `--stdin`.\n\n---\n\n## Prerequisites on the tracking issue\n\nFor the generated JSON to be useful, the issue body should already be\nfilled in through a prior `security-issue-sync` run. In particular:\n\n- **Short public summary for publish** — becomes the CVE description.\n- **Affected versions** — becomes the CVE `affected[]` list. The script\n  understands the common version-expression shapes (`\u003C 3.2.2`,\n  `>= 2.0.0, \u003C 3.2.2`, `\u003C= 3.2.1`, a bare version like `3.1.5`, and a\n  bare lower bound like `>= 2.0.0`).\n  **Multi-product CVEs are supported** — put one package per line,\n  prefixing each with the package directory name as it appears in\n  the adopter's repo, and the script emits one `affected[]` entry\n  per line with the right `product` and package identity. Example\n  (illustrative — using a hypothetical `apache-foo` project's\n  sub-project layout):\n\n      apache-foo-project-alpha \u003C=6.5.0\n      apache-foo-project-beta \u003C=1.9.0\n\n  Known package directory names are resolved to the vendor-preferred\n  display casing via the project's `packages.project_display_map`\n  config table; unknown packages fall back to title-cased dash-split\n  and can be overridden with `--product-for`. A line without a\n  package prefix (or a single-line field) falls back to the\n  `--product` \u002F `--package-name` defaults, which preserves the\n  single-product behaviour.\n\n  **`\u003C NEXT VERSION` placeholder** — multi-package trackers don't\n  know which package version will ship the fix until the wave's\n  release manager picks it during a release cut. Until then, the\n  *Affected versions* lines use the literal token `NEXT VERSION` as\n  the upper bound, e.g.:\n\n      apache-foo-project-alpha \u003C NEXT VERSION\n      apache-foo-project-beta \u003C NEXT VERSION\n\n  The generator strips `\u003C NEXT VERSION` before parsing each line and\n  emits a `versions[]` entry without `lessThan` (open-ended upper\n  bound — *\"affected from \\\u003Clow\\> onwards, no fix released yet\"*).\n  When the wave ships and the version is known, the\n  `security-issue-sync` skill replaces each `NEXT VERSION` with the\n  actual `\u003C X.Y.Z` and the next regen produces a fully-bounded entry.\n  Case-insensitive; combines with a lower bound (e.g.\n  `>= 2.0.0, \u003C NEXT VERSION` becomes `{version: \"2.0.0\", status: \"affected\"}`).\n- **Security mailing list thread** — internal navigation reference\n  only; the script **does not** export URLs from this field into\n  `references[]`. Keep whatever the reporter or triager put there.\n- **Public advisory URL** — each URL in this field is extracted and\n  added to `references[]` with `tags: [\"vendor-advisory\"]`. Populated\n  by the release manager (or the `security-issue-sync` skill) once\n  the advisory is archived on `\u003Cusers-list>`. The\n  `--advisory-url` CLI flag still exists for ad-hoc overrides.\n- **PR with the fix** — each URL in this field becomes a reference URL.\n  **Multiple URLs are supported**: paste them on separate lines, as a\n  bullet list, or comma-separated — the script extracts every\n  `https?:\u002F\u002F…` token it finds.\n- **Reporter credited as** — each line becomes one CVE credit entry\n  with `type: \"finder\"`. **Multiple credits are supported**: put each\n  person on their own line. `Full Name, Affiliation` on a single line\n  is treated as **one** credit, not two, so the common\n  `Jed Cunningham, Astronomer` pattern works as expected. Bullets\n  (`- `, `* `, `1. `) are stripped. Blank lines are ignored. If you\n  need to credit many people::\n\n      Jed Cunningham\n      Saurabh Banawar\n      selen (Huntr bounty 3e88d364-5047-4768-a52c-6568f21ef35b)\n\n- **Remediation developer** — each line becomes one CVE credit entry\n  with `type: \"remediation developer\"`. Same parsing rules as\n  *Reporter credited as* (newline-separated, `Full Name, Affiliation`\n  is one credit, bullets stripped). Auto-populated by the\n  `security-issue-sync` skill from the linked PR's author the first\n  time *PR with the fix* is set; manual edits survive subsequent\n  syncs (the skill only proposes appending names that aren't already\n  there). The `--remediation-developer` CLI flag adds further names\n  on top of whatever the body already lists.\n\n> **Bot \u002F AI credit policy.** This generator is intentionally\n> neutral on credit content: whatever a tracker's *Reporter credited\n> as* or *Remediation developer* field carries is what lands in\n> `credits[]`. The filtering of obvious bot \u002F AI accounts (e.g.\n> `dependabot[bot]`, `*-scanner`, `automated-*`) happens **upstream\n> in the skills** at extraction time — see\n> [`bot-credits-policy.md`](..\u002Fbot-credits-policy.md) for the\n> detection rule and the per-skill enforcement sites. Keeping the\n> filter upstream means an intentional human override (typed\n> directly into the field) survives every JSON regeneration without\n> needing a special bypass flag here.\n\n- **CWE** — `CWE-285: Improper Authorization` style works; so does a bare\n  `CWE-285` or a plain sentence. The script extracts the `CWE-\\d+` token\n  for the `cweId` field and uses the rest as the human-readable\n  description.\n- **Severity** — `None`, `Low`, `Medium`, `High`, `Critical`\n  (case-insensitive) are emitted as the text content of a `metrics[].other`\n  block. Vulnogram lets you replace this with a CVSS vector in its form if\n  you want a numeric score.\n- **CVE tool link** — the ASF CVE tool URL, e.g.\n  `https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002FCVE-2026-40913`. The script extracts\n  the `CVE-YYYY-NNNN+` token from this field. If the field is still\n  `_No response_`, pass the CVE ID with `--cve-id`.\n\nIf one of these fields is missing, the JSON still generates, but the\nreviewer will need to fill the gap in Vulnogram. The skill surfaces any\nempty field in the proposal so nothing is silently skipped.\n\n---\n\n## Prerequisites\n\n- **`gh` CLI authenticated** with collaborator access to\n  `\u003Ctracker>` — the script reads the tracker via `gh`.\n- **`uv` installed** — the script is a small `uv`-managed Python\n  project and is invoked as `uv run --project\n  tools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json \u003CN>`.\n\nSee\n[Prerequisites for running the agent skills](..\u002F..\u002F..\u002Fdocs\u002Fquick-start\u002Fprerequisites.md#prerequisites-for-running-the-agent-skills)\nin `README.md`.\n\n---\n\n## Step 0 — Pre-flight check\n\nBefore reading the tracker:\n\n1. `gh api repos\u002F\u003Ctracker> --jq .name` returns the adopter's\n   tracker repo name (per `\u003Cproject-config>\u002Fproject.md`), **and**\n2. `uv --version` returns.\n\nIf either fails, stop and tell the user what to install or log\nin to.\n\n---\n\n## Step 1 — Verify the issue has the required fields\n\nFetch the issue body and check every template field the script reads. If\na field is missing or still `_No response_`, either run\n[`security-issue-sync`](..\u002F..\u002F..\u002Fskills\u002Fsecurity-issue-sync\u002FSKILL.md) first to fill it\nin, or override it on the command line.\n\n```bash\ngh issue view \u003CN> --repo \u003Ctracker> --json body --jq .body \\\n  | grep -E '^###|^_No response_'\n```\n\nAsk the user whether to proceed if any critical field is empty\n(description, affected versions, CVE tool link, credits). Do not silently\ngenerate a JSON with placeholder values.\n\n---\n\n## Step 2 — Run the generator\n\nRun the project's console script through `uv run --project`, which\nprepares the (cached) virtualenv on first use and reuses it on later\nruns:\n\n```bash\nuv run --project \u003Cframework>\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json \u003CN> \\\n  --output \u002Ftmp\u002F\u003CCVE-ID>.json \\\n  --version-start \u003Cearliest-affected-version>\n```\n\n`--version-start` is the one flag the tracking issue body almost never\ncontains and that Vulnogram expects filled in (the body field usually\nencodes only the upper bound). The remediation developer credit comes\nfrom the body's *Remediation developer* field, populated by the\n`security-issue-sync` skill from the linked PR's author — no CLI flag\nneeded in the normal flow. For a fix that landed in `3.2.2` and was\nfirst introduced in `3.0.0`, for example:\n\n```bash\nuv run --project \u003Cframework>\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json 232 \\\n  --output \u002Ftmp\u002FCVE-2026-40913.json \\\n  --version-start 3.0.0\n```\n\nPass `--remediation-developer \"Name\"` only when you need to add a\ndeveloper credit on top of (or in place of) what the body already\ncontains — for example a co-author who didn't end up as the PR's\nGitHub author.\n\nAdditional flags, all optional:\n\n- `--cve-id CVE-YYYY-NNNN+` — override the CVE ID if the *CVE tool link*\n  field is empty.\n- `--title \"\u003Cvendor>: \u003Cproduct>: …\"` — override the title.\n- `--vendor` \u002F `--product` \u002F `--package-name` \u002F `--collection-url` —\n  override product identity (defaults sourced from the project's TOML\n  config under `[product]`).\n- `--org-id \u003Cuuid>` — override the CNA assigner org id (defaults to the\n  ASF org id).\n- `--discovery UNKNOWN|INTERNAL|EXTERNAL|USER` — override\n  `source.discovery` (for example `INTERNAL` for an issue a maintainer found and credited\n  under a name that does not match their GitHub profile).\n- `--no-envelope` — emit only the `cna` container (no `cveMetadata`,\n  no `dataType`\u002F`dataVersion` wrapper). Use this if Vulnogram's `#source`\n  tab is in \"inner block only\" mode.\n- `--stdin` — read the issue body from stdin instead of calling `gh`.\n  Useful for offline iteration and for drafting by hand.\n- `--baseline \u003Crecord.json>` — the live record of this CVE, as `vulnogram-api-record-fetch` prints it.\n  Pass it for any record that is already `PUBLIC`, so a regeneration changes only what the body changed.\n  The body wins for the title, summary, severity text, CWE, affected versions and the sets of credits and reference URLs.\n  The published value stays for `source`, `supportingMedia` of an unchanged summary, legacy package keys of an unchanged package, the `CWE-NNN` wording of an unchanged CWE, the severity casing and `scenarios`, credit types, reference tags and order, `related` references the published record lacks while the summary is unchanged, and any key the generator does not emit.\n  A record for another CVE, or one that names no CVE, exits 2.\n- `--report-json \u003Cpath>` — also write a machine-readable report (field names, line numbers and kinds; never body text):\n  `normalisation_changes` (what the in-memory normalisation below rewrote),\n  `needs_decision` (fields repeated with different values),\n  and `missing_required` (empty required fields, each with `agent_may_propose`; `false` for *Severity* and *CVE tool link*).\n  It also carries `cna_private_state`, the state the record was given: `DRAFT` while the summary, affected versions, CWE, severity or CVE link is empty (a title standing in for the summary included); an empty reporter credit or a non-template duplicate does not hold it back.\n  It is written before the record is built, so it exists on exit 2 too (with `cna_private_state: null`).\n  The calling skill acts on it per [the CVE JSON fallback](..\u002F..\u002F..\u002Fplugins\u002Fmagpie-security\u002Fskills\u002Fissue-sync\u002Foutcomes\u002Fcve-json-fallback.md); the tool itself never calls a model.\n\nBefore reading any field the script normalises the body **in memory** with\n[`github-body-field`](..\u002F..\u002Fgithub-body-field\u002FREADME.md)'s `normalise`:\nCRLF becomes LF, a heading written `###  Name`, `###\u003Ctab>Name`, indented or with closing `#`s still names its template field (the name itself must match exactly, case included, as on main),\na heading-shaped line inside a code fence never counts,\nand copies of a field that hold the same value collapse to one.\nA field repeated outside fences with **different** values is never guessed:\nthe script exits 2 with an error naming the field and the heading line numbers, and writes no record.\n\nThe script is deterministic — re-running it with the same flags and the\nsame tracking-issue body produces the same JSON bytes.\n\n### Output shape (in brief)\n\nThe generated record matches what Vulnogram exports after a save,\nminus editor cruft. Notable fields:\n\n- `containers.cna.affected[]` — `vendor`, `product`, `packageURL` (the\n  version-less purl) and a `versions[]` entry with `version`, `lessThan`,\n  `status: \"affected\"`, `versionType: \"semver\"`. An entry for a product\n  configured with `purl_type = \"none\"` carries `collectionURL` \u002F\n  `packageName` in place of the purl.\n- `containers.cna.descriptions[]` — both a plain `value` and an HTML\n  `supportingMedia` alternative (Vulnogram's WYSIWYG mode needs both).\n- `containers.cna.problemTypes[].descriptions[]` — `cweId`,\n  human-readable `description`, `type: \"CWE\"`.\n- `containers.cna.metrics[].other` — `type: \"Textual description of\n  severity\"` and `content.text` = the severity word.\n- `containers.cna.credits[]` — one entry per *Reporter credited as*\n  line (type `\"finder\"`), plus one entry per *Remediation developer*\n  body line and per `--remediation-developer` CLI override (type\n  `\"remediation developer\"`); duplicates between the body field and\n  CLI flags are dropped silently.\n- `containers.cna.references[]` — URLs with auto-tagged `tags`:\n  - GitHub `pull\u002F` or `commit\u002F` URLs → `[\"patch\"]`;\n  - `lists.apache.org` \u002F `security.apache.org` → `[\"vendor-advisory\"]`;\n  - everything else → no tag.\n- `containers.cna.source.discovery` — `\"INTERNAL\"` when the project found the issue itself:\n  *Security mailing list thread* starts with `N\u002FA —` (no reporter thread: the import-from-pr, -md and -scan\n  sentinels, or a maintainer's own `N\u002FA — internal finding while fixing …`),\n  an entry of the config's `[discovery].internal_markers` (the name of the project's own scanner, say)\n  appears in that field or in *Reporter credited as* (case-insensitive substring),\n  or every person in *Reporter credited as* is a collaborator of the tracker repo — the security team —\n  matched by `@login` or GitHub profile name (one `gh api graphql` call, only when it can change the answer;\n  if it fails, a warning and `\"EXTERNAL\"`);\n  else `\"EXTERNAL\"` when *Reporter credited as* names a reporter, otherwise `\"UNKNOWN\"`;\n  `--discovery` overrides it.\n- `containers.cna.providerMetadata.orgId` — ASF assigner org id.\n- `cveMetadata` — `assignerOrgId`, `cveId`, `serial`, `state: \"PUBLISHED\"`.\n\n---\n\n## Step 3 — Surface the output to the user\n\nAfter the script finishes, print these three things in order:\n\n1. **The output file path**, with a one-line `cat` suggestion so the user\n   can review the JSON in the terminal:\n\n       ```\n       Wrote \u002Ftmp\u002Fcve-CVE-2026-40913.json\n       cat \u002Ftmp\u002Fcve-CVE-2026-40913.json\n       ```\n\n2. **A clipboard-copy command** appropriate to the user's platform. On\n   Linux with `xclip` installed:\n\n       ```\n       xclip -selection clipboard \u003C \u002Ftmp\u002Fcve-CVE-2026-40913.json\n       ```\n\n   On Wayland: `wl-copy \u003C \u002Ftmp\u002Fcve-...json`. On macOS: `pbcopy \u003C …`. If\n   `xclip` \u002F `wl-copy` \u002F `pbcopy` is not on PATH, skip the clipboard\n   command and tell the user to copy manually.\n\n3. **The Vulnogram `#source` paste URL**, as a clickable link rendered per\n   the \"Linking CVEs\" rule in [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md):\n\n       ```\n       Paste the JSON into the Vulnogram #source tab:\n         [CVE-2026-40913](https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002FCVE-2026-40913#source)\n       ```\n\nThe #source tab on the ASF CVE tool is the direct \"paste raw JSON\" view of\nthe Vulnogram form. The page loads the current record, you paste the\nscript output over the top, click Save, and the form view reflects the\nnew values.\n\n### Optional: `--attach` to embed (or refresh) the JSON in the issue body\n\nIf the user also wants the JSON *attached* to the tracking issue itself\n(so it is discoverable from the issue without needing the local file),\nadd `--attach` to the invocation:\n\n```bash\nuv run --project \u003Cframework>\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json 232 \\\n  --output \u002Ftmp\u002FCVE-2026-40913.json \\\n  --version-start 3.0.0 \\\n  --attach\n```\n\nWhat `--attach` does:\n\n- After generating the JSON (exactly the same bytes as without `--attach`),\n  edits the tracking **issue's body** to embed the full JSON inside a\n  four-backtick fenced code block, collapsed behind a `\u003Cdetails>`\n  disclosure so long records don't bloat the issue view. The block is\n  appended *after* the existing template fields, right after the\n  *CVE tool link* field, so it lives at the end of the body.\n- Brackets the attachment with a pair of hidden HTML-comment markers\n  (``\u003C!-- generate-cve-json: cve=CVE-YYYY-NNNN+ version=v1 -->`` …\n  ``\u003C!-- generate-cve-json:end cve=CVE-YYYY-NNNN+ version=v1 -->``) so\n  subsequent runs can find the existing embedded block and **replace it\n  in place**, without spawning duplicates and without touching any\n  other text in the body.\n- Re-running with `--attach` is safe and idempotent: same issue body →\n  same JSON → the script patches the body, leaving you with one and only\n  one embedded attachment per CVE id. If the current body already\n  matches what the script would write, the PATCH is skipped entirely\n  (no no-op timestamp on the issue).\n- The script prints `Embedded CVE JSON in issue body on\n  \u003Ctracker>#NNN` on first run and `Replaced CVE JSON in\n  issue body on \u003Ctracker>#NNN` on subsequent runs, followed\n  by a URL that deep-links to the `## CVE JSON — paste-ready for …`\n  heading anchor inside the body.\n\n**Why embedded in the body and not as a comment?** Two reasons:\n\n1. **Natural \"pinning\" without an API for it.** GitHub has no\n   pin-comment API. A separate comment ends up buried below every\n   status-change comment — so a newcomer looking at the issue sees a\n   long comment timeline with no obvious way to find the CVE JSON.\n   The issue body always renders *above* the entire comment timeline,\n   so anything embedded in the body is effectively pinned.\n2. **One place to read the tracker.** The reporter-template fields,\n   the CVE metadata, and the paste-ready JSON are all in one place —\n   no hunting through the timeline to reconstruct the current state.\n\n(GitHub also does not expose its `user-attachments` file-upload\npipeline to the REST API — only the web UI drag-and-drop uses it — so\na real file attachment isn't available to automation anyway. Embedding\nas body text is the closest automatable equivalent and is directly\nvisible without a download round-trip.)\n\n**Confidentiality.** The embedded block lives inside the private repo,\nso it inherits the repo-wide confidentiality rules. Linking CVE\nreferences inside the block follows the \"Linking CVEs\" rule in\n[`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md): before publication the block links\nthe ASF CVE tool; after publication, re-running the script includes a\n`cve.org` link as well.\n\n---\n\n## Step 4 — Propose an issue comment recording the update\n\nPer the \"Keeping the reporter informed\" rule in\n[`README.md`](..\u002F..\u002F..\u002FREADME.md), any status change on an issue must be\nrecorded in an issue comment. Pasting a new version of the CVE record is\na status change. Propose (and, on confirmation, post) a short comment\nlike:\n\n> **CVE entry regenerated from the tracking issue** — generated paste-ready\n> JSON for [`CVE-2026-40913`](https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002FCVE-2026-40913)\n> from the current body fields (description, affected versions `\u003C 3.2.2`,\n> CWE-285, Low severity, N credits, M references). Pasted into the\n> Vulnogram `#source` tab; the record is now in sync with the tracking\n> issue.\n\nInclude a count of credits and references so a later reviewer can\nsanity-check that nothing was dropped.\n\n---\n\n## Step 5 — Never edit the JSON in place after pasting\n\nOnce the JSON has been pasted into Vulnogram and saved, **do not** edit\nthe local JSON file to match tool-side changes. Re-run the script instead\n(it is deterministic — you will get a clean baseline), diff the new\noutput against the current Vulnogram state, and paste the merged JSON\nback. This keeps the tracking issue as the single source of truth: if\nVulnogram shows something different from the generated JSON, either the\nissue body is out of date and needs a `security-issue-sync` run, or the\ntool-side difference is intentional and the reviewer will keep it.\n\n---\n\n## Guardrails\n\n- **Confidentiality.** The script deliberately **drops** any URL that\n  points at `cveprocess.apache.org` or the project's `\u003Ctracker>` repo\n  from the references list before serialising. Those URLs are private\n  ASF-internal links and should not appear in a published CVE record.\n  See the \"Confidentiality of `\u003Ctracker>`\" section of\n  [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md).\n- **CVE IDs are always linked** per the \"Linking CVEs\" rule in\n  [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md). When the skill mentions the CVE in\n  proposals, recaps or comments on the `\u003Ctracker>` issue, it must\n  render the ID as a markdown link — before publication to the ASF\n  CVE tool, and additionally to `cve.org` after publication.\n- **`\u003Ctracker>` references are always linked** per the \"Linking\n  `\u003Ctracker>` issues and PRs\" rule in\n  [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md). When the skill mentions the\n  tracking issue in its own comments, render it as a markdown link.\n- **Deterministic output is a feature.** Do not introduce timestamps,\n  random UUIDs, ordering dependencies on dict iteration, or other sources\n  of non-determinism into the script. If you need to add a new field,\n  make sure the output still hashes the same across runs on the same\n  input.\n- **Multi-entry fields.** Credits are split on **newlines only** to\n  preserve the `Full Name, Affiliation` pattern. References are extracted\n  from URL tokens in the field value. Do not reintroduce comma-splitting\n  on credits.\n- **No envelope means no metadata.** `--no-envelope` drops the\n  `cveMetadata` block which includes the CVE ID; the JSON is pure CNA\n  content. Make sure the user knows they will have to set the CVE ID by\n  hand in Vulnogram in that mode.\n\n---\n\n## References\n\n- [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md) — repo-wide conventions (confidentiality,\n  Linking CVEs, Linking `\u003Ctracker>` issues and PRs, release-branch\n  defaults).\n- [`README.md`](..\u002F..\u002F..\u002FREADME.md) — handling process, in particular\n  step 13 (fill in CVE tool fields and send advisory from the tool)\n  and step 15 (paste the attached JSON into Vulnogram's #source tab,\n  move the CVE to PUBLIC, close the issue).\n- [`security-issue-sync`](..\u002F..\u002F..\u002Fskills\u002Fsecurity-issue-sync\u002FSKILL.md) — the sibling\n  skill that populates the tracking issue fields this skill consumes.\n- [`security-issue-fix`](..\u002F..\u002F..\u002Fskills\u002Fsecurity-issue-fix\u002FSKILL.md) — the other\n  sibling skill that opens a public PR and updates the tracking issue\n  with the fix URL.\n","# generate-cve-json\n\nThis skill produces a CVE 5.x JSON document from a tracking issue in\n[`\u003Ctracker>`](https:\u002F\u002Fgithub.com\u002F\u003Ctracker>), ready to\npaste into the Vulnogram **\"#source\"** tab of the ASF CVE tool. The goal is\nto eliminate the manual \"copy each field from the issue into the right\nVulnogram form input\" step when you are preparing to publish an advisory.\n\n> **Project-agnostic by design.** All project-specific values\n> (vendor, top-level product \u002F package name, project display map,\n> CNA org id, generator tag, …) are loaded from a TOML config the\n> adopting project ships at `\u003Cproject-config>\u002Ftools\u002Fcve-tool-vulnogram\u002Fcve-json-config.toml`.\n> Concrete `apache-foo-project-*` strings appearing in this\n> document are **illustrative examples** of how a project with a\n> project-style package layout would configure things; replace\n> them mentally with the adopter's own package taxonomy. The\n> schema and lookup order are documented in the package\n> [README](README.md#configuration).\n\n**Golden rule:** the script generates a *proposal* JSON document. It\nparses a handful of structured fields from the issue body, but it cannot\nread the security team member's mind. Always review the generated JSON\nbefore pasting, and always do the final review inside Vulnogram before\nmoving the CVE from DRAFT → REVIEW → READY → PUBLIC.\n\n**Release-vote gating (opt-in, recommended for ASF projects).** The\nemitted `CNA_private.state` follows a tri-state state machine:\n\n- `DRAFT` — the CNA is incomplete *or* the project has opted into\n  release-vote gating and no vote is in progress yet.\n- `REVIEW` — the CNA is review-ready (CVE ID + title + description +\n  affected versions + CWE + severity + ≥ 1 credit + ≥ 1 reference)\n  *and* either the project hasn't opted into gating (legacy: ready ⇒\n  REVIEW) or an RC vote is in progress (signalled by the configured\n  tracker label or a `--review` CLI flag).\n- `PUBLIC` — the CNA is review-ready *and* the public advisory has\n  shipped (a `vendor-advisory` reference is present).\n\nProjects opt into gating by setting `[workflow].release_vote_gating\n= true` in their `cve-json-config.toml` and choosing the label name\nvia `[workflow].rc_voting_label` (default `\"rc voting\"`). The sync\nskill is responsible for detecting [VOTE] threads on the project's\ndev list (e.g. `dev@\u003Cproject>.apache.org`) and proposing the label\nadd\u002Fremove; the generator only reads the label on the tracker. Non-\nASF adopters who publish advisories without a separate release-vote\nstep typically leave gating off — the legacy \"ready ⇒ REVIEW\"\nbehaviour is the right default for that workflow.\n\nProjects whose own scanner reports through the security list (and so\nleaves no `N\u002FA —` thread sentinel) list its name in\n`[discovery].internal_markers` in the same file, for example\n`internal_markers = [\"\u003Cscanner name in the thread field>\", \"\u003Cits public credit name>\"]`;\nthe generator then records those finds as `source.discovery: INTERNAL`.\n\n**Determinism:** the same input issue body produces exactly the same JSON\nbytes on every run. The script uses only the Python standard library, has\nno timestamps or machine-dependent values in its output, sorts JSON keys,\nand sorts references alphabetically. This lets you paste the result into\nVulnogram, tweak fields in the tool, re-run the script later, and cleanly\ndiff the two to see what the tool has added \u002F what you changed by hand.\n\n---\n\n## Inputs\n\n- **Issue number** (required) — e.g. `232`.\n- Optional CLI overrides:\n  - `--cve-id CVE-YYYY-NNNN+` — override the CVE ID if the issue body's\n    `CVE tool link` field has not yet been filled in, or retarget the\n    JSON to a different CVE ID.\n  - `--title \"\u003Cvendor>: \u003Cproduct>: …\"` — override the CVE title.\n    Default is the GitHub issue title with the project's\n    `\u003Cvendor>: \u003Cproduct>:` prefix (sourced from the TOML config) when\n    it does not already start with that phrase.\n  - `--version-start X.Y.Z` — override the start of the affected version\n    range (the `affected[].versions[].version` field). Default is the\n    lower bound parsed from the Affected versions field when it uses\n    `>= X, \u003C Y` syntax, otherwise `\"0\"`.\n  - `--remediation-developer \"Name\"` — append a `type: \"remediation\n    developer\"` credit on top of whatever the body's *Remediation\n    developer* field already lists (auto-populated by the\n    `security-issue-sync` skill from the linked PR's author). Repeat\n    the flag to add multiple developers; duplicates between the\n    body field and CLI flags are dropped silently. The reporter\n    credit(s) from the *Reporter credited as* field are always\n    emitted with `type: \"finder\"`.\n  - `--vendor` \u002F `--product` \u002F `--package-name` \u002F `--collection-url` —\n    override the product identity fields. The defaults come from the\n    project's TOML config (`product.vendor`, `product.default_product`,\n    `product.default_package_name`, `product.default_collection_url`).\n    They are used as the identity for *Affected versions* lines that\n    don't start with a recognisable per-package directory name\n    (see the multi-product note below). `--collection-url` reaches the\n    record only through the purl it is used to derive (see\n    `product.purl_type` below) — except for a product that opts out of\n    purls, the one case a record still carries a `collectionURL`.\n  - **Helm charts — `purl_type = \"helm\"`, and you must know where the\n    chart is published.** A chart is identified by its repository, not by\n    its name: two projects may both ship a chart called `superset`. So the\n    generator emits\n\n    ```text\n    pkg:helm\u002F\u003Cchart>?repository_url=\u003Cbase URL>\n    ```\n\n    taking the base URL from `product.default_collection_url` (or the\n    package's `collection_url` override), and **refuses to emit a purl at\n    all without one** rather than producing a chart identifier that matches\n    somebody else's chart.\n\n    **If the base URL is not recorded anywhere, ask whoever publishes the\n    chart.** It is whatever a user would put in `helm repo add` — the\n    `https:\u002F\u002F…` site serving `index.yaml`, or the `oci:\u002F\u002F…` registry path\n    for a chart published as an OCI artifact. Either is accepted verbatim;\n    a trailing slash is dropped so the same repository does not produce two\n    identifiers. Do not infer it from the project's homepage: charts are\n    routinely served from a different host than the project site.\n\n    Note that `helm` is **not** one of the types the purl specification\n    registers. It is used because the scanners that would match this\n    advisory to a deployed chart emit it, and because the two spec-correct\n    encodings — `pkg:oci\u002F` for an OCI registry and `pkg:generic\u002F` for a\n    classic repository — would give the same chart two different identities\n    depending on how it happened to be published. A strict validator may\n    object to the type; being invisible to every scanner is the worse\n    outcome.\n\n  - `product.purl_type` *(config only)* — the Package URL type\n    for the project's packages (`pypi`, `npm`, `cargo`, …). Every\n    `affected[]` entry carries a `packageURL` (`pkg:\u003Ctype>\u002F\u003CpackageName>`).\n    Per the CVE Record Format the purl never includes a version — the\n    entry's `versions[]` carries the range.\n\n    **The purl is the only package identifier the record carries.** The\n    ASF CVE tool treats the Package URL as the recommended identifier and\n    derives the legacy `collectionURL` \u002F `packageName` pair from it when\n    the record is serialised for publication, so the generator emits the\n    purl alone. Writing the pair as well would hand the tool two\n    identifiers that can disagree — which it reports rather than\n    silently reconciles.\n\n    **A purl is required, not optional.** A record needs one to be\n    promoted, so the generator refuses to emit a record it cannot build\n    a purl for rather than producing one the CNA will reject later.\n    Leaving the key unset is fine when the type can be **derived from\n    `product.default_collection_url`** — PyPI, npm, crates.io,\n    RubyGems and NuGet hosts are recognised — and only hosts whose type\n    is unambiguous are mapped, because a guessed type yields a\n    valid-looking identifier pointing at the wrong ecosystem.\n\n    Set `purl_type = \"none\"` to state deliberately that a product has no\n    package host — a source-only release published to `dist.apache.org`\n    and nowhere else, for instance. That is an explicit decision rather than an omission, which\n    is the distinction the previous optional behaviour lost. Those\n    entries — and only those — carry `collectionURL` \u002F `packageName`\n    instead, because there is no purl for the CVE tool to derive them\n    from.\n    Name normalisation follows the package-url spec per type, and is\n    implemented for the types whose rules have been read from it:\n    `pypi` (lowercased, `_` becomes `-`) and `npm` (scope becomes the\n    namespace, so `@angular\u002Fanimation` renders as\n    `pkg:npm\u002F%40angular\u002Fanimation`; names keep their case, since\n    mixed-case npm packages were grandfathered in). Any other type has\n    its name passed through unchanged, and a name needing namespace\n    semantics is covered by `product.purl_namespace` below, and without\n    one such a type is an error rather than a guessed purl.\n  - `product.purl_namespace` *(optional, config only)* — the namespace\n    for purl types that require one: a Maven `groupId`, a Composer\n    vendor, a Go module prefix. Types the spec gives no namespace\n    (`pypi`, `cargo`, `gem`, `nuget`) ignore it, and an npm scope\n    carried in the package name itself wins over it. A type that\n    requires a namespace and has none is an error naming this key — a\n    guessed Maven groupId would point at another organisation's artifact,\n    and silently omitting the purl produces an unpromotable record.\n  - `[packages.overrides.\"\u003CpackageName>\"]` *(config only)* — per-package\n    distribution identity, for a project that ships to more than one\n    ecosystem. Accepts `product`, `collection_url` and `purl_type`; anything\n    omitted falls through to the `product.*` default, so a package that\n    differs only in purl type need not restate its collection URL.\n\n    The case this exists for: a project whose packages are on PyPI **and**\n    which also ships, say, a Helm chart from its own site. `product.*`\n    describes only the majority ecosystem, so without an override the\n    odd-one-out inherits it and the record claims `pkg:pypi\u002F\u003Cchart>` — a\n    package that host does not carry. Since purls are what scanners match\n    on, a wrong one is acted upon, unlike the wrong free-text product name\n    it replaced.\n\n    ```toml\n    [packages.overrides.\"apache-example-helm-chart\"]\n    product = \"Apache Example Helm Chart\"\n    collection_url = \"https:\u002F\u002Fexample.apache.org\u002F\"\n    purl_type = \"none\"\n    ```\n\n    The key is the resolved `packageName`, so the package must be one the\n    configured `package_pattern` matches — extending that pattern is a\n    prerequisite, not an extra. `--product-for` still wins over the\n    `product` set here.\n  - `--product-for PACKAGE=PRODUCT` — override the CVE product display\n    name for a specific `packageName`. Repeat to override multiple\n    packages. Useful when a package is not in the project's\n    `project_display_map` config, or when an acronym needs different\n    casing from the title-cased fallback. Example:\n    `--product-for apache-foo-project-baz='Apache Foo Project Baz'`.\n  - `--org-id \u003Cuuid>` — override the CNA assigner org id (defaults to\n    the ASF org id).\n  - `--discovery \u003Cword>` — override `source.discovery` (one of `UNKNOWN`,\n    `INTERNAL`, `EXTERNAL`, `USER`; default derived as below).\n  - `--no-envelope` — emit only the inner `cna` container instead of\n    the full CVE 5.x record (envelope is the default).\n  - `--review` \u002F `--draft` (mutually exclusive) — force the emitted\n    `CNA_private.state` to `REVIEW` or `DRAFT` regardless of the\n    tracker's labels. Useful in two cases:\n    - `--review` lets a release manager nudge a record forward by\n      hand when the `rc voting` label is not yet set on the tracker.\n    - `--draft` walks a record back when an RC vote was cancelled or\n      failed and the label is still around.\n    Both flags only matter when release-vote gating is enabled in\n    the project's TOML config (see below); otherwise the state is\n    derived from the CNA's readiness alone and these flags have no\n    effect beyond what the legacy logic produces.\n  - `--attach` — after generating the JSON, embed it at the end of\n    the tracking issue's **body** (after the *CVE tool link* field),\n    wrapped in a collapsible `\u003Cdetails>` block. The block is bracketed\n    by HTML-comment markers\n    (``\u003C!-- generate-cve-json: cve=CVE-YYYY-NNNN+ version=v1 -->`` …\n    ``\u003C!-- generate-cve-json:end cve=CVE-YYYY-NNNN+ version=v1 -->``)\n    that the script uses on later runs to find the existing block and\n    **replace it in place**, so re-runs update the embedded attachment\n    instead of duplicating it or breaking other body fields. The\n    attachment lives in the body — not as a comment — so it stays\n    above every status-change comment in the timeline (effectively\n    \"pinned\" without needing any pin mechanism). Requires the\n    positional issue argument; incompatible with `--stdin`.\n\n---\n\n## Prerequisites on the tracking issue\n\nFor the generated JSON to be useful, the issue body should already be\nfilled in through a prior `security-issue-sync` run. In particular:\n\n- **Short public summary for publish** — becomes the CVE description.\n- **Affected versions** — becomes the CVE `affected[]` list. The script\n  understands the common version-expression shapes (`\u003C 3.2.2`,\n  `>= 2.0.0, \u003C 3.2.2`, `\u003C= 3.2.1`, a bare version like `3.1.5`, and a\n  bare lower bound like `>= 2.0.0`).\n  **Multi-product CVEs are supported** — put one package per line,\n  prefixing each with the package directory name as it appears in\n  the adopter's repo, and the script emits one `affected[]` entry\n  per line with the right `product` and package identity. Example\n  (illustrative — using a hypothetical `apache-foo` project's\n  sub-project layout):\n\n      apache-foo-project-alpha \u003C=6.5.0\n      apache-foo-project-beta \u003C=1.9.0\n\n  Known package directory names are resolved to the vendor-preferred\n  display casing via the project's `packages.project_display_map`\n  config table; unknown packages fall back to title-cased dash-split\n  and can be overridden with `--product-for`. A line without a\n  package prefix (or a single-line field) falls back to the\n  `--product` \u002F `--package-name` defaults, which preserves the\n  single-product behaviour.\n\n  **`\u003C NEXT VERSION` placeholder** — multi-package trackers don't\n  know which package version will ship the fix until the wave's\n  release manager picks it during a release cut. Until then, the\n  *Affected versions* lines use the literal token `NEXT VERSION` as\n  the upper bound, e.g.:\n\n      apache-foo-project-alpha \u003C NEXT VERSION\n      apache-foo-project-beta \u003C NEXT VERSION\n\n  The generator strips `\u003C NEXT VERSION` before parsing each line and\n  emits a `versions[]` entry without `lessThan` (open-ended upper\n  bound — *\"affected from \\\u003Clow\\> onwards, no fix released yet\"*).\n  When the wave ships and the version is known, the\n  `security-issue-sync` skill replaces each `NEXT VERSION` with the\n  actual `\u003C X.Y.Z` and the next regen produces a fully-bounded entry.\n  Case-insensitive; combines with a lower bound (e.g.\n  `>= 2.0.0, \u003C NEXT VERSION` becomes `{version: \"2.0.0\", status: \"affected\"}`).\n- **Security mailing list thread** — internal navigation reference\n  only; the script **does not** export URLs from this field into\n  `references[]`. Keep whatever the reporter or triager put there.\n- **Public advisory URL** — each URL in this field is extracted and\n  added to `references[]` with `tags: [\"vendor-advisory\"]`. Populated\n  by the release manager (or the `security-issue-sync` skill) once\n  the advisory is archived on `\u003Cusers-list>`. The\n  `--advisory-url` CLI flag still exists for ad-hoc overrides.\n- **PR with the fix** — each URL in this field becomes a reference URL.\n  **Multiple URLs are supported**: paste them on separate lines, as a\n  bullet list, or comma-separated — the script extracts every\n  `https?:\u002F\u002F…` token it finds.\n- **Reporter credited as** — each line becomes one CVE credit entry\n  with `type: \"finder\"`. **Multiple credits are supported**: put each\n  person on their own line. `Full Name, Affiliation` on a single line\n  is treated as **one** credit, not two, so the common\n  `Jed Cunningham, Astronomer` pattern works as expected. Bullets\n  (`- `, `* `, `1. `) are stripped. Blank lines are ignored. If you\n  need to credit many people::\n\n      Jed Cunningham\n      Saurabh Banawar\n      selen (Huntr bounty 3e88d364-5047-4768-a52c-6568f21ef35b)\n\n- **Remediation developer** — each line becomes one CVE credit entry\n  with `type: \"remediation developer\"`. Same parsing rules as\n  *Reporter credited as* (newline-separated, `Full Name, Affiliation`\n  is one credit, bullets stripped). Auto-populated by the\n  `security-issue-sync` skill from the linked PR's author the first\n  time *PR with the fix* is set; manual edits survive subsequent\n  syncs (the skill only proposes appending names that aren't already\n  there). The `--remediation-developer` CLI flag adds further names\n  on top of whatever the body already lists.\n\n> **Bot \u002F AI credit policy.** This generator is intentionally\n> neutral on credit content: whatever a tracker's *Reporter credited\n> as* or *Remediation developer* field carries is what lands in\n> `credits[]`. The filtering of obvious bot \u002F AI accounts (e.g.\n> `dependabot[bot]`, `*-scanner`, `automated-*`) happens **upstream\n> in the skills** at extraction time — see\n> [`bot-credits-policy.md`](..\u002Fbot-credits-policy.md) for the\n> detection rule and the per-skill enforcement sites. Keeping the\n> filter upstream means an intentional human override (typed\n> directly into the field) survives every JSON regeneration without\n> needing a special bypass flag here.\n\n- **CWE** — `CWE-285: Improper Authorization` style works; so does a bare\n  `CWE-285` or a plain sentence. The script extracts the `CWE-\\d+` token\n  for the `cweId` field and uses the rest as the human-readable\n  description.\n- **Severity** — `None`, `Low`, `Medium`, `High`, `Critical`\n  (case-insensitive) are emitted as the text content of a `metrics[].other`\n  block. Vulnogram lets you replace this with a CVSS vector in its form if\n  you want a numeric score.\n- **CVE tool link** — the ASF CVE tool URL, e.g.\n  `https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002FCVE-2026-40913`. The script extracts\n  the `CVE-YYYY-NNNN+` token from this field. If the field is still\n  `_No response_`, pass the CVE ID with `--cve-id`.\n\nIf one of these fields is missing, the JSON still generates, but the\nreviewer will need to fill the gap in Vulnogram. The skill surfaces any\nempty field in the proposal so nothing is silently skipped.\n\n---\n\n## Prerequisites\n\n- **`gh` CLI authenticated** with collaborator access to\n  `\u003Ctracker>` — the script reads the tracker via `gh`.\n- **`uv` installed** — the script is a small `uv`-managed Python\n  project and is invoked as `uv run --project\n  tools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json \u003CN>`.\n\nSee\n[Prerequisites for running the agent skills](..\u002F..\u002F..\u002Fdocs\u002Fquick-start\u002Fprerequisites.md#prerequisites-for-running-the-agent-skills)\nin `README.md`.\n\n---\n\n## Step 0 — Pre-flight check\n\nBefore reading the tracker:\n\n1. `gh api repos\u002F\u003Ctracker> --jq .name` returns the adopter's\n   tracker repo name (per `\u003Cproject-config>\u002Fproject.md`), **and**\n2. `uv --version` returns.\n\nIf either fails, stop and tell the user what to install or log\nin to.\n\n---\n\n## Step 1 — Verify the issue has the required fields\n\nFetch the issue body and check every template field the script reads. If\na field is missing or still `_No response_`, either run\n[`security-issue-sync`](..\u002F..\u002F..\u002Fskills\u002Fsecurity-issue-sync\u002FSKILL.md) first to fill it\nin, or override it on the command line.\n\n```bash\ngh issue view \u003CN> --repo \u003Ctracker> --json body --jq .body \\\n  | grep -E '^###|^_No response_'\n```\n\nAsk the user whether to proceed if any critical field is empty\n(description, affected versions, CVE tool link, credits). Do not silently\ngenerate a JSON with placeholder values.\n\n---\n\n## Step 2 — Run the generator\n\nRun the project's console script through `uv run --project`, which\nprepares the (cached) virtualenv on first use and reuses it on later\nruns:\n\n```bash\nuv run --project \u003Cframework>\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json \u003CN> \\\n  --output \u002Ftmp\u002F\u003CCVE-ID>.json \\\n  --version-start \u003Cearliest-affected-version>\n```\n\n`--version-start` is the one flag the tracking issue body almost never\ncontains and that Vulnogram expects filled in (the body field usually\nencodes only the upper bound). The remediation developer credit comes\nfrom the body's *Remediation developer* field, populated by the\n`security-issue-sync` skill from the linked PR's author — no CLI flag\nneeded in the normal flow. For a fix that landed in `3.2.2` and was\nfirst introduced in `3.0.0`, for example:\n\n```bash\nuv run --project \u003Cframework>\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json 232 \\\n  --output \u002Ftmp\u002FCVE-2026-40913.json \\\n  --version-start 3.0.0\n```\n\nPass `--remediation-developer \"Name\"` only when you need to add a\ndeveloper credit on top of (or in place of) what the body already\ncontains — for example a co-author who didn't end up as the PR's\nGitHub author.\n\nAdditional flags, all optional:\n\n- `--cve-id CVE-YYYY-NNNN+` — override the CVE ID if the *CVE tool link*\n  field is empty.\n- `--title \"\u003Cvendor>: \u003Cproduct>: …\"` — override the title.\n- `--vendor` \u002F `--product` \u002F `--package-name` \u002F `--collection-url` —\n  override product identity (defaults sourced from the project's TOML\n  config under `[product]`).\n- `--org-id \u003Cuuid>` — override the CNA assigner org id (defaults to the\n  ASF org id).\n- `--discovery UNKNOWN|INTERNAL|EXTERNAL|USER` — override\n  `source.discovery` (for example `INTERNAL` for an issue a maintainer found and credited\n  under a name that does not match their GitHub profile).\n- `--no-envelope` — emit only the `cna` container (no `cveMetadata`,\n  no `dataType`\u002F`dataVersion` wrapper). Use this if Vulnogram's `#source`\n  tab is in \"inner block only\" mode.\n- `--stdin` — read the issue body from stdin instead of calling `gh`.\n  Useful for offline iteration and for drafting by hand.\n- `--baseline \u003Crecord.json>` — the live record of this CVE, as `vulnogram-api-record-fetch` prints it.\n  Pass it for any record that is already `PUBLIC`, so a regeneration changes only what the body changed.\n  The body wins for the title, summary, severity text, CWE, affected versions and the sets of credits and reference URLs.\n  The published value stays for `source`, `supportingMedia` of an unchanged summary, legacy package keys of an unchanged package, the `CWE-NNN` wording of an unchanged CWE, the severity casing and `scenarios`, credit types, reference tags and order, `related` references the published record lacks while the summary is unchanged, and any key the generator does not emit.\n  A record for another CVE, or one that names no CVE, exits 2.\n- `--report-json \u003Cpath>` — also write a machine-readable report (field names, line numbers and kinds; never body text):\n  `normalisation_changes` (what the in-memory normalisation below rewrote),\n  `needs_decision` (fields repeated with different values),\n  and `missing_required` (empty required fields, each with `agent_may_propose`; `false` for *Severity* and *CVE tool link*).\n  It also carries `cna_private_state`, the state the record was given: `DRAFT` while the summary, affected versions, CWE, severity or CVE link is empty (a title standing in for the summary included); an empty reporter credit or a non-template duplicate does not hold it back.\n  It is written before the record is built, so it exists on exit 2 too (with `cna_private_state: null`).\n  The calling skill acts on it per [the CVE JSON fallback](..\u002F..\u002F..\u002Fplugins\u002Fmagpie-security\u002Fskills\u002Fissue-sync\u002Foutcomes\u002Fcve-json-fallback.md); the tool itself never calls a model.\n\nBefore reading any field the script normalises the body **in memory** with\n[`github-body-field`](..\u002F..\u002Fgithub-body-field\u002FREADME.md)'s `normalise`:\nCRLF becomes LF, a heading written `###  Name`, `###\u003Ctab>Name`, indented or with closing `#`s still names its template field (the name itself must match exactly, case included, as on main),\na heading-shaped line inside a code fence never counts,\nand copies of a field that hold the same value collapse to one.\nA field repeated outside fences with **different** values is never guessed:\nthe script exits 2 with an error naming the field and the heading line numbers, and writes no record.\n\nThe script is deterministic — re-running it with the same flags and the\nsame tracking-issue body produces the same JSON bytes.\n\n### Output shape (in brief)\n\nThe generated record matches what Vulnogram exports after a save,\nminus editor cruft. Notable fields:\n\n- `containers.cna.affected[]` — `vendor`, `product`, `packageURL` (the\n  version-less purl) and a `versions[]` entry with `version`, `lessThan`,\n  `status: \"affected\"`, `versionType: \"semver\"`. An entry for a product\n  configured with `purl_type = \"none\"` carries `collectionURL` \u002F\n  `packageName` in place of the purl.\n- `containers.cna.descriptions[]` — both a plain `value` and an HTML\n  `supportingMedia` alternative (Vulnogram's WYSIWYG mode needs both).\n- `containers.cna.problemTypes[].descriptions[]` — `cweId`,\n  human-readable `description`, `type: \"CWE\"`.\n- `containers.cna.metrics[].other` — `type: \"Textual description of\n  severity\"` and `content.text` = the severity word.\n- `containers.cna.credits[]` — one entry per *Reporter credited as*\n  line (type `\"finder\"`), plus one entry per *Remediation developer*\n  body line and per `--remediation-developer` CLI override (type\n  `\"remediation developer\"`); duplicates between the body field and\n  CLI flags are dropped silently.\n- `containers.cna.references[]` — URLs with auto-tagged `tags`:\n  - GitHub `pull\u002F` or `commit\u002F` URLs → `[\"patch\"]`;\n  - `lists.apache.org` \u002F `security.apache.org` → `[\"vendor-advisory\"]`;\n  - everything else → no tag.\n- `containers.cna.source.discovery` — `\"INTERNAL\"` when the project found the issue itself:\n  *Security mailing list thread* starts with `N\u002FA —` (no reporter thread: the import-from-pr, -md and -scan\n  sentinels, or a maintainer's own `N\u002FA — internal finding while fixing …`),\n  an entry of the config's `[discovery].internal_markers` (the name of the project's own scanner, say)\n  appears in that field or in *Reporter credited as* (case-insensitive substring),\n  or every person in *Reporter credited as* is a collaborator of the tracker repo — the security team —\n  matched by `@login` or GitHub profile name (one `gh api graphql` call, only when it can change the answer;\n  if it fails, a warning and `\"EXTERNAL\"`);\n  else `\"EXTERNAL\"` when *Reporter credited as* names a reporter, otherwise `\"UNKNOWN\"`;\n  `--discovery` overrides it.\n- `containers.cna.providerMetadata.orgId` — ASF assigner org id.\n- `cveMetadata` — `assignerOrgId`, `cveId`, `serial`, `state: \"PUBLISHED\"`.\n\n---\n\n## Step 3 — Surface the output to the user\n\nAfter the script finishes, print these three things in order:\n\n1. **The output file path**, with a one-line `cat` suggestion so the user\n   can review the JSON in the terminal:\n\n       ```\n       Wrote \u002Ftmp\u002Fcve-CVE-2026-40913.json\n       cat \u002Ftmp\u002Fcve-CVE-2026-40913.json\n       ```\n\n2. **A clipboard-copy command** appropriate to the user's platform. On\n   Linux with `xclip` installed:\n\n       ```\n       xclip -selection clipboard \u003C \u002Ftmp\u002Fcve-CVE-2026-40913.json\n       ```\n\n   On Wayland: `wl-copy \u003C \u002Ftmp\u002Fcve-...json`. On macOS: `pbcopy \u003C …`. If\n   `xclip` \u002F `wl-copy` \u002F `pbcopy` is not on PATH, skip the clipboard\n   command and tell the user to copy manually.\n\n3. **The Vulnogram `#source` paste URL**, as a clickable link rendered per\n   the \"Linking CVEs\" rule in [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md):\n\n       ```\n       Paste the JSON into the Vulnogram #source tab:\n         [CVE-2026-40913](https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002FCVE-2026-40913#source)\n       ```\n\nThe #source tab on the ASF CVE tool is the direct \"paste raw JSON\" view of\nthe Vulnogram form. The page loads the current record, you paste the\nscript output over the top, click Save, and the form view reflects the\nnew values.\n\n### Optional: `--attach` to embed (or refresh) the JSON in the issue body\n\nIf the user also wants the JSON *attached* to the tracking issue itself\n(so it is discoverable from the issue without needing the local file),\nadd `--attach` to the invocation:\n\n```bash\nuv run --project \u003Cframework>\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json generate-cve-json 232 \\\n  --output \u002Ftmp\u002FCVE-2026-40913.json \\\n  --version-start 3.0.0 \\\n  --attach\n```\n\nWhat `--attach` does:\n\n- After generating the JSON (exactly the same bytes as without `--attach`),\n  edits the tracking **issue's body** to embed the full JSON inside a\n  four-backtick fenced code block, collapsed behind a `\u003Cdetails>`\n  disclosure so long records don't bloat the issue view. The block is\n  appended *after* the existing template fields, right after the\n  *CVE tool link* field, so it lives at the end of the body.\n- Brackets the attachment with a pair of hidden HTML-comment markers\n  (``\u003C!-- generate-cve-json: cve=CVE-YYYY-NNNN+ version=v1 -->`` …\n  ``\u003C!-- generate-cve-json:end cve=CVE-YYYY-NNNN+ version=v1 -->``) so\n  subsequent runs can find the existing embedded block and **replace it\n  in place**, without spawning duplicates and without touching any\n  other text in the body.\n- Re-running with `--attach` is safe and idempotent: same issue body →\n  same JSON → the script patches the body, leaving you with one and only\n  one embedded attachment per CVE id. If the current body already\n  matches what the script would write, the PATCH is skipped entirely\n  (no no-op timestamp on the issue).\n- The script prints `Embedded CVE JSON in issue body on\n  \u003Ctracker>#NNN` on first run and `Replaced CVE JSON in\n  issue body on \u003Ctracker>#NNN` on subsequent runs, followed\n  by a URL that deep-links to the `## CVE JSON — paste-ready for …`\n  heading anchor inside the body.\n\n**Why embedded in the body and not as a comment?** Two reasons:\n\n1. **Natural \"pinning\" without an API for it.** GitHub has no\n   pin-comment API. A separate comment ends up buried below every\n   status-change comment — so a newcomer looking at the issue sees a\n   long comment timeline with no obvious way to find the CVE JSON.\n   The issue body always renders *above* the entire comment timeline,\n   so anything embedded in the body is effectively pinned.\n2. **One place to read the tracker.** The reporter-template fields,\n   the CVE metadata, and the paste-ready JSON are all in one place —\n   no hunting through the timeline to reconstruct the current state.\n\n(GitHub also does not expose its `user-attachments` file-upload\npipeline to the REST API — only the web UI drag-and-drop uses it — so\na real file attachment isn't available to automation anyway. Embedding\nas body text is the closest automatable equivalent and is directly\nvisible without a download round-trip.)\n\n**Confidentiality.** The embedded block lives inside the private repo,\nso it inherits the repo-wide confidentiality rules. Linking CVE\nreferences inside the block follows the \"Linking CVEs\" rule in\n[`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md): before publication the block links\nthe ASF CVE tool; after publication, re-running the script includes a\n`cve.org` link as well.\n\n---\n\n## Step 4 — Propose an issue comment recording the update\n\nPer the \"Keeping the reporter informed\" rule in\n[`README.md`](..\u002F..\u002F..\u002FREADME.md), any status change on an issue must be\nrecorded in an issue comment. Pasting a new version of the CVE record is\na status change. Propose (and, on confirmation, post) a short comment\nlike:\n\n> **CVE entry regenerated from the tracking issue** — generated paste-ready\n> JSON for [`CVE-2026-40913`](https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002FCVE-2026-40913)\n> from the current body fields (description, affected versions `\u003C 3.2.2`,\n> CWE-285, Low severity, N credits, M references). Pasted into the\n> Vulnogram `#source` tab; the record is now in sync with the tracking\n> issue.\n\nInclude a count of credits and references so a later reviewer can\nsanity-check that nothing was dropped.\n\n---\n\n## Step 5 — Never edit the JSON in place after pasting\n\nOnce the JSON has been pasted into Vulnogram and saved, **do not** edit\nthe local JSON file to match tool-side changes. Re-run the script instead\n(it is deterministic — you will get a clean baseline), diff the new\noutput against the current Vulnogram state, and paste the merged JSON\nback. This keeps the tracking issue as the single source of truth: if\nVulnogram shows something different from the generated JSON, either the\nissue body is out of date and needs a `security-issue-sync` run, or the\ntool-side difference is intentional and the reviewer will keep it.\n\n---\n\n## Guardrails\n\n- **Confidentiality.** The script deliberately **drops** any URL that\n  points at `cveprocess.apache.org` or the project's `\u003Ctracker>` repo\n  from the references list before serialising. Those URLs are private\n  ASF-internal links and should not appear in a published CVE record.\n  See the \"Confidentiality of `\u003Ctracker>`\" section of\n  [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md).\n- **CVE IDs are always linked** per the \"Linking CVEs\" rule in\n  [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md). When the skill mentions the CVE in\n  proposals, recaps or comments on the `\u003Ctracker>` issue, it must\n  render the ID as a markdown link — before publication to the ASF\n  CVE tool, and additionally to `cve.org` after publication.\n- **`\u003Ctracker>` references are always linked** per the \"Linking\n  `\u003Ctracker>` issues and PRs\" rule in\n  [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md). When the skill mentions the\n  tracking issue in its own comments, render it as a markdown link.\n- **Deterministic output is a feature.** Do not introduce timestamps,\n  random UUIDs, ordering dependencies on dict iteration, or other sources\n  of non-determinism into the script. If you need to add a new field,\n  make sure the output still hashes the same across runs on the same\n  input.\n- **Multi-entry fields.** Credits are split on **newlines only** to\n  preserve the `Full Name, Affiliation` pattern. References are extracted\n  from URL tokens in the field value. Do not reintroduce comma-splitting\n  on credits.\n- **No envelope means no metadata.** `--no-envelope` drops the\n  `cveMetadata` block which includes the CVE ID; the JSON is pure CNA\n  content. Make sure the user knows they will have to set the CVE ID by\n  hand in Vulnogram in that mode.\n\n---\n\n## References\n\n- [`AGENTS.md`](..\u002F..\u002F..\u002FAGENTS.md) — repo-wide conventions (confidentiality,\n  Linking CVEs, Linking `\u003Ctracker>` issues and PRs, release-branch\n  defaults).\n- [`README.md`](..\u002F..\u002F..\u002FREADME.md) — handling process, in particular\n  step 13 (fill in CVE tool fields and send advisory from the tool)\n  and step 15 (paste the attached JSON into Vulnogram's #source tab,\n  move the CVE to PUBLIC, close the issue).\n- [`security-issue-sync`](..\u002F..\u002F..\u002Fskills\u002Fsecurity-issue-sync\u002FSKILL.md) — the sibling\n  skill that populates the tracking issue fields this skill consumes.\n- [`security-issue-fix`](..\u002F..\u002F..\u002Fskills\u002Fsecurity-issue-fix\u002FSKILL.md) — the other\n  sibling skill that opens a public PR and updates the tracking issue\n  with the fix URL.\n",{"name":5,"description":57,"when_to_use":58},"Generate a CVE 5.x JSON document from an \u003Ctracker> tracking\nissue, ready to paste into the Vulnogram `#source` tab of the ASF CVE tool\nat https:\u002F\u002Fcveprocess.apache.org\u002Fcve5\u002F\u003CCVE-ID>#source. The conversion is\ndeterministic: same issue in, same JSON bytes out. Handles multiple\ncredits (one per line) and multiple references (URLs extracted from the\nissue's \"Public advisory URL\" and \"PR with the fix\" fields; the\n\"Security mailing list thread\" field is treated as internal-only and\nnever exported).\n","Invoke when a security team member says \"generate CVE JSON for NNN\",\n\"update the CVE tool entry for NNN\", \"paste-ready CVE for NNN\", or is\nabout to publish the advisory for a tracking issue and wants the CVE\nrecord filled in from the issue body in one paste-and-save step. Not\nappropriate before the CVE has been allocated (the script needs a CVE\nID either from the issue body's `CVE tool link` field or from a\n`--cve-id` override).","main","1c3bdcd71ee86bf5a2b850b01182f36a95fcced2","tools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json",127,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie","https:\u002F\u002Fmagpie.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-15 00:32:58",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add apache\u002Fmagpie --skill generate-cve-json",{"tool":74,"command":75},"bunx","bunx skills add apache\u002Fmagpie --skill generate-cve-json",{"tool":77,"command":78},"pnpm","pnpm dlx skills add apache\u002Fmagpie --skill generate-cve-json","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002FSKILL.md",true,[82,88,92,98,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},".gitignore","OTHER","其他",81,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002F.gitignore",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"pyproject.toml",3326,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fpyproject.toml",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"README.md","REFERENCE","参考文档",16141,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002FREADME.md",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"src\u002Fgenerate_cve_json\u002F__init__.py","SCRIPT","脚本",3053,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002F__init__.py",{"path":105,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":106,"sourceHtmlUrl":107},"src\u002Fgenerate_cve_json\u002F__main__.py",951,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002F__main__.py",{"path":109,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":110,"sourceHtmlUrl":111},"src\u002Fgenerate_cve_json\u002Fadvisory_records.py",51576,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Fadvisory_records.py",{"path":113,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":114,"sourceHtmlUrl":115},"src\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-entry.md.tmpl",297,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-entry.md.tmpl",{"path":117,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":118,"sourceHtmlUrl":119},"src\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-entry.xml.tmpl",393,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-entry.xml.tmpl",{"path":121,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":122,"sourceHtmlUrl":123},"src\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-section.md.tmpl",149,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-section.md.tmpl",{"path":125,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":126,"sourceHtmlUrl":127},"src\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-section.xml.tmpl",174,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Fadvisory_templates\u002Frelease-page-section.xml.tmpl",{"path":129,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":130,"sourceHtmlUrl":131},"src\u002Fgenerate_cve_json\u002Fbaseline.py",7948,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Fbaseline.py",{"path":133,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":134,"sourceHtmlUrl":135},"src\u002Fgenerate_cve_json\u002Fcve_json.py",132052,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Fcve_json.py",{"path":137,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":138,"sourceHtmlUrl":139},"src\u002Fgenerate_cve_json\u002Flayers.py",8368,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Fsrc\u002Fgenerate_cve_json\u002Flayers.py",{"path":141,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":142,"sourceHtmlUrl":143},"tests\u002F__init__.py",0,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002F__init__.py",{"path":145,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":146,"sourceHtmlUrl":147},"tests\u002Fconftest.py",2707,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Fconftest.py",{"path":149,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":150,"sourceHtmlUrl":151},"tests\u002Ffixtures\u002Fcve-json-config-providers.toml",2539,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ffixtures\u002Fcve-json-config-providers.toml",{"path":153,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":154,"sourceHtmlUrl":155},"tests\u002Ffixtures\u002Fcve-json-config.toml",6210,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ffixtures\u002Fcve-json-config.toml",{"path":157,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":158,"sourceHtmlUrl":159},"tests\u002Ftest_advisory_records.py",19813,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ftest_advisory_records.py",{"path":161,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":162,"sourceHtmlUrl":163},"tests\u002Ftest_baseline.py",8930,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ftest_baseline.py",{"path":165,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":166,"sourceHtmlUrl":167},"tests\u002Ftest_cli.py",36541,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ftest_cli.py",{"path":169,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":170,"sourceHtmlUrl":171},"tests\u002Ftest_config_resolution.py",6533,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ftest_config_resolution.py",{"path":173,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":174,"sourceHtmlUrl":175},"tests\u002Ftest_generate_cve_json.py",98703,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ftest_generate_cve_json.py",{"path":177,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":178,"sourceHtmlUrl":179},"tests\u002Ftest_normalised_body.py",12929,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Ftools\u002Fcve-tool-vulnogram\u002Fgenerate-cve-json\u002Ftests\u002Ftest_normalised_body.py",[181,206,228,248,268,299],{"skillNo":182,"name":183,"nameZh":17,"description":184,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":52},"01M70JNYMCY5EEWYWDN30WKDJ4","upgrade","Upgrade Magpie in one run: move to the new version if needed (`setup update`), check this machine and project, apply one approved plan, re-check, and print exact commands for what is out of reach.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-setup\u002Fskills\u002Fupgrade\u002FSKILL.md",[],[183,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,51],"notice","platform","for","project","re","move","session","Meta","machine","yes","new","version","apply","print","check","last","plan","run",{"skillNo":207,"name":208,"nameZh":17,"description":209,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":210,"categories":211,"keywords":212,"publishedAt":52},"01M70JJBSW3XE35BAXQ1VTA9SV","dependency-vulnerability-audit","Read-only dependency vulnerability audit for one repository or a local\ncheckout. Detects the project's dependency manager(s), runs the\nappropriate audit tool, surfaces patchable findings grouped by severity,\nand proposes upgrades for maintainer review. Never modifies manifests or\nlock files and never opens update PRs.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-repo-health\u002Fskills\u002Fdependency-vulnerability-audit\u002FSKILL.md",[],[213,214,215,216,49,217,218,219,191,220,221,47,222,36,223,35,224,225,226,227],"vulnerability","audit","dependency","dependency vulnerability audit","checkout","chain","scope","dependency manager","local","files","manifests","ask","patch","hand","review",{"skillNo":229,"name":230,"nameZh":17,"description":231,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":232,"categories":233,"keywords":234,"publishedAt":52},"01M70JGBWHKMB7V6T7QWT6G5DQ","thread-mentor","Draft a teaching-register comment on a GitHub issue or PR thread on the\nconfigured `\u003Cupstream>` repo, aimed at a contributor missing context the\nmaintainer would spell out. Reads the thread, decides\nwhether an intervention is warranted, drafts one comment per the tone\nguide and convention pointers, and waits for explicit confirmation before\nposting via `gh`. Escalates on the four hand-off triggers.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-pr-management\u002Fskills\u002Fthread-mentor\u002FSKILL.md",[],[235,236,237,191,238,239,36,240,241,35,242,224,243,226,227,37,244,245,246,247],"thread mentor","mentor","thread","repro","confirmation","pr-management","contributor","number","teaching","config","drafts","flags","spell",{"skillNo":249,"name":250,"nameZh":17,"description":251,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":252,"categories":253,"keywords":254,"publishedAt":52},"01M70JF866SAVGXSSC33HRX4ZG","merge-candidates","Identify trivial, low-risk PRs in the `ready for maintainer review` queue\nof \u003Cupstream> that pass every quality gate and touch only supplementary\nareas (docs, changelog, translations, tests) — the \"express lane\".\nSurfaces and ranks candidates with per-PR diff summaries, an\nall-gates-green attestation, and the exact merge command. On explicit\nper-PR confirmation it can submit an APPROVE review, exactly as\npr-management-code-review does. It never merges itself — automated merge\nis the deliberately-deferred Agentic Autonomous mode.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-pr-management\u002Fskills\u002Fmerge-candidates\u002FSKILL.md",[],[255,256,50,257,258,49,259,260,191,261,262,263,47,264,239,36,240,265,266,267],"merge candidates","merge","quick","show","green","submit","churn","attestation","mode","autonomous","show me","agentic","code",{"skillNo":269,"name":270,"nameZh":271,"description":272,"descriptionZh":273,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":274,"categories":275,"keywords":282,"publishedAt":52},"01M6AD158PEPPPX9N33DASMRQ8","write-skill","Apache Magpie 技能编写与迁移","Write a new skill for the Apache Magpie framework, or bring an existing one up to current conventions. Scaffolds the directory, walks the house style and the prompt-injection defences, and validates before it ships.","为 Apache Magpie 框架编写新技能，或将现有技能更新至当前规范。它会搭建目录结构、引导遵循项目内部风格与提示注入防护措施，并在发布前进行验证。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-utilities\u002Fskills\u002Fwrite-skill\u002FSKILL.md",[276,279],{"categoryNo":277,"categoryName":278,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":280,"categoryName":281,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",[283,284,285,10,286,287,195,288,198,35,289,290,291,292,293,294,295,296,297,298],"write skill","write","create","directory","framework","up","optimize","authoring","injection","Utilities","new skill","magpie","add","existing skill","capability","bring",{"skillNo":300,"name":301,"nameZh":302,"description":303,"descriptionZh":304,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":305,"categories":306,"keywords":309,"publishedAt":52},"01M6AD1307G9B36HTAFY1KBJ5R","skill-reconciler","技能差异比对与协调","Compare two near-duplicate skills — typically an ASF variant and a\nnon-ASF or multi-project variant — and classify every difference as\nALLOWED, DRIFT, or SAFETY-BASELINE. Produces a structured diff and a\nreconciliation proposal; read-only, it never rewrites either skill.","比较两个高度相似的技能——通常是一个 ASF 变体与一个非 ASF 或多项目变体——并将每一处差异归类为 ALLOWED、DRIFT 或 SAFETY-BASELINE。生成结构化的差异对比和协调方案；该技能为只读，绝不重写任一技能。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-utilities\u002Fskills\u002Fskill-reconciler\u002FSKILL.md",[307,308],{"categoryNo":277,"categoryName":278,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":280,"categoryName":281,"taxonomyType":23,"taxonomyTypeDesc":24},[310,311,256,287,312,313,314,49,191,315,195,316,47,36,46,35,317,289,318,319,284],"skill reconciler","asf","near","reconciliation","proposal","same skill","variants","drift","classify","read"]