# WebDigit LLMs Index Suite

Generate llms.txt, llms-full.txt, llms.json and AI-ready image indexes (Markdown + JSON-LD) for WordPress.

## Features

- **Synchronized trio**: `llms.txt`, `llms-full.txt`, `llms.json`
- **Image inventory**: `images.md` (Markdown table) + `images.jsonld` (`ImageObject`)
- **Public URLs**: `/llms.txt` (root) and `/llms/*` (virtual directory)
- **REST API with caching**: `GET /wp-json/wdlis/v1/index`, `GET /wp-json/wdlis/v1/images` (ETag + 304)
- **Automation**: cron every 6h + WP-CLI (`wp llms-suite regenerate`)
- **Controls**: include post types, exclude URL patterns, image MIME filters, customizable license meta key
- **Security**: Only published content is indexed (drafts, private posts excluded)

## Development

### Prerequisites

- PHP 8.1+
- Composer
- WordPress 6.2+

### Installation

1. Clone the repository
2. Run `composer install`
3. Activate the plugin in WordPress

### Scripts

- `composer lint` - Run PHPCS
- `composer stan` - Run PHPStan
- `composer check` - Run both linting tools

### Release Process

1. Update version in `webdigit-llms-index-suite.php` and `readme.txt`
2. Run `./tools/release.sh <version>` to create a release
3. The GitHub Actions workflow will automatically deploy to WordPress.org

## License

GPL-2.0-or-later