generate-cve-json

generate-cve-json is a skill for Claude Code from apache/magpie. It costs 131 tokens per session (6,941 once invoked), scanned A, original, Apache-2.0.

A tool for turning a security tracking issue into a CVE 5.x JSON document. CVE is the public system used to identify and describe software vulnerabilities, and the document is prepared for the Apache Software Foundation's Vulnogram tool.

In plain words
What is it for?
It helps prepare vulnerability records with credits and references in the required CVE JSON format for pasting into Vulnogram.
Why use it?
It removes repetitive copying of issue fields into the CVE form while keeping the result deterministic. The generated document still needs human review before publication.

Skill for Claude Code ✓ vendor

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions AGENTS.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [`bot-credits-policy.md`](../bot-credits-policy.md) for the.

Part of the magpie plugin — 72 skills shipped together

Good fit It helps prepare vulnerability records with credits and references in the required CVE JSON format for pasting into Vulnogram.

Compare 6 skills from other repositories ↓
About the project

Apache Magpie is a framework of agent-assisted workflows for maintaining Apache software projects, including issue triage, pull-request review, contributor mentoring, and security-report handling. Apache maintainers and developers use it to delegate repetitive project work to coding agents while retaining human review. Its catalogue entries are the skills, instructions, plugin, and settings that implement these workflows.

apache/magpie · 87 stars · on GitHub · magpie.apache.org

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/apache/magpie
agentmods
npx agentmods add skills/apache/magpie/generate-cve-json

Made for: Claude Code.

Or install magpie, the plugin that ships this one along with the rest of its 72 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-cve-json

README.md
[![agentmods](https://agentmods.dev/badge/skills/apache/magpie/generate-cve-json.svg)](https://agentmods.dev/skills/apache/magpie/generate-cve-json)
Your own site
<a href="https://agentmods.dev/skills/apache/magpie/generate-cve-json"><img src="https://agentmods.dev/badge/skills/apache/magpie/generate-cve-json.svg" alt="Measured on agentmods" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00131 $0.06941
Opus 5 $0.00066 $0.03470
Sonnet 5 $0.00026 $0.01388
Haiku 4.5 $0.00013 $0.00694

Measured 3d ago against content hash 43ab4113b80f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

generate-cve-json scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (src/generate_cve_json/__init__.py, src/generate_cve_json/__main__.py, src/generate_cve_json/cve_json.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/cve-tool-vulnogram/generate-cve-json/SKILL.md · 567 lines

How it starts

The opening of the file, as written. The whole thing — 567 lines — stays where its author put it; the contents beside it link to each section on GitHub.

generate-cve-json

This skill produces a CVE 5.x JSON document from a tracking issue in <tracker>, ready to paste into the Vulnogram "#source" tab of the ASF CVE tool. The goal is to eliminate the manual "copy each field from the issue into the right Vulnogram form input" step when you are preparing to publish an advisory.

Project-agnostic by design. All project-specific values (vendor, top-level product / package name, project display map, CNA org id, generator tag, …) are loaded from a TOML config the adopting project ships at <project-config>/tools/cve-tool-vulnogram/cve-json-config.toml. Concrete apache-foo-project-* strings appearing in this document are illustrative examples of how a project with a project-style package layout would configure things; replace them mentally with the adopter's own package taxonomy. The schema is documented in the package README.

Golden rule: the script generates a proposal JSON document. It parses a handful of structured fields from the issue body, but it cannot read the security team member's mind. Always review the generated JSON before pasting, and always do the final review inside Vulnogram before moving the CVE from DRAFT → REVIEW → READY → PUBLIC.

Release-vote gating (opt-in, recommended for ASF projects). The emitted CNA_private.state follows a tri-state state machine:

  • DRAFT — the CNA is incomplete or the project has opted into release-vote gating and no vote is in progress yet.
  • REVIEW — the CNA is review-ready (CVE ID + title + description + affected versions + CWE + severity + ≥ 1 credit + ≥ 1 reference) and either the project hasn't opted into gating (legacy: ready ⇒ REVIEW) or an RC vote is in progress (signalled by the configured tracker label or a --review CLI flag).
  • PUBLIC — the CNA is review-ready and the public advisory has shipped (a vendor-advisory reference is present).

Projects opt into gating by setting [workflow].release_vote_gating = true in their cve-json-config.toml and choosing the label name via [workflow].rc_voting_label (default "rc voting"). The sync skill is responsible for detecting [VOTE] threads on the project's dev list (e.g. dev@<project>.apache.org) and proposing the label add/remove; the generator only reads the label on the tracker. Non- ASF adopters who publish advisories without a separate release-vote step typically leave gating off — the legacy "ready ⇒ REVIEW" behaviour is the right default for that workflow.

Determinism: the same input issue body produces exactly the same JSON bytes on every run. The script uses only the Python standard library, has no timestamps or machine-dependent values in its output, sorts JSON keys, and sorts references alphabetically. This lets you paste the result into Vulnogram, tweak fields in the tool, re-run the script later, and cleanly diff the two to see what the tool has added / what you changed by hand.


Read the full file on GitHub · 567 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 567 lines · 131 tokens per session scan A 43ab4113b80f

Subscribe to this mod's changes

generate-cve-json is a skill published in the GitHub repository apache/magpie (87 stars, last pushed 5d ago), licensed Apache-2.0. It adds 131 tokens to every session and 6,941 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

security-compliance

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding security throughout the SDLC.

sangrokjung/claude-forge · 56 tokens

contract-clause-extractor

Extract and analyze key clauses from construction contracts. Identify payment terms, change order procedures, dispute resolution, warranties, and risk allocation provisions.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 33 tokens

safety-inspection-checklist

Digital safety inspection checklists for construction sites. Generate, conduct, and track safety inspections with automated reporting and compliance monitoring.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 31 tokens

lien-waiver-tracker

Track and manage construction lien waivers. Monitor conditional and unconditional waivers, ensure compliance before payments, and prevent lien exposure.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 32 tokens

ai-policy-generator

AI governance policy creation for nonprofits and enterprises with frameworks, risk assessment, ethical guidelines, and compliance templates. Use when drafting AI usage policies, responsible AI frameworks, or organizational AI governance documents.

travisjneuman/.claude · 42 tokens

compliance-engineering

SOC2, HIPAA, GDPR, PCI-DSS, FedRAMP compliance implementation in code. Audit logging, data encryption, access controls, privacy by design, and regulatory requirement mapping. Use when implementing compliance controls, preparing for audits, or building privacy-compliant systems.

travisjneuman/.claude · 60 tokens