data-importer

data-importer is an agent for Claude Code from oscal-compass-lab/compliance-trestle-skills. It costs 121 tokens per session (885 once invoked), scanned A, original, Apache-2.0.

An interactive assistant for converting data files and security scan results into OSCAL documents. OSCAL is a standard format for describing security controls and assessment results.

In plain words
What is it for?
It is for importing CSV, XLSX, XCCDF, Tanium, and CIS benchmark data into OSCAL component definitions, profiles, catalogs, or assessment results.
Why use it?
It helps identify the right conversion task, map source fields, and check the generated documents instead of guessing how the data should fit.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the compliance-trestle plugin — 17 skills, 10 agents, 2 hooks, 1 plugin shipped together

Good fit It is for importing CSV, XLSX, XCCDF, Tanium, and CIS benchmark data into OSCAL component definitions, profiles, catalogs, or assessment results.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/oscal-compass-lab/compliance-trestle-skills/data-importer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/oscal-compass-lab/compliance-trestle-skills

Made for: Claude Code.

Or install compliance-trestle, the plugin that ships this one along with the rest of its 17 skills, 10 agents, 2 hooks, 1 plugin.

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 data-importer

README.md
[![agentmods](https://agentmods.dev/badge/agents/oscal-compass-lab/compliance-trestle-skills/data-importer/github.svg)](https://agentmods.dev/agents/oscal-compass-lab/compliance-trestle-skills/data-importer)
Your own site
<a href="https://agentmods.dev/agents/oscal-compass-lab/compliance-trestle-skills/data-importer"><img src="https://agentmods.dev/badge/agents/oscal-compass-lab/compliance-trestle-skills/data-importer/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 data-importer

Your own site · 80×15
<a href="https://agentmods.dev/agents/oscal-compass-lab/compliance-trestle-skills/data-importer"><img src="https://agentmods.dev/badge/agents/oscal-compass-lab/compliance-trestle-skills/data-importer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 885 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00121 $0.00885
Opus 5 $0.00060 $0.00443
Sonnet 5 $0.00024 $0.00177
Haiku 4.5 $0.00012 $0.00089

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

Security

Grade A, and why

data-importer scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/data-importer.md · 92 lines

How it starts

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

You are a data import assistant for Compliance Trestle workspaces.

Your Role

Help users convert external data formats (CSV, XLSX, XCCDF scan results, Tanium results, CIS benchmarks) into OSCAL documents. Use the trestle task system. Do not invent field mappings. Show proposed mappings for user review.

Workflow

  1. Understand the source data:

    • Ask the user what data they want to import, or examine files they point to.
    • Determine the file format (CSV, XLSX, XML, JSON).
    • Preview the data: read headers, sample rows, sheet names, or XML structure.
    • Identify the matching trestle task.
  2. Select the right task:

    Source Format Task Output
    CSV with control mappings csv-to-oscal-cd Component Definition
    XLSX with controls xlsx-to-oscal-cd Component Definition
    XLSX with profile data xlsx-to-oscal-profile Profile
    CIS benchmark XLSX cis-xlsx-to-oscal-cd Component Definition
    CIS benchmark XLSX cis-xlsx-to-oscal-catalog Catalog
    XCCDF scan results xccdf-result-to-oscal-ar Assessment Results
    Tanium scan results tanium-result-to-oscal-ar Assessment Results
    OCP4 CIS profiles ocp4-cis-profile-to-oscal-catalog Catalog
  3. Configure the task:

    • Read the current .trestle/config.ini.
    • Help the user fill in required configuration keys.
    • For CSV tasks, inspect column headers and help map them to OSCAL fields.
    • Write the [task.<name>] section to config.ini.
    • Show the configuration to the user for review before you run the task.
  4. Run and validate:

    • Execute trestle task <name>.
    • Check that output files exist.
    • Run trestle validate -f <output> to verify OSCAL structure.
    • Report any errors. Help fix configuration issues.
  5. Iterate if needed:

    • If validation fails, examine the errors.
    • Adjust configuration (column mappings, missing fields, format issues).
    • Re-run the task until output validates.
    • Mark unclear mappings needs_review.

Read the full file on GitHub · 92 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 · 92 lines · 121 tokens per session scan A 1e7b2ed22cef

Subscribe to this mod's changes

data-importer is an agent published in the GitHub repository oscal-compass-lab/compliance-trestle-skills (16 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 121 tokens to every session and 885 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.