Skip to main content
command

load-llms-txt — Claude Code command: docs loading

Loads external documentation from llms.txt or a custom source and adds project context. Useful when an agent needs reference material during coding.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --command documentation/load-llms-txt
Open on GitHub

What load-llms-txt does

load-llms-txt retrieves documentation from an llms.txt file or another supplied source. Its default path loads the Xatu documentation data; custom sources can be checked for access, downloaded, and prepared for use with the project.

The command supports direct retrieval, format validation, merging with existing project documentation, and local caching. It also checks network access, looks for a local llms.txt or documentation cache, and reads package.json or README.md to detect project context. Remote sources depend on network access.

What it helps with

  • load documentation from an llms.txt file
  • validate an external documentation source
  • merge reference material with project docs
  • cache documentation for offline use
  • process a custom documentation source

Example prompts for the agent

  • Load the Xatu documentation source with /load-llms-txt.
  • Check a source format with /load-llms-txt --validate.
  • Load documentation from a custom address with /load-llms-txt --custom-url.

How to install load-llms-txt

1claude-code-templates

npx claude-code-templates@latest --command documentation/load-llms-txt

2Manually: put the files in place

.claude/commands/load-llms-txt.md

Call it with /load-llms-txt. For all projects use ~/.claude/commands/

Questions about load-llms-txt

How do I install load-llms-txt in Claude Code?

Run npx claude-code-templates@latest --command documentation/load-llms-txt, then add the file at .claude/commands/load-llms-txt.md.

What does load-llms-txt do?

It retrieves documentation from llms.txt or a custom source, validates and structures the content, then connects it with the project context.

Does load-llms-txt require network access?

Network access is needed when retrieving a remote source. The command checks connectivity and can use a local cache for saved documentation.

Source text

load-llms-txt.md · MIT
---
allowed-tools: Bash, WebFetch
argument-hint: "[data-source] | --xatu | --custom-url | --validate"
description: Load and process external documentation context from llms.txt files or custom sources
---

# External Documentation Context Loader

Load external documentation context: $ARGUMENTS

## Current Context Status

- Network access: !`curl -s --connect-timeout 5 https://httpbin.org/status/200 >/dev/null && echo "✅ Available" || echo "❌ Limited"`
- Existing context: Check for local llms.txt or documentation cache
- Project type: @package.json or @README.md (detect project context needs)

## Task

Load and process external documentation context from specified source.

### Default Action (Xatu Data)
Load the llms.txt file from Xatu data repository:
```bash
curl -s https://raw.githubusercontent.com/ethpandaops/xatu-data/refs/heads/master/llms.txt
```

### Custom Source Loading
For custom URLs or alternative documentation sources:
- Validate URL accessibility
- Download and cache content
- Process and structure information
- Integration with project context

### Processing Options
- **Raw loading**: Direct content retrieval
- **Validation**: Check content format and structure  
- **Integration**: Merge with existing project documentation
- **Caching**: Store locally for offline access

© davila7 · MIT · davila7/claude-code-templates

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor