/compliance-trestle:workflow:data-import <file_or_url> [--type catalog|profile|component-definition|ssp]from compliance-trestle
Guides importing data into a trestle workspace, supporting native OSCAL imports and external format conversions (CSV, XLSX, XML, Tanium) with automatic detection, preview, and validation.
Ships in compliance-trestle. Installing the plugin adds it to Claude Code.
Run a guided data import workflow. This workflow handles native OSCAL imports. It also handles external-format conversions.
Check that you are in a trestle workspace. Look for a .trestle/ directory.
Read $ARGUMENTS for the source file path or URL and the optional --type flag.
If they are missing, ask the user:
Detect format: examine the source to set the import path:
Path A: native OSCAL (JSON or YAML with OSCAL top-level keys such as catalog, profile, component-definition, or system-security-plan):
--type was not specified.Path B: external format (requires conversion with trestle task):
.csv to csv-to-oscal-cd.xlsx / .xls: check content for CIS benchmark indicators:
cis-xlsx-to-oscal-cd or cis-xlsx-to-oscal-catalogxlsx-to-oscal-cd or xlsx-to-oscal-profile.xml: check for an XCCDF namespace:
xccdf-result-to-oscal-ar.json (non-OSCAL): check for Tanium format:
tanium-result-to-oscal-arIf the format is ambiguous, ask the user which path to follow.
Check source data:
Show import preview:
catalogs/<name>/catalog.json.Import or convert:
Path A: native OSCAL import:
trestle import -f <source_file> -o <model_name>
Path B: external format conversion:
.trestle/config.ini. Update an existing [task.<name>] section, or make a new one.trestle task <task_name>
Post-import validation: validate the result:
trestle validate -t <model_type> -n <model_name>
Or for task output:
trestle validate -f <output_file>
Report results:
/compliance-trestle:catalog-roundtrip to begin editing"/compliance-trestle:profile-roundtrip to customize control selections"/compliance-trestle:component-roundtrip to edit component controls"/compliance-trestle:ssp-roundtrip to author implementation responses"trestle import. It supports JSON and YAML OSCAL files.trestle task. It supports CSV, XLSX, XML (XCCDF), and Tanium JSON..trestle/config.ini for reuse.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub oscal-compass-lab/compliance-trestle-skills --plugin compliance-trestle41 commands in this plugin
/author:catalog-assembleStepsAssemble edited catalog markdown back into OSCAL JSON/author:catalog-generateStepsGenerate markdown from an OSCAL catalog for editing/author:component-assembleStepsAssemble edited component markdown back into OSCAL JSON/author:component-generateStepsGenerate markdown from an OSCAL component definition/author:docsStepsSet up and check governed markdown document structure with templates/author:foldersStepsSet up and check governed folder structure with templatesOther plugins' commands for the same job