Update llms.txt

Update llms.txt

Updates a repository's llms.txt file to match current docs and structure, following the llms.txt specification after analysing what changed.

Skill files1 file
SKILL.md217 lines
1
---
2
name: update-llms
3
description: 'Update the llms.txt file in the root folder to reflect changes in documentation or specifications following the llms.txt specification at https://llmstxt.org/'
4
---
5
6
# Update LLMs.txt File
7
8
Update the existing `llms.txt` file in the root of the repository to reflect changes in documentation, specifications, or repository structure. 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
Update the existing `llms.txt` file to maintain accuracy and compliance with the llms.txt specification while reflecting current repository structure and content. The file must remain optimized for LLM consumption while staying human-readable.
13
14
## Analysis and Planning Phase
15
16
Before updating the `llms.txt` file, you must complete a thorough analysis:
17
18
### Step 1: Review Current File and Specification
19
- Read the existing `llms.txt` file to understand current structure
20
- Review the official specification at https://llmstxt.org/ to ensure continued compliance
21
- Identify areas that may need updates based on repository changes
22
23
### Step 2: Repository Structure Analysis
24
- Examine the current repository structure using appropriate tools
25
- Compare current structure with what's documented in existing `llms.txt`
26
- Identify new directories, files, or documentation that should be included
27
- Note any removed or relocated files that need to be updated
28
29
### Step 3: Content Discovery and Change Detection
30
- Identify new README files and their locations
31
- Find new documentation files (`.md` files in `/docs/`, `/spec/`, etc.)
32
- Locate new specification files and their purposes
33
- Discover new configuration files and their relevance
34
- Find new example files and code samples
35
- Identify any changes to existing documentation structure
36
37
### Step 4: Create Update Plan
38
Based on your analysis, create a structured plan that includes:
39
- Changes needed to maintain accuracy
40
- New files to be added to the llms.txt
41
- Outdated references to be removed or updated
42
- Organizational improvements to maintain clarity
43
44
## Implementation Requirements
45
46
### Format Compliance
47
The updated `llms.txt` file must maintain this exact structure per the specification:
48
49
1. **H1 Header**: Single line with repository/project name (required)
50
2. **Blockquote Summary**: Brief description in blockquote format (optional but recommended)
51
3. **Additional Details**: Zero or more markdown sections without headings for context
52
4. **File List Sections**: Zero or more H2 sections containing markdown lists of links
53
54
### Content Requirements
55
56
#### Required Elements
57
- **Project Name**: Clear, descriptive title as H1
58
- **Summary**: Concise blockquote explaining the repository's purpose
59
- **Key Files**: Essential files organized by category (H2 sections)
60
61
#### File Link Format
62
Each file link must follow: `[descriptive-name](relative-url): optional description`
63
64
#### Section Organization
65
Organize files into logical H2 sections such as:
66
- **Documentation**: Core documentation files
67
- **Specifications**: Technical specifications and requirements
68
- **Examples**: Sample code and usage examples
69
- **Configuration**: Setup and configuration files
70
- **Optional**: Secondary files (special meaning - can be skipped for shorter context)
71
72
### Content Guidelines
73
74
#### Language and Style
75
- Use concise, clear, unambiguous language
76
- Avoid jargon without explanation
77
- Write for both human and LLM readers
78
- Be specific and informative in descriptions
79
80
#### File Selection Criteria
81
Include files that:
82
- Explain the repository's purpose and scope
83
- Provide essential technical documentation
84
- Show usage examples and patterns
85
- Define interfaces and specifications
86
- Contain configuration and setup instructions
87
88
Exclude files that:
89
- Are purely implementation details
90
- Contain redundant information
91
- Are build artifacts or generated content
92
- Are not relevant to understanding the project
93
94
## Execution Steps
95
96
### Step 1: Current State Analysis
97
1. Read the existing `llms.txt` file thoroughly
98
2. Examine the current repository structure completely
99
3. Compare existing file references with actual repository content
100
4. Identify outdated, missing, or incorrect references
101
5. Note any structural issues with the current file
102
103
### Step 2: Content Planning
104
1. Determine if the primary purpose statement needs updates
105
2. Review and update the summary blockquote if needed
106
3. Plan additions for new files and directories
107
4. Plan removals for outdated or moved content
108
5. Reorganize sections if needed for better clarity
109
110
### Step 3: File Updates
111
1. Update the existing `llms.txt` file in the repository root
112
2. Maintain compliance with the exact format specification
113
3. Add new file references with appropriate descriptions
114
4. Remove or update outdated references
115
5. Ensure all links are valid relative paths
116
117
### Step 4: Validation
118
1. Verify continued compliance with https://llmstxt.org/ specification
119
2. Check that all links are valid and accessible
120
3. Ensure the file still serves as an effective LLM navigation tool
121
4. Confirm the file remains both human and machine readable
122
123
## Quality Assurance
124
125
### Format Validation
126
- ✅ H1 header with project name
127
- ✅ Blockquote summary (if included)
128
- ✅ H2 sections for file lists
129
- ✅ Proper markdown link format
130
- ✅ No broken or invalid links
131
- ✅ Consistent formatting throughout
132
133
### Content Validation
134
- ✅ Clear, unambiguous language
135
- ✅ Comprehensive coverage of essential files
136
- ✅ Logical organization of content
137
- ✅ Appropriate file descriptions
138
- ✅ Serves as effective LLM navigation tool
139
140
### Specification Compliance
141
- ✅ Follows https://llmstxt.org/ format exactly
142
- ✅ Uses required markdown structure
143
- ✅ Implements optional sections appropriately
144
- ✅ File located at repository root (`/llms.txt`)
145
146
## Update Strategy
147
148
### Addition Process
149
When adding new content:
150
1. Identify the appropriate section for new files
151
2. Create clear, descriptive names for links
152
3. Write concise but informative descriptions
153
4. Maintain alphabetical or logical ordering within sections
154
5. Consider if new sections are needed for new content types
155
156
### Removal Process
157
When removing outdated content:
158
1. Verify files are actually removed or relocated
159
2. Check if relocated files should be updated rather than removed
160
3. Remove entire sections if they become empty
161
4. Update cross-references if needed
162
163
### Reorganization Process
164
When restructuring content:
165
1. Maintain logical flow from general to specific
166
2. Keep essential documentation in primary sections
167
3. Move secondary content to "Optional" section if appropriate
168
4. Ensure new organization improves LLM navigation
169
170
Example structure for `llms.txt`:
171
172
```txt
173
# [Repository Name]
174
175
> [Concise description of the repository's purpose and scope]
176
177
[Optional additional context paragraphs without headings]
178
179
## Documentation
180
181
- [Main README](README.md): Primary project documentation and getting started guide
182
- [Contributing Guide](CONTRIBUTING.md): Guidelines for contributing to the project
183
- [Code of Conduct](CODE_OF_CONDUCT.md): Community guidelines and expectations
184
185
## Specifications
186
187
- [Technical Specification](spec/technical-spec.md): Detailed technical requirements and constraints
188
- [API Specification](spec/api-spec.md): Interface definitions and data contracts
189
190
## Examples
191
192
- [Basic Example](examples/basic-usage.md): Simple usage demonstration
193
- [Advanced Example](examples/advanced-usage.md): Complex implementation patterns
194
195
## Configuration
196
197
- [Setup Guide](docs/setup.md): Installation and configuration instructions
198
- [Deployment Guide](docs/deployment.md): Production deployment guidelines
199
200
## Optional
201
202
- [Architecture Documentation](docs/architecture.md): Detailed system architecture
203
- [Design Decisions](docs/decisions.md): Historical design decision records
204
```
205
206
## Success Criteria
207
208
The updated `llms.txt` file should:
209
1. Accurately reflect the current repository structure and content
210
2. Maintain compliance with the llms.txt specification
211
3. Provide clear navigation to essential documentation
212
4. Remove outdated or incorrect references
213
5. Include new important files and documentation
214
6. Maintain logical organization for easy LLM consumption
215
7. Use clear, unambiguous language throughout
216
8. Continue to serve both human and machine readers effectively
217

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…