trestle-workspace
Skill16 starsChanged 4 months agoApache-2.0View on GitHub
Use this skill for Compliance Trestle workspace structure, init, and directory conventions. Use it for trestle workspaces, directory layout, .trestle config, and model directories. Use it to set up and organize an OSCAL compliance workspace.
- Installs packages
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/compliance-trestle.mdcCursor rule
- .cursor/rules/oscal-json-edit.mdcCursor rule
- .cursor/rules/oscal-workspace-guardrails.mdcCursor rule
- import-legacy-sspSkill
- review-oscal-mappingsSkill
- validate-oscal-packageSkill
- workspace-validateSkill
- trestle-assessmentSkill
- trestle-authoring-workflowSkill
- trestle-compliance-pipelineSkill
- trestle-control-implementationSkill
- trestle-governanceSkill
- trestle-jinja-templatingSkill
- trestle-oscal-modelsSkill
- trestle-poamSkill
- trestle-task-systemSkill
- trestle-validationSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use Python 3.10-3.12. Compliance Trestle does not support Python 3.13 or later.
- Very specific: line 58
Run trestle init to create the workspace.
- Distinctive: line 68
Do not change file names or directory names that trestle creates.
- Distinctive: line 69
Do not mix JSON and YAML in one model directory.
- Very specific: line 82
Check if a workspace exists: Look for the .trestle/ directory.
- Very specific: line 83
List models: Check subdirectories of model-type directories.
- Very specific: line 84
Validate workspace: Run trestle validate -a to validate all models.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Trestle Workspace Management
Prerequisites
- Use Python 3.10-3.12. Compliance Trestle does not support Python 3.13 or later.
- Python 3.14 and later print a Pydantic V1
UserWarningon every trestle command. The warning is expected on unsupported versions. Python 3.11 and 3.12 do not print it. - Install Compliance Trestle:
pip install compliance-trestle
Workspace Structure
A trestle workspace is a fixed directory layout for OSCAL compliance documents. The layout is similar to a git repository.
Core Directories
.
├── .trestle/ # Config dir (config.ini, cache, templates)
├── dist/ # Assembled output files
│ ├── catalogs/
│ ├── profiles/
│ ├── component-definitions/
│ ├── system-security-plans/
│ ├── assessment-plans/
│ ├── assessment-results/
│ └── plan-of-action-and-milestones/
├── catalogs/ # Catalog source models
├── profiles/ # Profile source models
├── component-definitions/ # Component definition source models
├── system-security-plans/ # SSP source models
├── assessment-plans/ # Assessment plan source models
├── assessment-results/ # Assessment results source models
└── plan-of-action-and-milestones/ # POA&M source modelsModel Instance Layout
Each model instance is in its own subdirectory:
catalogs/
└── nist-800-53/
└── catalog.json # The actual OSCAL model fileInitialization Modes
Run trestle init to create the workspace. Three modes are available:
| Mode | Flag | Creates | Use Case |
| Full | --full (default) | .trestle/ + dist/ + all model dirs | All workspace features: local models, API, governed docs |
| Local | --local | .trestle/ + all model dirs (no dist/) | Local OSCAL model management only |
| GovDocs | --govdocs | .trestle/ only | Document governance only |
Key Rules
- Do not change file names or directory names that trestle creates.
- Do not mix JSON and YAML in one model directory.
- The
.trestle/directory holds config files, caches, and templates. - The
dist/directory holds assembled and merged output files. - Model files can be JSON (
.json) or YAML (.yaml,.yml). - The default format is JSON. YAML support is limited.
Configuration
The workspace config is at .trestle/config.ini.
It stores task settings and other settings for trestle commands.
Common Operations
- Check if a workspace exists: Look for the
.trestle/directory. - List models: Check subdirectories of model-type directories. Example:
catalogs/*/catalog.json. - Validate workspace: Run
trestle validate -ato validate all models.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

