/compliance-trestle:trestle-authoring-workflowfrom compliance-trestle
Guides the generate-edit-assemble cycle for authoring OSCAL compliance documents (catalogs, profiles, SSPs, component definitions) as markdown with YAML headers, then assembling back to JSON.
Ships in compliance-trestle. 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.
Trestle authoring tools convert OSCAL JSON to markdown for human editing. Then they convert markdown back to JSON:
JSON (OSCAL) → generate → Markdown (edit) → assemble → JSON (OSCAL)
This cycle continues. After the first generate, edit markdown and assemble again.
trestle author catalog-generate --name <catalog> --output <md_dir> → markdown per controltrestle author catalog-assemble --markdown <md_dir> --output <catalog> → JSON catalogtrestle author profile-generate --name <profile> --output <md_dir> → markdown with profile additionstrestle author profile-assemble --markdown <md_dir> --output <profile> → JSON profiletrestle author profile-resolve --name <profile> --output <resolved> → resolved profile catalogtrestle author component-generate --name <compdef> --output <md_dir> → markdown per component/controltrestle author component-assemble --markdown <md_dir> --output <compdef> → JSON component-definitiontrestle author ssp-generate --profile <profile> --compdefs <comp1,comp2> --output <md_dir> → markdown per controltrestle author ssp-assemble --markdown <md_dir> --output <ssp> → JSON SSPtrestle author ssp-filter --name <ssp> --profile <profile> --output <filtered> → filtered SSPEach control gets its own .md file with:
# control-id - [Group Title] Control Title## Control Statement with labeled parts## Control guidance| Tag | Purpose |
|---|---|
x-trestle-set-params | Parameter values for the control |
x-trestle-global | Global metadata (sort-id, profile title) |
x-trestle-sections | Map of section short names to display names |
x-trestle-add-props | Properties to add to the control |
x-trestle-comp-def-rules | Rules from component definitions |
x-trestle-comp-def-rules-param-vals | Rule parameter values |
x-trestle-inherited-props | Properties inherited from upstream |
x-trestle-leveraging-comp | Leveraged component information |
x-trestle-statement | Statement-level metadata |
In catalog markdown (x-trestle-set-params):
x-trestle-set-params:
ac-1_prm_1:
values:
- organization-defined value
label: descriptive label
In profile markdown (adds profile-values):
x-trestle-set-params:
ac-1_prm_1:
values:
- catalog value
profile-values:
- profile-specific value
In SSP markdown (adds ssp-values):
x-trestle-set-params:
ac-1_prm_1:
values:
- resolved value
ssp-values:
- ssp-specific value
| Option | Commands | Purpose |
|---|---|---|
--set-parameters | catalog-assemble, profile-assemble | Apply parameter changes from YAML header |
--overwrite-header-values | all -generate | Overwrite existing header values with provided YAML |
--force-overwrite | all -generate | Erase existing markdown before regenerating |
--yaml / -y | all -generate | Provide external YAML header to merge |
--version | all -assemble | Set version in assembled model |
--regenerate | all -assemble | Generate new UUIDs |
--sections | profile-assemble | Define allowed sections |
--required-sections | profile-assemble | Sections that must be present |
--compdefs | ssp-generate | Comma-separated component definitions |
Controls track implementation status with these values:
implemented: Fully implementedpartial: Partially implementedplanned: Implementation is plannedalternative: Alternative implementationnot-applicable: Control is not applicableorganization: Organization-levelsystem-specific: System-specificcustomer-configured: Customer configuredcustomer-provided: Customer providedinherited: Inherited from another systemUse the authoring tools in CI/CD pipelines:
--set-parameters limits what can change during automated assembly.--required-sections and --allowed-sections check document structure.Large organizations split OSCAL artifacts across multiple Git repositories. The split follows ownership boundaries. Trestle authoring tools support this through CI/CD-driven propagation.
catalog-repo (Regulators)
|
v imports
profile-repo (Compliance Officers)
|
v references
compdef-repo (Vendors / Control Providers)
|
v combined into
ssp-repo (System Owners)
Each repository contains its own trestle workspace (.trestle/ directory).
Each repository manages artifacts independently with its own CI/CD pipeline.
When an upstream artifact changes:
trestle author *-assemble to rebuild OSCAL JSON.This pattern uses repository_dispatch events (GitHub Actions) or cross-project triggers
(GitLab CI) to connect repositories.
| Factor | Single Repo | Multi-Repo |
|---|---|---|
| Team size | Small (1-5 people) | Multiple teams or organizations |
| Ownership | Same team owns all artifacts | Different teams own different artifacts |
| Release cadence | Artifacts change together | Independent versioning needed |
| Access control | Same permissions for all | Different access per artifact type |
| Complexity | Simpler setup and maintenance | Clearer ownership split |
Start with a single repo. Split when ownership boundaries emerge or when independent versioning is required.
Component definitions combine structured rule data with narrative prose. Trestle supports a two-phase authoring pattern. Use the best tool for each type of content.
# CSV contains structured mappings: rules, parameters, control associations
trestle task csv-to-oscal-cd
The CSV captures:
Rule_Id, Rule_Description: the technical ruleControl_Id_List: which regulation controls this rule implementsParameter_Id, Parameter_Value_Alternatives: configurable parametersComponent_Type: Service (control-to-rule) or Validation (rule-to-check)Vendors manage this CSV in spreadsheet tools.
It is committed to Git.
The csv-to-oscal-cd task converts it to OSCAL JSON.
# Generate markdown from the Phase 1 component definition
trestle author component-generate --name my-service --output md_compdefs/my-service
# Markdown shows rules (read-only) + editable prose sections
# Edit: write implementation descriptions per control per component
# Then reassemble
trestle author component-assemble --markdown md_compdefs/my-service --output my-service
The markdown includes:
implemented, partial, planned, and related values)Trestle authoring tools support Git-based collaboration with CI/CD automation.
trestle validate on the PR to catch errors early.trestle author *-assemble to rebuild OSCAL JSON.Assemble commands write output only if content changed. This prevents:
| Branch | Protection | Who Can Merge |
|---|---|---|
main | Require PR review + CI/CD pass | Artifact owner (per persona) |
| Feature branches | No protection | Any contributor |
Individual control markdown files support fine-grained git tracking. Reviewers can see which controls changed in a PR diff.
Not all OSCAL models have trestle author generate or assemble commands.
The following models use a JSON-based workflow instead:
| Model | trestle author Support | Workflow |
|---|---|---|
| Catalog | catalog-generate / catalog-assemble | Markdown roundtrip |
| Profile | profile-generate / profile-assemble | Markdown roundtrip |
| Component Definition | component-generate / component-assemble | Markdown roundtrip |
| SSP | ssp-generate / ssp-assemble | Markdown roundtrip |
| Assessment Plan | None | create → split → edit → merge → validate |
| Assessment Results | None | create → split → edit → merge → validate |
| POA&M | None | create → split → edit → merge → validate |
For assessment plans, assessment results, and POA&M:
# 1. Create a new model with placeholder fields
trestle create -t <model-type> -o <name>
# 2. Split into editable sections
trestle split -f <model-file>.json -e '<model-type>.<element1>,<model-type>.<element2>'
# 3. Edit the resulting JSON files directly
# 4. Merge sections back together
trestle merge -e '<model-type>.<element1>,<model-type>.<element2>'
# 5. Validate the final model
trestle validate -t <model-type> -n <name>
For detailed workflows, see the trestle-assessment skill (assessment plans and results) and the trestle-poam skill (plan of action and milestones).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/trestle-assessmentUse this skill for OSCAL assessment plans and assessment results models in Compliance Trestle. Use it for assessment plans, assessment results, security assessments, SAP, SAR, assessment activities, findings, observations, or assessment-related OSCAL models./trestle-compliance-pipelineUse this skill for end-to-end compliance pipelines with Compliance Trestle. Topics include GRC personas, artifact ownership, multi-repository coordination, two-phase component definition authoring, CI/CD pipeline integration, and the Compliance-to-Policy (C2P) bridge. Use it for compliance pipelines, personas, artifact ownership, multi-repo workflows, component definition dual-mapping (control-to-rule, rule-to-check), C2P, or end-to-end workflow design./trestle-npx claudepluginhub oscal-compass-lab/compliance-trestle-skills --plugin compliance-trestleOther plugins' skills for the same job