ingest-cwe-taxonomies
Skill109 starsChanged 3 months agoMITView on GitHub
Ingest the official MITRE CWE database and generate per-domain security audit taxonomies for PromptKit. Use this skill when the user wants to update CWE taxonomies, ingest a new CWE version, or regenerate domain mappings from the CWE corpus.
In this repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- bootSkill
- bootstrapSkill
- promptkitSkill
- respond-to-pr-commentsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Read .github/prompts/ingest-cwe-taxonomies.prompt.md before doing anything else.
- Very specific: line 34
Ask the user for the CWE source (path or latest).
- Distinctive: line 35
Follow all six phases defined in the prompt file: Acquisition, Normalization, Domain Mapping, Taxonomy Generation, Integration, and …
- Distinctive: line 38
Do NOT skip the sanity checks in Phase 6.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Generated by PromptKit — edit with care -->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
latestto download the current release fromhttps://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.yamlwith new taxonomy entries - Reusable ingestion script at
scripts/ingest-cwe.py - Diff report if a previous CWE version exists
Workflow
- Read
.github/prompts/ingest-cwe-taxonomies.prompt.mdbefore doing anything else. - Ask the user for the CWE source (path or
latest). - Follow all six phases defined in the prompt file: Acquisition, Normalization, Domain Mapping, Taxonomy Generation, Integration, and Verification.
- Do NOT skip the sanity checks in Phase 6.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

