/oscal:convertfrom oscal
Converts OSCAL security documents between JSON, XML, and YAML with round-trip fidelity. Useful for GRC tool integration and human review.
Ships in oscal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Converts an OSCAL document between JSON, XML, and YAML. The input format is auto-detected from file extension or content.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/convert.sh" <input> --to <json|xml|yaml> [--output <path>] [--overwrite]
<input> — path to OSCAL document--to <fmt> — target format: json, xml, or yaml--output <path> — write to this path (otherwise stdout)--overwrite — allow overwriting an existing output file# NIST publishes the 800-53 catalog as XML; convert to JSON for programmatic use:
curl -LO https://raw.githubusercontent.com/usnistgov/oscal-content/main/nist.gov/SP800-53/rev5/xml/NIST_SP-800-53_rev5_catalog.xml
/oscal:convert NIST_SP-800-53_rev5_catalog.xml --to json --output nist-catalog.json
# Round-trip to YAML for human review:
/oscal:convert nist-catalog.json --to yaml --output nist-catalog.yaml
# Convert gap-assessment output to XML for Compliance Trestle import:
/oscal:convert gap-report.oscal-ar --to xml --output gap-report.xml
oscal-cli preserves all semantic content across format conversions. Whitespace and ordering may differ but the deserialized model is byte-equivalent. This is verified by the underlying tool's round-trip tests.
0 — success2 — input file missing or unreadable5 — oscal binary not installed6 — input is not a recognized OSCAL document/engineer:gap-assessment --output=oscal-ar into OSCAL SAR consumers that only speak XML.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub grcengclub/claude-grc-engineering --plugin oscal4 skills in this plugin
/oscal-expertExpertise on OSCAL (Open Security Controls Assessment Language) — what document types exist, when to use each, schema versioning, FedRAMP/eMASS/CSPM integration, round-trip workflows./setupInstall the oscal-cli Go binary and register it with the plugin. Idempotent./validateValidate an OSCAL document (catalog, profile, SSP, SAP, SAR, POA&M, component definition, assessment results) against the official JSON schemas.Other plugins' skills for the same job