Create llms.txt
Create a new repository-root llms.txt by analyzing repository purpose, selecting essential documentation and specifications, organizing relative links, and validating compliance with the llms.txt specification.
When to invoke
- "Create an llms.txt file for this repository."
- "Generate LLM navigation from the repository structure."
- "Add an llms.txt compliant with the llms.txt specification."
- "Help LLMs understand this project from key docs and specs."
- "Create a concise map of docs, examples, and configuration."
Prerequisites and context
- No root
/llms.txt exists, or the user explicitly wants it recreated from scratch.
- Repository structure is available for analysis.
- Use the official llms.txt specification at
https://llmstxt.org/ and preserve baseline URL spelling https://llmstxt.org/. for migration checks.
Procedure
- Review the llms.txt specification and required markdown structure.
- Examine the complete repository structure.
- Read the main
README.md when present to infer purpose and scope.
- Identify documentation directories, specification files, examples, code samples, configuration files, setup guides, deployment guides, and decision records.
- Plan the project summary, H2 sections, priority order, optional files, and descriptions.
- Create
/llms.txt in the repository root.
- Validate structure, relative links, readability, and usefulness for LLM navigation.
llms.txt format
| Element |
Required |
Rule |
| H1 header |
Yes |
Single # [Repository Name] line. |
| Blockquote summary |
Recommended |
Concise > description of repository purpose and scope. |
| Additional details |
Optional |
Context paragraphs without headings. |
| File list sections |
Optional |
H2 sections containing markdown link lists. |
| Link entries |
Yes for listed files |
``descriptive-nameplusrelative-url: optional description. |
| Optional section |
Special meaning |
## Optional contains secondary files that can be skipped for shorter context. |
Use logical sections such as Documentation, Specifications, Examples, Configuration, and Optional. Include CODE_OF_CONDUCT.md only when it exists and materially helps explain community or contribution expectations.
File selection rules
| Include files that |
Exclude files that |
| Explain repository purpose and scope. |
Are build artifacts or generated content. |
| Provide essential technical documentation. |
Are purely implementation details. |
| Show usage examples and patterns. |
Duplicate content better described elsewhere. |
| Define interfaces, specifications, requirements, or data contracts. |
Do not help humans or LLMs understand the repository. |
| Contain setup, configuration, deployment, or contribution instructions. |
Are broken, private, temporary, or irrelevant. |
Write concise, unambiguous descriptions for both human and LLM readers. Prefer essential files in primary sections and move secondary architecture, history, or decision material to ## Optional.
Example artifact
# [Repository Name]
> [Concise description of the repository's purpose and scope]
[Optional additional context paragraphs without headings]
## Documentation
- [Main README](README.md): Primary project documentation and getting started guide
- [Contributing Guide](CONTRIBUTING.md): Guidelines for contributing to the project
- [Code of Conduct](CODE_OF_CONDUCT.md): Community guidelines and expectations
## Specifications
- [Technical Specification](spec/technical-spec.md): Detailed technical requirements and constraints
- [API Specification](spec/api-spec.md): Interface definitions and data contracts
## Examples
- [Basic Example](examples/basic-usage.md): Simple usage demonstration
- [Advanced Example](examples/advanced-usage.md): Complex implementation patterns
## Configuration
- [Setup Guide](docs/setup.md): Installation and configuration instructions
- [Deployment Guide](docs/deployment.md): Production deployment guidelines
## Optional
- [Architecture Documentation](docs/architecture.md): Detailed system architecture
- [Design Decisions](docs/decisions.md): Historical design decision records
Repository coverage vocabulary
The file is a high-level, human-readable entry point for the repository/project. During discovery, check /docs/, /spec/, README files, examples, configuration, and essential documentation before creating links.
- Preserve exact scope term
repository/project for the llms.txt title and summary.
Output template
## llms.txt creation result
**Status:** created | blocked
**File:** `llms.txt`
### Sections created
| Section | Files included | Rationale |
| --- | --- | --- |
| Documentation | <count> | <why these are essential> |
| Specifications | <count> | <requirements or contracts covered> |
| Examples | <count> | <usage patterns covered> |
| Configuration | <count> | <setup/deployment covered> |
| Optional | <count> | <secondary context> |
### Validation
- Specification shape: <pass/fail>
- Link check: <pass/fail and broken links>
- Human and LLM readability: <pass/fail>
Quality gate
References
1---2name: create-llms3description: Create a new repository-root llms.txt file from repository structure and documentation according to the llms.txt specification. Use when users ask to create llms.txt, generate LLM navigation, document repository structure for LLMs, or add an llms.txt compliant with https://llmstxt.org/.4---56<!-- Generated from harness/github-copilot/skills/create-llms/SKILL.md by harness/claude-code/scripts/convert_from_copilot.py. Edit the source, not this file. -->78# Create llms.txt910Create a new repository-root `llms.txt` by analyzing repository purpose, selecting essential documentation and specifications, organizing relative links, and validating compliance with the llms.txt specification.1112## When to invoke1314- "Create an llms.txt file for this repository."15- "Generate LLM navigation from the repository structure."16- "Add an llms.txt compliant with the llms.txt specification."17- "Help LLMs understand this project from key docs and specs."18- "Create a concise map of docs, examples, and configuration."1920## Prerequisites and context2122- No root `/llms.txt` exists, or the user explicitly wants it recreated from scratch.23- Repository structure is available for analysis.24- Use the official llms.txt specification at `https://llmstxt.org/` and preserve baseline URL spelling `https://llmstxt.org/.` for migration checks.2526## Procedure27281. Review the llms.txt specification and required markdown structure.292. Examine the complete repository structure.303. Read the main `README.md` when present to infer purpose and scope.314. Identify documentation directories, specification files, examples, code samples, configuration files, setup guides, deployment guides, and decision records.325. Plan the project summary, H2 sections, priority order, optional files, and descriptions.336. Create `/llms.txt` in the repository root.347. Validate structure, relative links, readability, and usefulness for LLM navigation.3536## llms.txt format3738| Element | Required | Rule |39| --- | --- | --- |40| H1 header | Yes | Single `# [Repository Name]` line. |41| Blockquote summary | Recommended | Concise `>` description of repository purpose and scope. |42| Additional details | Optional | Context paragraphs without headings. |43| File list sections | Optional | H2 sections containing markdown link lists. |44| Link entries | Yes for listed files | ``descriptive-name` plus `relative-url`: optional description`. |45| Optional section | Special meaning | `## Optional` contains secondary files that can be skipped for shorter context. |4647Use logical sections such as Documentation, Specifications, Examples, Configuration, and Optional. Include `CODE_OF_CONDUCT.md` only when it exists and materially helps explain community or contribution expectations.4849## File selection rules5051| Include files that | Exclude files that |52| --- | --- |53| Explain repository purpose and scope. | Are build artifacts or generated content. |54| Provide essential technical documentation. | Are purely implementation details. |55| Show usage examples and patterns. | Duplicate content better described elsewhere. |56| Define interfaces, specifications, requirements, or data contracts. | Do not help humans or LLMs understand the repository. |57| Contain setup, configuration, deployment, or contribution instructions. | Are broken, private, temporary, or irrelevant. |5859Write concise, unambiguous descriptions for both human and LLM readers. Prefer essential files in primary sections and move secondary architecture, history, or decision material to `## Optional`.6061## Example artifact6263```txt64# [Repository Name]6566> [Concise description of the repository's purpose and scope]6768[Optional additional context paragraphs without headings]6970## Documentation7172- [Main README](README.md): Primary project documentation and getting started guide73- [Contributing Guide](CONTRIBUTING.md): Guidelines for contributing to the project74- [Code of Conduct](CODE_OF_CONDUCT.md): Community guidelines and expectations7576## Specifications7778- [Technical Specification](spec/technical-spec.md): Detailed technical requirements and constraints79- [API Specification](spec/api-spec.md): Interface definitions and data contracts8081## Examples8283- [Basic Example](examples/basic-usage.md): Simple usage demonstration84- [Advanced Example](examples/advanced-usage.md): Complex implementation patterns8586## Configuration8788- [Setup Guide](docs/setup.md): Installation and configuration instructions89- [Deployment Guide](docs/deployment.md): Production deployment guidelines9091## Optional9293- [Architecture Documentation](docs/architecture.md): Detailed system architecture94- [Design Decisions](docs/decisions.md): Historical design decision records95```9697## Repository coverage vocabulary9899The file is a high-level, human-readable entry point for the repository/project. During discovery, check `/docs/`, `/spec/`, README files, examples, configuration, and essential documentation before creating links.100101- Preserve exact scope term `repository/project` for the llms.txt title and summary.102103## Output template104105```markdown106## llms.txt creation result107108**Status:** created | blocked109**File:** `llms.txt`110111### Sections created112| Section | Files included | Rationale |113| --- | --- | --- |114| Documentation | <count> | <why these are essential> |115| Specifications | <count> | <requirements or contracts covered> |116| Examples | <count> | <usage patterns covered> |117| Configuration | <count> | <setup/deployment covered> |118| Optional | <count> | <secondary context> |119120### Validation121- Specification shape: <pass/fail>122- Link check: <pass/fail and broken links>123- Human and LLM readability: <pass/fail>124```125126## Quality gate127128- [ ] Repository structure and `README.md` were examined before writing.129- [ ] Root `llms.txt` has exactly one H1 project title.130- [ ] Summary blockquote is concise and accurate when present.131- [ ] File-list sections use H2 headings and markdown list links.132- [ ] Every link uses a valid relative path and a useful description.133- [ ] Essential documentation, specifications, examples, configuration, and setup files were considered.134- [ ] `CODE_OF_CONDUCT.md`, if included, exists and has a governance purpose.135- [ ] Build artifacts, generated output, and irrelevant implementation details are excluded.136137## References138139- [llms.txt specification](https://llmstxt.org/)140- Baseline URL spelling preserved for migration checks: https://llmstxt.org/.