agentleFS
oscal-compass-laboscal-compass-lab/compliance-trestle-skills/skills/trestle-workspace/SKILL.md

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

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
  1. Distinctive:

    Use Python 3.10-3.12. Compliance Trestle does not support Python 3.13 or later.

    line 14
  2. Very specific:

    Run trestle init to create the workspace.

    line 58
  3. Distinctive:

    Do not change file names or directory names that trestle creates.

    line 68
  4. Distinctive:

    Do not mix JSON and YAML in one model directory.

    line 69
  5. Very specific:

    Check if a workspace exists: Look for the .trestle/ directory.

    line 82
  6. Very specific:

    List models: Check subdirectories of model-type directories.

    line 83
  7. Very specific:

    Validate workspace: Run trestle validate -a to validate all models.

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 UserWarning on 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 models

Model Instance Layout

Each model instance is in its own subdirectory:

catalogs/
└── nist-800-53/
    └── catalog.json       # The actual OSCAL model file

Initialization Modes

Run trestle init to create the workspace. Three modes are available:

ModeFlagCreatesUse Case
Full--full (default).trestle/ + dist/ + all model dirsAll workspace features: local models, API, governed docs
Local--local.trestle/ + all model dirs (no dist/)Local OSCAL model management only
GovDocs--govdocs.trestle/ onlyDocument 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 -a to validate all models.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.