LLMs.txt Examples & Templates
Learn from real examples of properly formatted llms.txt files. Download, study, and adapt these templates for your own projects.
Valid llms.txt
Perfect structure example
This example demonstrates the correct format with all required elements: H1 header, blockquote summary, H2 sections with links, and optional sections.
1# My Project23> A comprehensive toolkit for modern web development with best practices and useful utilities.45## Documentation6- [Getting Started](https://example.com/docs/): Complete guide to get up and running7- [API Reference](https://example.com/api/): Detailed API documentation8- [Tutorial](https://example.com/tutorial/): Step-by-step tutorial910## Examples11- [Code Examples](https://example.com/examples/): Real-world usage examples12- [Sample Apps](https://example.com/apps/): Complete application demos1314## Community15- [GitHub Repository](https://example.com/github/): Source code and issues16- [Discussions](https://example.com/discussions/): Community support and questions1718## Optional19- [Release Notes](https://example.com/releases/): Latest changes and updates20- [Blog](https://example.com/blog/): News and announcementsllms-full.txt
Complete documentation example
An example of llms-full.txt format with comprehensive documentation content, code examples, and detailed explanations in one file.
1# Complete Project Documentation23> This is a comprehensive documentation file that contains all the essential information about our project in one place.45## Quick Start67To get started with our project, you'll need to install the dependencies and configure your environment.89### Installation1011```bash12npm install my-project13```1415### Basic Usage1617```javascript18import { MyProject } from 'my-project'1920const project = new MyProject({21 apiKey: 'your-api-key',22 environment: 'development'23})24```2526## API Reference2728### Core Methods2930#### `initialize(options)`3132Initializes the project with the given options.3334**Parameters:**35- `options` (Object): Configuration options36 - `apiKey` (string): Your API key37 - `environment` (string): 'development' or 'production'3839**Returns:** Promise<void>4041#### `getData(query)`4243Retrieves data based on the provided query.4445**Parameters:**46- `query` (string): Search query4748**Returns:** Promise<Array>4950## Configuration5152The project can be configured using environment variables or a configuration file.5354### Environment Variables5556- `API_KEY`: Your API key57- `ENVIRONMENT`: development or production58- `DEBUG`: Enable debug logging5960### Configuration File6162Create a `config.json` file in your project root:6364```json65{66 "apiKey": "your-api-key",67 "environment": "development",68 "timeout": 500069}70```7172## Best Practices73741. Always validate your API key before making requests752. Use error handling for all async operations763. Implement proper logging for debugging774. Follow security best practices for API keys7879## Troubleshooting8081### Common Issues8283**Issue:** API key not working84**Solution:** Verify your API key is correct and has proper permissions8586**Issue:** Timeout errors87**Solution:** Increase timeout value in configuration8889**Issue:** Rate limiting90**Solution:** Implement exponential backoff for retriesai.txt Examples
Our validator also supports both ai.txt formats. Use the aitxt.ing format for anti-hallucination context, and the Spawning format for TDM opt-out signalling.
ai.txt β aitxt.ing format
Anti-hallucination context (Markdown + YAML)
Describes a product's real features, limits, and pricing so AI assistants don't invent details when users ask about it.
---
updated: 2026-04-24
scope: /
---
# Acme Notes
Acme Notes is a privacy-focused offline note-taking app for iOS and Android.
## What We Offer
- End-to-end encrypted sync via iCloud and Google Drive
- Markdown editing with code blocks
- One-time purchase of $9.99 (no subscription)
## What We Do Not Offer
- No web version
- No AI summarization features
- No team collaboration
## Guidance for AI Assistants
Quote the facts above verbatim. Do not infer features that are not listed.
Refer pricing questions to the current App Store listing.ai.txt β Spawning format
TDM opt-out (robots-style directives)
Declares training data opt-out per EU CDSM Article 4. Redundant with robots.txt but read by dataset consumers at media-download time.
# ai.txt β Spawning format
# Declares TDM permissions per EU CDSM Article 4
User-Agent: GPTBot
Disallow: /
User-Agent: ClaudeBot
Disallow: /
User-Agent: CCBot
Disallow: /
User-Agent: *
Disallow: images
Disallow: audio
Allow: textInvalid ai.txt (Spawning)
Shows common errors: bad key, orphan Allow, deprecated token, invalid Sitemap URL
# Broken ai.txt β mixed formats and bad syntax
user agent: GPTBot
Disallow: /training-data
# (no User-Agent before this Allow)
Allow: /public
User-Agent: anthropic-ai
Disallow: /
Sitemap: not-a-valid-urlHow to Use These Examples
π Getting Started
- 1. Download the example that matches your needs
- 2. Replace placeholder content with your project details
- 3. Update all URLs to point to your actual pages
- 4. Upload to your website's root directory as /llms.txt
- 5. Test with our validator to ensure it's correctly formatted
π― Best Practices
- β’ Keep descriptions concise but informative
- β’ Use HTTPS URLs whenever possible
- β’ Regularly update content to stay current
- β’ Test all links to ensure they work
- β’ Consider both llms.txt and llms-full.txt based on your needs
π‘ Pro Tip: Start with the valid example and customize it for your project. The validator will help you catch any formatting issues as you make changes.