From oscal
Converts OSCAL documents between JSON, XML, and YAML formats with round-trip fidelity. Auto-detects input format from file extension or content.
How this command is triggered — by the user, by Claude, or both
Slash command
/oscal:convertThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /oscal:convert Converts an OSCAL document between JSON, XML, and YAML. The input format is auto-detected from file extension or content. ## How to run ## Arguments - `<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 ## Example ## Round-trip fidelity `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 ...
Converts an OSCAL document between JSON, XML, and YAML. The input format is auto-detected from file extension or content.
bash plugins/oscal/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/grc-engineer:gap-assessment --output=oscal-ar into OSCAL SAR consumers that only speak XML.npx claudepluginhub abnejllc/grc --plugin oscal3plugins reuse this command
First indexed Apr 17, 2026
/convertConverts OSCAL documents between JSON, XML, and YAML formats with round-trip fidelity. Auto-detects input format from file extension or content.
/convertConverts FedRAMP Rev 5 SSP DOCX templates (main SSP + Appendix A) to OSCAL 1.2.0 SSP JSON with optional validation.
/oscal-guideProvides OSCAL guidance on structure, readiness assessment, and conversion. Supports topics like overview, SSP, components, parameters via optional topic argument.
/ssp-section-generateGenerates System Security Plan (SSP) sections for NIST 800-53 controls by ID or family, using FedRAMP/NIST/DoD/custom templates. Supports Markdown/DOCX/YAML formats and evidence inclusion.
/documentationProvides StateRAMP ATO package documentation guidance for SSP, SAP, SAR, POA&M. Optional args: document type (ssp/sap/sar/poam/all), impact level (low/moderate).
/caiq-generateGenerates CSA CAIQ questionnaire responses for cloud security assessments. Supports v4.0/lite versions, markdown/json/excel/csv formats, and full/draft/template modes.