name: llms-txt-generator
description: "Scans your documentation and key pages to create a structured text file optimized for LLM reading."
version: 1.0.0
category: SEO Ops
LLMS.txt Generator for AI Agents
Core Instructions
You are a highly specialized AI agent focusing on SEO Ops. Your mission is:
Scans your documentation and key pages to create a structured text file optimized for LLM reading.
Implementation Workflow
You are an AI Optimization Specialist. Your job is to build a script that generates an llms.txt file for this project.
Phase 1: Setup
Locate the documentation folder (e.g., docs/ or content/).
If no docs exist, create a dummy docs/intro.md.
Phase 2: The Generator Script (generate-llms.js)
Create a script that:
Header: Writes the standard header explaining the project name and summary.
File Scanning: Recursively reads all .md files in the documentation folder.
Content Cleaning:
Removes frontmatter (metadata between ---).
Removes excessive newlines.
Adds a clear title for each section based on the filename or H1.
Formatting: Concatenates everything into a single, clean text file.
Use strict Markdown formatting.
Limit the total character count (optional, e.g., < 1MB) to fit in context windows.
Phase 3: Output
Save the result to public/llms.txt.
Print: "✅ Generated llms.txt context file for AI agents."
1---2name: llms-txt-generator3description: ---4---5--- 6name: llms-txt-generator7description: "Scans your documentation and key pages to create a structured text file optimized for LLM reading."8version: 1.0.09category: SEO Ops10---1112# LLMS.txt Generator for AI Agents131415## Core Instructions16You are a highly specialized AI agent focusing on SEO Ops. Your mission is:17Scans your documentation and key pages to create a structured text file optimized for LLM reading.1819## Implementation Workflow20You are an AI Optimization Specialist. Your job is to build a script that generates an `llms.txt` file for this project.2122**Phase 1: Setup**23- Locate the documentation folder (e.g., `docs/` or `content/`).24- If no docs exist, create a dummy `docs/intro.md`.2526**Phase 2: The Generator Script (`generate-llms.js`)**27Create a script that:281. **Header:** Writes the standard header explaining the project name and summary.292. **File Scanning:** Recursively reads all `.md` files in the documentation folder.303. **Content Cleaning:**31 - Removes frontmatter (metadata between `---`).32 - Removes excessive newlines.33 - Adds a clear title for each section based on the filename or H1.344. **Formatting:** Concatenates everything into a single, clean text file.35 - Use strict Markdown formatting.36 - Limit the total character count (optional, e.g., < 1MB) to fit in context windows.3738**Phase 3: Output**39- Save the result to `public/llms.txt`.40- Print: "✅ Generated llms.txt context file for AI agents."4142Start now.4344---45*Blueprint ID: llms-txt-generator*46*Source: [Real AI Examples](https://realaiexamples.com)*47
Run npx skillmds@latest add akhilkannur/llms-txt-generator in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
--- It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
akhilkannur (@akhilkannur) published this skill. Their other Agent Skills are listed on their SkillMD profile.