# LLM-Optimized Content Generator

> Generate LLM-optimized content stored in markdown frontmatter for better AI processing

This sample demonstrates how to create a GenAIScript that analyzes markdown files and generates LLM-optimized content stored in the `llmstxt` frontmatter field.

## Overview

[Section titled “Overview”](#overview)

The script processes markdown (`.md`) and MDX (`.mdx`) files to:

1. Analyze the content (excluding frontmatter)
2. Generate a concise, LLM-optimized version
3. Store the optimized content in the `llmstxt` frontmatter field
4. Track content changes with hash-based caching
5. Update files in-place with intelligent change detection

## Usage

[Section titled “Usage”](#usage)

### Basic Usage

[Section titled “Basic Usage”](#basic-usage)

```bash