From oscal
Validates an OSCAL document (JSON, XML, or YAML) against the official NIST JSON schemas, reporting structural violations and required-field errors.
How this command is triggered — by the user, by Claude, or both
Slash command
/oscal:validateThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /oscal:validate
Validates an OSCAL document against the NIST JSON schemas bundled with `oscal-cli`. Supports JSON, XML, and YAML input (XML/YAML are auto-converted internally for validation).
## How to run
## Arguments
- `<file>` — path to the OSCAL document to validate.
- `--quiet` — only emit on failure.
- `--json` — structured JSON output `{ok: bool, errors: [...], schema_version: "1.1.3"}` for CI pipelines.
## What it validates
- JSON schema conformance (structural + type)
- Required fields present
- Enum values valid
- UUID format for all identifiers
- OSCAL version declared ...Validates an OSCAL document against the NIST JSON schemas bundled with oscal-cli. Supports JSON, XML, and YAML input (XML/YAML are auto-converted internally for validation).
bash plugins/oscal/scripts/validate.sh <file> [--quiet] [--json]
<file> — path to the OSCAL document to validate.--quiet — only emit on failure.--json — structured JSON output {ok: bool, errors: [...], schema_version: "1.1.3"} for CI pipelines.0 — valid6 — schema violation(s); details on stderr (or stdout JSON with --json)2 — file not found / unreadable5 — oscal binary not installed (run /oscal:setup)/oscal:validate gap-assessment-20260413/gap-report.oscal-ar
This checks that /grc-engineer:gap-assessment's OSCAL Assessment Results output is well-formed before handing it to downstream tooling (Compliance Trestle, eMASS, FedRAMP 20X).
oscal-cli resolve (coming in a future release) or Compliance Trestle for that.fedramp-ssp plugin and the fedramp-docs MCP for spec lookups.npx claudepluginhub shipstuff/claude-grc-engineering --plugin oscal/validateValidates an OSCAL document (JSON, XML, or YAML) against the official NIST JSON schemas, reporting structural violations and required-field errors.
/oscal-guideProvides OSCAL guidance on structure, readiness assessment, and conversion considerations. Also supports SSP, components, parameters, inheritance, tools, and validation topics.
/convertConverts FedRAMP Rev 5 SSP DOCX templates (main SSP + Appendix A) to validated OSCAL 1.2.0 SSP JSON.
/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).
/validate-controlValidates a control ID (e.g., CC6.1, AC-2) against frameworks like SOC2, PCI-DSS, ISO27001, or NIST by identifying requirements, designing/executing tests, and documenting results with pass/fail status, evidence, and exceptions.
/securityGenerates NCSC Cloud Security Principles assertions and evidence documentation for a G-Cloud service project, resolving the existing service and writing security posture documents.