Fetch OSCAL Baseline

Fetch OSCAL Baseline is a command for Claude Code from oscal-compass-lab/compliance-trestle-skills. It costs 47 tokens per session (674 once invoked), scanned A, original, Apache-2.0.

A command that downloads the NIST SP 800-53 Rev. 5 security-control catalog and a FedRAMP Rev. 5 baseline profile. NIST SP 800-53 lists security controls, while FedRAMP baselines select controls for cloud services.

In plain words
What is it for?
It is for importing Low, Moderate, High, or LI-SaaS FedRAMP baseline data into a Compliance Trestle workspace.
Why use it?
It provides the real reference material needed to draft a System Security Plan against a chosen FedRAMP level.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash plugins/document-transform/oscal-document-workbench/scripts/fetch-oscal-baseline.sh <trestle-workspace> [--baseline low|moderate|high|li-saas] [--cache-dir.

Part of the oscal-document-workbench plugin — 1 skill, 8 commands shipped together

Good fit It is for importing Low, Moderate, High, or LI-SaaS FedRAMP baseline data into a Compliance Trestle workspace.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/oscal-compass-lab/compliance-trestle-skills
agentmods
npx agentmods add commands/oscal-compass-lab/compliance-trestle-skills/fetch-oscal-baseline

Made for: Claude Code.

Or install oscal-document-workbench, the plugin that ships this one along with the rest of its 1 skill, 8 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Fetch OSCAL Baseline

README.md
[![agentmods](https://agentmods.dev/badge/commands/oscal-compass-lab/compliance-trestle-skills/fetch-oscal-baseline/github.svg)](https://agentmods.dev/commands/oscal-compass-lab/compliance-trestle-skills/fetch-oscal-baseline)
Your own site
<a href="https://agentmods.dev/commands/oscal-compass-lab/compliance-trestle-skills/fetch-oscal-baseline"><img src="https://agentmods.dev/badge/commands/oscal-compass-lab/compliance-trestle-skills/fetch-oscal-baseline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Fetch OSCAL Baseline

Your own site · 80×15
<a href="https://agentmods.dev/commands/oscal-compass-lab/compliance-trestle-skills/fetch-oscal-baseline"><img src="https://agentmods.dev/badge/commands/oscal-compass-lab/compliance-trestle-skills/fetch-oscal-baseline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 674 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00674
Opus 5 $0.00023 $0.00337
Sonnet 5 $0.00009 $0.00135
Haiku 4.5 $0.00005 $0.00067

Measured 12d ago against content hash 50bad3158b87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

Fetch OSCAL Baseline scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `5` : missing dependency (`trestle`, `curl`) or download failure
plugins/document-transform/oscal-document-workbench/commands/fetch-oscal-baseline.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/oscal-document-workbench:fetch-oscal-baseline

Download the NIST SP 800-53 Rev 5 OSCAL catalog and a FedRAMP Rev 5 baseline profile. Cache them locally. Import both into a Compliance Trestle workspace.

How to run

bash plugins/document-transform/oscal-document-workbench/scripts/fetch-oscal-baseline.sh <trestle-workspace> [--baseline low|moderate|high|li-saas] [--cache-dir <dir>] [--overwrite]

Then draft the SSP against the real baseline:

bash plugins/document-transform/oscal-document-workbench/scripts/draft-ssp-from-extraction.sh <workspace> --baseline-profile fedramp-rev5-moderate --overwrite

Arguments

  • <trestle-workspace> : an initialized Trestle workspace (contains .trestle/).
  • --baseline <level> : FedRAMP Rev 5 baseline: low, moderate (default), high, or li-saas.
  • --cache-dir <dir> : download cache (default ~/.cache/oscal-baselines, override with OSCAL_BASELINE_CACHE).
  • --overwrite : replace existing imported catalog and profile models.
  • --skip-validate : skip post-import profile validation.

Sources

  • NIST SP 800-53 Rev 5 catalog: usnistgov/oscal-content on GitHub.
  • FedRAMP Rev 5 baseline profiles: OSCAL-Foundation/fedramp-resources on GitHub. See fedramp.gov Rev 5 documents and templates. OSCAL packages are managed through the FedRAMP automation GitHub ecosystem.

Override source URLs with OSCAL_NIST_CATALOG_URL and OSCAL_FEDRAMP_BASE_URL for mirrors or air-gapped environments. Pre-populate the cache directory when network egress is restricted.

Outputs

  • catalogs/nist-800-53-rev5/ : imported NIST catalog.
  • profiles/fedramp-rev5-<baseline>/ : imported FedRAMP profile with its import href rewritten to the local trestle catalog.
  • Cached downloads under the cache directory.

Exit codes

  • 0 : success
  • 2 : bad arguments or not a trestle workspace
  • 3 : import or validation failed
  • 5 : missing dependency (trestle, curl) or download failure

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 60 lines · 47 tokens per session scan A 50bad3158b87

Subscribe to this mod's changes

Fetch OSCAL Baseline is a command published in the GitHub repository oscal-compass-lab/compliance-trestle-skills (16 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 674 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.