1
---
2
name: create-llms
3
description: 'Create an llms.txt file from scratch based on repository structure following the llms.txt specification at https://llmstxt.org/'
4
---
5
6
# Create LLMs.txt File from Repository Structure
7
8
Create a new `llms.txt` file from scratch in the root of the repository following the official llms.txt specification at https://llmstxt.org/. This file provides high-level guidance to large language models (LLMs) on where to find relevant content for understanding the repository's purpose and specifications.
9
10
## Primary Directive
11
12
Create a comprehensive `llms.txt` file that serves as an entry point for LLMs to understand and navigate the repository effectively. The file must comply with the llms.txt specification and be optimized for LLM consumption while remaining human-readable.
13
14
## Analysis and Planning Phase
15
16
Before creating the `llms.txt` file, you must complete a thorough analysis:
17
18
### Step 1: Review llms.txt Specification
19
20
- Review the official specification at https://llmstxt.org/ to ensure full compliance
21
- Understand the required format structure and guidelines
22
- Note the specific markdown structure requirements
23
24
### Step 2: Repository Structure Analysis
25
26
- Examine the complete repository structure using appropriate tools
27
- Identify the primary purpose and scope of the repository
28
- Catalog all important directories and their purposes
29
- List key files that would be valuable for LLM understanding
30
31
### Step 3: Content Discovery
32
33
- Identify README files and their locations
34
- Find documentation files (`.md` files in `/docs/`, `/spec/`, etc.)
35
- Locate specification files and their purposes
36
- Discover configuration files and their relevance
37
- Find example files and code samples
38
- Identify any existing documentation structure
39
40
### Step 4: Create Implementation Plan
41
42
Based on your analysis, create a structured plan that includes:
43
44
- Repository purpose and scope summary
45
- Priority-ordered list of essential files for LLM understanding
46
- Secondary files that provide additional context
47
- Organizational structure for the llms.txt file
48
49
## Implementation Requirements
50
51
### Format Compliance
52
53
The `llms.txt` file must follow this exact structure per the specification:
54
55
1. **H1 Header**: Single line with repository/project name (required)
56
2. **Blockquote Summary**: Brief description in blockquote format (optional but recommended)
57
3. **Additional Details**: Zero or more markdown sections without headings for context
58
4. **File List Sections**: Zero or more H2 sections containing markdown lists of links
59
60
### Content Requirements
61
62
#### Required Elements
63
64
- **Project Name**: Clear, descriptive title as H1
65
- **Summary**: Concise blockquote explaining the repository's purpose
66
- **Key Files**: Essential files organized by category (H2 sections)
67
68
#### File Link Format
69
70
Each file link must follow: `[descriptive-name](relative-url): optional description`
71
72
#### Section Organization
73
74
Organize files into logical H2 sections such as:
75
76
- **Documentation**: Core documentation files
77
- **Specifications**: Technical specifications and requirements
78
- **Examples**: Sample code and usage examples
79
- **Configuration**: Setup and configuration files
80
- **Optional**: Secondary files (special meaning - can be skipped for shorter context)
81
82
### Content Guidelines
83
84
#### Language and Style
85
86
- Use concise, clear, unambiguous language
87
- Avoid jargon without explanation
88
- Write for both human and LLM readers
89
- Be specific and informative in descriptions
90
91
#### File Selection Criteria
92
93
Include files that:
94
- Explain the repository's purpose and scope
95
- Provide essential technical documentation
96
- Show usage examples and patterns
97
- Define interfaces and specifications
98
- Contain configuration and setup instructions
99
100
Exclude files that:
101
- Are purely implementation details
102
- Contain redundant information
103
- Are build artifacts or generated content
104
- Are not relevant to understanding the project
105
106
## Execution Steps
107
108
### Step 1: Repository Analysis
109
110
1. Examine the repository structure completely
111
2. Read the main README.md to understand the project
112
3. Identify all documentation directories and files
113
4. Catalog specification files and their purposes
114
5. Find example files and configuration files
115
116
### Step 2: Content Planning
117
118
1. Determine the primary purpose statement
119
2. Write a concise summary for the blockquote
120
3. Group identified files into logical categories
121
4. Prioritize files by importance for LLM understanding
122
5. Create descriptions for each file link
123
124
### Step 3: File Creation
125
126
1. Create the `llms.txt` file in the repository root
127
2. Follow the exact format specification
128
3. Include all required sections
129
4. Use proper markdown formatting
130
5. Ensure all links are valid relative paths
131
132
### Step 4: Validation
133
1. Verify compliance with https://llmstxt.org/ specification
134
2. Check that all links are valid and accessible
135
3. Ensure the file serves as an effective LLM navigation tool
136
4. Confirm the file is both human and machine readable
137
138
## Quality Assurance
139
140
### Format Validation
141
142
- ✅ H1 header with project name
143
- ✅ Blockquote summary (if included)
144
- ✅ H2 sections for file lists
145
- ✅ Proper markdown link format
146
- ✅ No broken or invalid links
147
- ✅ Consistent formatting throughout
148
149
### Content Validation
150
151
- ✅ Clear, unambiguous language
152
- ✅ Comprehensive coverage of essential files
153
- ✅ Logical organization of content
154
- ✅ Appropriate file descriptions
155
- ✅ Serves as effective LLM navigation tool
156
157
### Specification Compliance
158
159
- ✅ Follows https://llmstxt.org/ format exactly
160
- ✅ Uses required markdown structure
161
- ✅ Implements optional sections appropriately
162
- ✅ File located at repository root (`/llms.txt`)
163
164
## Example Structure Template
165
166
```txt
167
# [Repository Name]
168
169
> [Concise description of the repository's purpose and scope]
170
171
[Optional additional context paragraphs without headings]
172
173
## Documentation
174
175
- [Main README](README.md): Primary project documentation and getting started guide
176
- [Contributing Guide](CONTRIBUTING.md): Guidelines for contributing to the project
177
- [Code of Conduct](CODE_OF_CONDUCT.md): Community guidelines and expectations
178
179
## Specifications
180
181
- [Technical Specification](spec/technical-spec.md): Detailed technical requirements and constraints
182
- [API Specification](spec/api-spec.md): Interface definitions and data contracts
183
184
## Examples
185
186
- [Basic Example](examples/basic-usage.md): Simple usage demonstration
187
- [Advanced Example](examples/advanced-usage.md): Complex implementation patterns
188
189
## Configuration
190
191
- [Setup Guide](docs/setup.md): Installation and configuration instructions
192
- [Deployment Guide](docs/deployment.md): Production deployment guidelines
193
194
## Optional
195
196
- [Architecture Documentation](docs/architecture.md): Detailed system architecture
197
- [Design Decisions](docs/decisions.md): Historical design decision records
198
```
199
200
## Success Criteria
201
202
The created `llms.txt` file should:
203
1. Enable LLMs to quickly understand the repository's purpose
204
2. Provide clear navigation to essential documentation
205
3. Follow the official llms.txt specification exactly
206
4. Be comprehensive yet concise
207
5. Serve both human and machine readers effectively
208
6. Include all critical files for project understanding
209
7. Use clear, unambiguous language throughout
210
8. Organize content logically for easy consumption
211