Skip to content
Back to skills

Llms Txt Extraction Guide

ASecurity

Guide to llm.energy — extract llms.txt and install.md documentation from any website for AI agents, LLMs, and automation workflows. Features MCP server, REST API, batch processing, and multiple export formats. The documentation extraction standard for AI-ready content.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 7, 2026
documentationgobashgitapidatabasedocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned June 7, 2026

npx -y skills add nirholas/three-ui --skill llms-txt-extraction-guide --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llms Txt Extraction Guide?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llms Txt Extraction Guide
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nirholas-llms-txt-extraction-guide/badge)](https://www.skillsdirectory.com/skills/nirholas-llms-txt-extraction-guide)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: llms-txt-extraction-guide
description: Guide to llm.energy — extract llms.txt and install.md documentation from any website for AI agents, LLMs, and automation workflows. Features MCP server, REST API, batch processing, and multiple export formats. The documentation extraction standard for AI-ready content.
license: MIT
metadata:
  category: development
  difficulty: intermediate
  author: nich
  tags: [development, llms-txt-extraction-guide]
---

# llms.txt Documentation Extraction Guide

llm.energy extracts documentation from websites implementing the llms.txt and install.md standards. It transforms raw documentation into structured, agent-ready formats optimized for LLMs.

## Standards

| Standard | Purpose | Specification |
|----------|---------|--------------|
| **llms.txt** | Machine-readable documentation | [llmstxt.org](https://llmstxt.org) |
| **install.md** | LLM-executable installation instructions | [installmd.org](https://installmd.org) |

## What It Does

```
Input: https://docs.chat.sperax.io
    │
    ▼
Auto-detects:
  ├── /llms.txt (summary)
  ├── /llms-full.txt (full docs)
  └── /install.md (setup instructions)
    │
    ▼
Output:
  ├── Individual markdown files per section
  ├── Single concatenated document
  ├── JSON structured output
  └── MCP-compatible tool responses
```

## Quick Start

### Web Interface
Visit [llm.energy](https://llm.energy), paste a URL, and extract.

### CLI
```bash
npx @llm-energy/cli extract https://docs.chat.sperax.io
```

### MCP Server
```json
{
  "mcpServers": {
    "llm-energy": {
      "command": "npx",
      "args": ["@llm-energy/mcp-server"]
    }
  }
}
```

## MCP Tools

| Tool | Description |
|------|-------------|
| `extractDocs` | Extract llms.txt from a URL |
| `extractFull` | Extract llms-full.txt (complete documentation) |
| `extractInstall` | Extract install.md (setup instructions) |
| `detectStandards` | Check which standards a site supports |
| `batchExtract` | Extract from multiple URLs at once |

## REST API

```bash
# Extract documentation
curl https://llm.energy/api/extract?url=https://docs.chat.sperax.io

# Detect standards support
curl https://llm.energy/api/detect?url=https://docs.chat.sperax.io

# Batch extract
curl -X POST https://llm.energy/api/batch \
  -d '{"urls": ["https://docs.chat.sperax.io", "https://docs.aave.com"]}'
```

## Export Formats

| Format | Best For |
|--------|---------|
| **Markdown** | Human reading, GitHub, documentation sites |
| **JSON** | Programmatic consumption, databases |
| **Plain text** | LLM context windows, RAG pipelines |
| **Split files** | Individual section storage |

## Use Cases

### Build a Knowledge Base
Extract docs from multiple DeFi protocols to create a comprehensive AI knowledge base:
```bash
llm-energy batch \
  https://docs.chat.sperax.io \
  https://docs.aave.com \
  https://docs.uniswap.org \
  --output ./defi-knowledge/
```

### Agent Documentation
Give AI agents up-to-date documentation for any tool or protocol they need to use.

### SperaxOS Integration
llm.energy powers the documentation extraction in SperaxOS's knowledge base tool, enabling agents to ingest any protocol's docs on-demand.

## Adding llms.txt to Your Site

To make your site AI-friendly, add these files:

### `/llms.txt` (Summary)
```
# My Protocol

> One-line description

## Docs
- [Getting Started](https://docs.example.com/start)
- [API Reference](https://docs.example.com/api)
```

### `/llms-full.txt` (Full Content)
Concatenation of all documentation pages in a single markdown file.

### `/install.md` (Setup)
Step-by-step installation instructions that an LLM can execute.

## Links

- Website: https://llm.energy
- GitHub: https://github.com/nirholas/extract-llms-docs
- npm: https://www.npmjs.com/package/@llm-energy/mcp-server
- llms.txt spec: https://llmstxt.org
- install.md spec: https://installmd.org

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.