ingest-cwe-taxonomies

ingest-cwe-taxonomies is a skill for Claude Code, Codex from microsoft/PromptKit. It costs 55 tokens per session (342 once invoked), scanned A, original, MIT.

A workflow for importing the official MITRE CWE database and producing security taxonomies for PromptKit. CWE, or Common Weakness Enumeration, is a public catalog of common software security weaknesses.

In plain words
What is it for?
Use it to update CWE data, map weaknesses to PromptKit domains, generate taxonomy files and manifests, maintain the ingestion script, and run the required verification checks.
Why use it?
It turns a new CWE release into the project’s domain-specific files and records what changed, avoiding manual conversion and inconsistent mappings.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to update CWE data, map weaknesses to PromptKit domains, generate taxonomy files and manifests, maintain the ingestion script, and run the required verification checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/promptkit/ingest-cwe-taxonomies
About the project

PromptKit is a version-controlled library of reusable prompt components for engineering work, including personas, reasoning protocols, output formats, and task templates. Engineers use it to create repeatable prompts for activities such as specification work, debugging, code review, security audits, and change management across multiple engineering fields. The catalogue add-ons provide agent workflows for using this prompt-engineering system.

microsoft/PromptKit · 104 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add microsoft/PromptKit --skill ingest-cwe-taxonomies
Clone the repo
git clone --depth 1 https://github.com/microsoft/PromptKit

Made for: Claude Code, Codex.

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 ingest-cwe-taxonomies

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/promptkit/ingest-cwe-taxonomies/github.svg)](https://agentmods.dev/skills/microsoft/promptkit/ingest-cwe-taxonomies)
Your own site
<a href="https://agentmods.dev/skills/microsoft/promptkit/ingest-cwe-taxonomies"><img src="https://agentmods.dev/badge/skills/microsoft/promptkit/ingest-cwe-taxonomies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ingest-cwe-taxonomies

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/promptkit/ingest-cwe-taxonomies"><img src="https://agentmods.dev/badge/skills/microsoft/promptkit/ingest-cwe-taxonomies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 342 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.00342
Opus 5 $0.00028 $0.00171
Sonnet 5 $0.00011 $0.00068
Haiku 4.5 $0.00006 $0.00034

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

Security

Grade A, and why

ingest-cwe-taxonomies 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 10d ago.

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.

.github/skills/ingest-cwe-taxonomies/SKILL.md · 39 lines

What it actually says

You must read and execute the prompt file at .github/prompts/ingest-cwe-taxonomies.prompt.md. Treat it as the complete, self-contained instruction set for the CWE ingestion pipeline.

Inputs

  • CWE source: A local path to a CWE XML file, or latest to download the current release from https://cwe.mitre.org/data/xml/cwec_latest.xml.zip.
  • Any overrides to the domain registry or mapping rules the user specifies.

Output

  • Per-domain taxonomy files at taxonomies/cwe-<domain>.md (13 domains)
  • Normalized CWE data at data/cwe/<version>/
  • Updated manifest.yaml with new taxonomy entries
  • Reusable ingestion script at scripts/ingest-cwe.py
  • Diff report if a previous CWE version exists

Workflow

  1. Read .github/prompts/ingest-cwe-taxonomies.prompt.md before doing anything else.
  2. Ask the user for the CWE source (path or latest).
  3. Follow all six phases defined in the prompt file: Acquisition, Normalization, Domain Mapping, Taxonomy Generation, Integration, and Verification.
  4. Do NOT skip the sanity checks in Phase 6.
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. 10d ago First seen · 39 lines · 55 tokens per session scan A e552aacf539d

Subscribe to this mod's changes

ingest-cwe-taxonomies is a skill published in the GitHub repository microsoft/PromptKit (104 stars, last pushed 21d ago), licensed MIT. It adds 55 tokens to every session and 342 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories