/compliance-trestle:trestle-oscal-modelsfrom compliance-trestle
Defines OSCAL model types (catalog, profile, SSP, etc.), their relationships, and how Compliance Trestle manages them. Models the catalog-to-SSP chain and dot-notation element paths.
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.
| Model Type | CLI Name | Directory | Description |
|---|---|---|---|
| Catalog | catalog | catalogs/ | Set of security controls. Example: NIST 800-53 |
| Profile | profile | profiles/ | Selection and change of controls from catalogs |
| Component Definition | component-definition | component-definitions/ | How a component implements controls |
| System Security Plan | system-security-plan | system-security-plans/ | Full system security documentation |
| Assessment Plan | assessment-plan | assessment-plans/ | Plan for assessment of security controls |
| Assessment Results | assessment-results | assessment-results/ | Results of a security assessment |
| POA&M | plan-of-action-and-milestones | plan-of-action-and-milestones/ | Remediation tracking |
Catalog (controls)
↓ imports
Profile (selects + modifies controls)
↓ resolved profile catalog
Component Definition (how components implement controls)
↓ combined
System Security Plan (complete system documentation)
↓ assessed by
Assessment Plan → Assessment Results → POA&M
A profile can import from:
Each import selects specific controls. An import can change parameters. An import can add content.
All models share:
uuid: Unique identifiermetadata: Title, version, last-modified, oscal-version, roles, partiesback-matter: Resources, citations, attachments.json.yaml or .ymlTrestle uses dot-notation to address elements within models:
catalog.metadata: The metadata of a catalogcatalog.groups.*.controls.*: All controls in all groupscatalog.groups.0.controls.3: Specific control (0-indexed)Rules:
* wildcard for arrays. Quote it on *nix shells.catalog.controls.control = catalog.groups.controls.control| Operation | Command | Description |
|---|---|---|
| Create | trestle create -t <type> -o <name> | Create a sample model with placeholder fields |
| Import | trestle import -f <file> -o <name> | Import an existing OSCAL file |
| Split | trestle split -f <file> -e <elements> | Split into sub-files |
| Merge | trestle merge -e <elements> | Reassemble split files |
| Describe | trestle describe -f <file> -e <element> | Inspect model structure |
| Validate | trestle validate -f <file> or -t <type> -n <name> or -a | Check model integrity |
| Assemble | trestle assemble <type> -n <name> | Combine split parts into dist/ |
| Replicate | trestle replicate <type> -n <name> -o <new> | Copy or rename a model |
trestle assemble vs trestle author *-assembleThese two commands are different. Do not confuse them:
| Command | Input | Purpose |
|---|---|---|
trestle assemble <type> -n <name> | Split JSON/YAML sub-files | Combine files created by trestle split into one model in dist/ |
trestle author <model>-assemble (examples: ssp-assemble, catalog-assemble) | Edited markdown directory | Convert authored markdown back into an OSCAL JSON model |
If you generated markdown with trestle author ssp-generate, assemble it with
trestle author ssp-assemble --markdown <md_dir> --output <ssp_name>.
The generic trestle assemble command does not work on that markdown.
Each OSCAL model type has a primary owner persona. That persona authors and maintains the model:
| Model Type | Primary Persona | Trestle Commands | Notes |
|---|---|---|---|
| Catalog | Regulators | catalog-generate, catalog-assemble | Source of truth for controls |
| Profile | Compliance Officers / CISO | profile-generate, profile-assemble | Tailored baselines with org guidance |
| Component Definition (Service) | Control Providers (vendors) | csv-to-oscal-cd, component-generate/assemble | Maps controls to product rules |
| Component Definition (Validation) | Control Assessors (PVP vendors) | csv-to-oscal-cd (with Check_Id) | Maps rules to automated checks |
| System Security Plan | System Owners / CIO | ssp-generate, ssp-assemble | Combines profile + compdefs |
| Assessment Plan | Assessors / CISO | create, split, merge | Defines assessment scope |
| Assessment Results | Assessors / PVP tools | xccdf-result-to-oscal-ar, tanium-result-to-oscal-ar | Scan findings |
| POA&M | System Owners | create, split, merge | Remediation tracking |
In real organizations, one person can fill more than one persona role. The ownership map is logical. It supports separation of duties. It does not require one person per artifact.
The component definition is a bridge in the OSCAL model chain. It connects regulatory controls (governance layer) to automated assessment (technical layer). It uses two distinct component types:
Service components declare which technology-specific rules implement a regulation control:
rule-account-types) --> Parameter (example: timeout=15min)csv-to-oscal-cd with Component_Type=Service).component-generate / component-assemble).Validation components declare which PVP checks validate a rule:
rule-account-types) --> Check_Id (example: test_github.GitHubOrgs.test_members_is_not_empty)csv-to-oscal-cd with Component_Type=Validation and a Check_Id column).Together, the two layers create the full compliance automation chain:
Regulation Control (NIST AC-2)
--> Service Rule (rule-account-types)
--> Validation Check (test_github.GitHubOrgs.test_members)
--> Assessment Result (pass/fail)
--> Control Posture (satisfied/not-satisfied)
This chain supports automated posture computation. Start from PVP results. Map back through component definitions. Then get the control-level status.
For full pipeline details, see the trestle-compliance-pipeline skill.
trestle author *-assemble commandsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub oscal-compass-lab/compliance-trestle-skills --plugin compliance-trestle11 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-authoring-workflowUse this skill for the Compliance Trestle authoring workflow. The workflow is the generate-edit-assemble cycle that converts OSCAL documents to markdown and back. Use it for authoring catalogs, profiles, SSPs, or component definitions. Use it for editing control markdown, YAML headers, or the roundtrip workflow between JSON and markdown./trestle-Other plugins' skills for the same job