llms.txt File Builder — llms.txt工具
v1.0.1[AI辅助] Generate, validate, and optimize llms.txt files for AI crawler accessibility. Creates structured markdown files that help AI platforms (ChatGPT, Perplexity,...
详细分析 ▾
运行时依赖
版本
**Big update: Adds generation and validation scripts, quality guides, and comprehensive documentation.** - Introduced scripts for automated llms.txt file generation and validation. - Added detailed references: standard specification, quality guidelines, and example files. - Expanded SKILL.md with usage instructions, advanced options, and output formats. - Improved guidance on proper structure, tone, and deployment of llms.txt files.
安装命令 点击复制
技能文档
Methodology by GEOly AI (geoly.ai) — GEO infrastructure for the AI search era.
Generate well-structured llms.txt files to help AI platforms understand and cite your content.
Quick 开始
Generate an llms.txt file for any website:
python scripts/generate_llms_txt.py [--output llms.txt]
Example:
python scripts/generate_llms_txt.py example.com --output llms.txt
什么 llms.txt?
The llms.txt standard helps AI crawlers understand:
- 什么 brand/company 做
- 哪个 pages contain 最多 valuable information
- 如何 content organized (products, docs, blog, etc.)
- 在哪里 到 查找 键 facts 和 data
满 standard details: See references/standard.md
Standard 格式
# [Brand Name][One-sentence brand description]
[2-3 paragraph overview: what you do, who it's for, key differentiators]
Key Pages
- Page Title: One-line description
- Page Title: One-line description
Products / Services
- Product Name: What it does and who it's for
Documentation
- Doc Title: What this doc explains
Blog / Resources
- Article Title: Key insight or topic covered
About
Generation Methods
方法 1: 从 Sitemap (Automated)
python scripts/generate_llms_txt.py example.com --from-sitemap
Automatically fetches sitemap.xml, analyzes each page, and generates descriptions.
方法 2: Interactive (Guided)
python scripts/generate_llms_txt.py example.com --interactive
Prompts you for brand info and key URLs, then drafts descriptions.
方法 3: 从 URL 列表
python scripts/generate_llms_txt.py example.com --urls urls.txt
Where urls.txt contains one URL per line.
Validation
Validate an existing llms.txt file:
python scripts/validate_llms_txt.py llms.txt
Checks for:
- Proper markdown structure
- 有效 URLs
- 否 duplicate entries
- Optimal 链接 计数 (15-40 pages)
- Factual tone (不 promotional)
Quality Criteria
| Aspect | Good | Bad |
|---|---|---|
| Brand description | "GEOly AI is a GEO monitoring platform tracking brand visibility across ChatGPT, Perplexity, Gemini." | "We are the best AI SEO tool ever!" |
| Page descriptions | "Explains how to set up MCP integration with Claude Desktop" | "Our awesome docs page" |
| Link count | 15–40 curated pages | 500+ URLs (sitemap dump) |
| Tone | Factual, entity-focused | Promotional, keyword-stuffed |
| Structure | Clear sections by content type | Flat list or random order |
输出 Formats
- Markdown (默认): 就绪-到-deploy llms.txt
- JSON: Structured data 对于 programmatic 使用
- HTML: Styled 预览 对于 stakeholder review
Advanced Usage
Custom Sections
python scripts/generate_llms_txt.py example.com \
--sections "Products,API Reference,Case Studies,Changelog"
Exclude Patterns
python scripts/generate_llms_txt.py example.com \
--exclude "/admin/,/private/,/draft/"
Multi-language Support
python scripts/generate_llms_txt.py example.com \
--language zh-CN \
--output llms-zh.txt
Deployment
Once generated, place the file at:
https://[your-domain]/llms.txt
Ensure it:
- Returns HTTP 200
- accessible 没有 authentication
- 有
Content-类型: text/plain或text/markdown
See 也
- 满 standard specification: references/standard.md
- Quality guidelines: references/quality-guide.md
- Examples 画廊: references/examples.md
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制