context-optimizer

Convert JSON, CSV, YAML, or plain text into XML-wrapped Claude context.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/robinmestre/resume --skill context-optimizer-robinmestre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-optimizer
Source: https://github.com/robinmestre/resume/tree/main/.claude/skills/context-optimizer
Command: npx skills add https://github.com/robinmestre/resume --skill context-optimizer-robinmestre

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Format and structure data files to maximize Claude's reasoning and extraction efficiency. This skill provides a consistent approach to organizing documents and data for reliable grounding, retrieval, and interpretation by Claude.

Core Features & Use Cases

  • Convert JSON, CSV, YAML, and plain text into an XML-wrapped context suitable for Claude prompts.
  • Preserve source attribution and metadata to enable grounding and auditability.
  • Support multi-file workflows with optional per-file metadata and a combined context output.

Quick Start

Convert the provided dataset into an XML-wrapped Claude context with explicit document, instruction, and query sections.

Frequently Asked Questions about context-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format JSON and CSV data for Claude analysis?

To format JSON and CSV data for Claude analysis, you can convert them into an XML-wrapped context with explicit document, instruction, and query sections. This preserves source attribution and metadata to enable reliable grounding and retrieval by Claude.

What is the best way to prepare a multi-document corpus for Claude prompts?

The best way to prepare a multi-document corpus for Claude prompts is to structure the files into a combined XML-wrapped context output. This approach supports multi-file workflows with optional per-file metadata to maximize Claude's reasoning and extraction efficiency.

Does converting YAML to an XML-wrapped context require a Python environment?

Yes, converting YAML to an XML-wrapped context requires a Python environment. The process relies on the pyyaml dependency to read YAML files and structure them alongside JSON, CSV, or plain text data for Claude's interpretation.

Can I preserve source attribution when formatting plain text for Claude?

Yes, you can preserve source attribution when formatting plain text for Claude. The context optimization process embeds optional metadata within the XML-wrapped output, ensuring documents remain auditable and grounded during multi-file workflows.

Why does structured XML context improve Claude's reasoning efficiency?

Structured XML context improves Claude's reasoning efficiency by providing a consistent organization of documents, instructions, and queries. This explicit separation reduces ambiguity and allows Claude to reliably interpret and extract information from complex multi-file corpora.

What are the limitations of using context optimization for data formatting?

Limitations of context optimization include its dependency on a Python environment and the pyyaml library for processing. It is specifically designed for converting JSON, CSV, YAML, and plain text into XML-wrapped contexts, meaning other data formats require pre-processing before use.