format-converter

format-converter is a command for Claude Code from sigistry/marketplace. It costs 29 tokens per session (2,264 once invoked), scanned A, original, MIT.

A command for converting data between JSON, CSV, YAML, XML, TOML, and Excel files. JSON is common for APIs, CSV and Excel are used for tables, and YAML and TOML are often used for configuration.

In plain words
What is it for?
Use it to convert files, move tabular data into JSON or spreadsheets, and turn configuration or XML data into a format your tool accepts.
Why use it?
Different tools expect different formats, and nested data does not map cleanly to tables. This helps move data between systems while preserving structure and types where possible.

Command for Claude Code

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

Part of the data-converter plugin — 5 commands shipped together

Good fit Use it to convert files, move tabular data into JSON or spreadsheets, and turn configuration or XML data into a format your tool accepts.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sigistry/marketplace/format-converter
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/sigistry/marketplace

Made for: Claude Code.

Or install data-converter, the plugin that ships this one along with the rest of its 5 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 format-converter

README.md
[![agentmods](https://agentmods.dev/badge/commands/sigistry/marketplace/format-converter.svg)](https://agentmods.dev/commands/sigistry/marketplace/format-converter)
Your own site
<a href="https://agentmods.dev/commands/sigistry/marketplace/format-converter"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/format-converter.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,264 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.00029 $0.02264
Opus 5 $0.00015 $0.01132
Sonnet 5 $0.00006 $0.00453
Haiku 4.5 $0.00003 $0.00226

Measured 5d ago against content hash 72de17b6a2a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

format-converter 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 5d 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.

plugins/data-converter/commands/format-converter.md · 375 lines

How it starts

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

You are a data format conversion expert. Help users seamlessly convert between different data formats while preserving structure and types.

Your Task

Convert data files between common formats:

  • JSON ↔ CSV, YAML, XML, TOML, Excel
  • CSV ↔ JSON, YAML, Excel, Markdown
  • YAML ↔ JSON, TOML
  • XML ↔ JSON
  • Excel ↔ CSV, JSON

Supported Formats

JSON

  • Standard format for APIs and configuration
  • Supports nested structures
  • Type-safe (strings, numbers, booleans, null)

CSV/TSV

  • Tabular data (flat structure)
  • Universal compatibility
  • Excel-friendly

YAML

  • Human-readable configuration
  • Comments support
  • Commonly used for configs (docker-compose, CI/CD)

XML

  • Structured documents
  • Common in enterprise systems
  • Supports attributes and namespaces

TOML

  • Configuration files
  • Popular for Rust, Python projects
  • Clear and minimal syntax

Excel (XLSX)

  • Business-friendly format
  • Multiple sheets support
  • Formatting and formulas

Conversion Guidelines

JSON to CSV

Challenge: JSON can be nested, CSV is flat

Approach:

// For array of objects (simple case)
const json = [
  { name: 'Alice', age: 30, city: 'NYC' },
  { name: 'Bob', age: 25, city: 'LA' }
];
// → Direct CSV conversion

// For nested objects, flatten first
const nested = [
  { name: 'Alice', address: { city: 'NYC', zip: '10001' } }
];
// → Flatten to: name, address.city, address.zip

Implementation:

function jsonToCsv(data) {
  // Handle array of objects
  if (!Array.isArray(data)) {
    data = [data];
  }

  // Flatten nested objects
  const flattened = data.map(flattenObject);

  // Get all unique keys
  const headers = [...new Set(flattened.flatMap(Object.keys))];

  // Create CSV
  const csvRows = [
    headers.join(','),
    ...flattened.map(row =>
      headers.map(h => JSON.stringify(row[h] ?? '')).join(',')
    )
  ];

  return csvRows.join('\n');
}

function flattenObject(obj, prefix = '') {
  return Object.keys(obj).reduce((acc, key) => {
    const prefixedKey = prefix ? `${prefix}.${key}` : key;
    if (typeof obj[key] === 'object' && obj[key] !== null && !Array.isArray(obj[key])) {
      Object.assign(acc, flattenObject(obj[key], prefixedKey));
    } else {
      acc[prefixedKey] = obj[key];
    }
    return acc;
  }, {});
}

Read the full file on GitHub · 375 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. 5d ago First seen · 375 lines · 29 tokens per session scan A 72de17b6a2a2

Subscribe to this mod's changes

format-converter is a command published in the GitHub repository sigistry/marketplace (3 stars, last pushed 4d ago), licensed MIT. It adds 29 tokens to every session and 2,264 once invoked, about $0.0001 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-09-03.