Web2LLM

Convert Web Documents to LLM-Friendly Markdown

Web2LLM was a fun little experiment to convert arbitrary web docs into LLM friendly MD files.

I found that simply asking Claude Code is easier and better. Here's the sample slash command:

---
description: "Process webpages and create markdown files"
argument-hint: "URL1 URL2 ..."
allowed-tools: ["WebFetch", "Write", "Bash", "LS", "Glob"]
---

Process the provided webpage URLs and create comprehensive documentation:

1. **Fetch and analyze each webpage**: Extract relevant content from 

$ARGUMENTS

2. **Create organized documentation structure**:
   - Create a subfolder in the `docs` folder with a relevant name based on the content
   - Generate separate markdown files for each webpage with cleaned content
   - Remove navigation, ads, links, images, and other unrelated elements
   - Keep only relevant information: descriptions, examples, code snippets, and core content
3. **Generate summary**: Create a README.md file in the subfolder that summarizes all the processed content

**Process each URL systematically**:
- Analyze content and determine appropriate folder name
- Clean and extract meaningful content only
- Structure information in readable markdown format
- Provide comprehensive overview in README.md