Llmstxt logo

Llmstxt

Community
rainday
llmstxt

Analyzes and generates llms.txt files — the emerging standard for helping AI systems understand website and blog structure. Can validate an existing llms.txt or generate a new one from scratch by crawling the site. Use when user says "llms.txt", "AI guidance file", "AI site map", "help AI understand my site", "llms full", or "generate llms".

Overview

Publisherrainday
Repositorysmart-blog-skills
Skill namellmstxt
Stars
34
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by rainday on GitHub. Read the source before you install it.

Installation

Install the Llmstxt AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/rainday/smart-blog-skills/tree/main/skills/llmstxt
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rainday/smart-blog-skills.git /tmp/smart-blog-skills
mkdir -p .claude/skills
cp -r /tmp/smart-blog-skills/skills/llmstxt .claude/skills/llmstxt
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Llmstxt in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Llmstxt on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Llmstxt is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

llms.txt — AI Site Guidance File

llms.txt は AI システムがウェブサイトの構造と内容を理解するための新興標準(Jeremy Howard, 2024年9月提唱)。robots.txt がクローラーに「アクセスしてはいけないもの」を伝えるのに対し、llms.txt は AI に「最も有用なもの」を伝える。

指令

指令功能
/smart-blog-skills:llmstxt analyze <url>驗證現有 llms.txt 並評分
/smart-blog-skills:llmstxt generate <url>從零爬取網站並生成 llms.txt

為什麼重要

  • 2026 年初,不到 5% 的網站有 llms.txt,早期採用者有明顯優勢
  • AI 系統可從單一檔案理解網站,而非爬取數十頁
  • 控制 AI 對品牌的敘事,提高引用準確性
  • 減少 AI 幻覺(錯誤的定價、功能、地點等)

llms.txt 格式規格

markdown
# [Site Name]

> [一句話說明網站做什麼、服務對象。限 200 字元以內。]

## Docs

- [Page Title](https://example.com/page): 說明頁面涵蓋的具體內容(10-30 字)。

## Optional

- [Secondary Page](https://example.com/other): 補充資源說明。

## Key Facts

- Founded in [year] by [name]
- Headquarters: [City, Country]
- Key products: [A], [B], [C]

## Contact

- Website: https://example.com
- Email: hello@example.com

格式規則

元素規則
H1 標題必填,第一行,使用官方品牌名稱
描述(blockquote >)必填,200 字元以內,具體說明
H2 區段至少一個。常用:Docs / Blog / Products / About / Resources
頁面條目10-30 筆,格式 - [Title](URL): Description
URL絕對路徑,含 https://,不用相對路徑
描述長度每筆 10-30 字,具體說明頁面內容
Key Facts建議加入,提供 AI 快速查詢的事實數據
Contact建議加入,至少含 email

分析模式(analyze)

Step 1: 取得檔案

用 WebFetch 讀取 [domain]/llms.txt 和 [domain]/llms-full.txt。

  • 200:存在,繼續驗證
  • 404:不存在,建議生成
  • 403:設定錯誤,回報

Step 2: 格式驗證

元素嚴重性
H1 標題Critical
Blockquote 描述High
至少一個 H2Critical
至少 5 筆頁面條目High
URL 為絕對路徑High
每筆有描述Medium
Key Facts 區段Medium
Contact 區段Low

Step 3: 內容品質評分

  • Completeness (0-100):是否涵蓋主要導航頁面、高流量頁面、Key Facts
  • Accuracy (0-100):描述是否準確、URL 是否有效、事實是否正確
  • Usefulness (0-100):AI 能否從此檔案單獨理解網站目的

總分 = (Completeness × 0.40) + (Accuracy × 0.35) + (Usefulness × 0.25)

Step 4: 比對網站內容

用 WebFetch 爬主導航和 sitemap,找出重要頁面未列入 llms.txt 的缺口。

分析輸出

生成 GEO-LLMSTXT-ANALYSIS.md:

markdown
# llms.txt 分析:[Domain]

**分析日期:** [Date]
**llms.txt 狀態:** Found / Not Found
**llms-full.txt 狀態:** Found / Not Found

## 總分:[X]/100

| 維度 | 分數 |
|------|------|
| Completeness | [X]/100 |
| Accuracy | [X]/100 |
| Usefulness | [X]/100 |

## 格式驗證

| 元素 | 狀態 | 備註 |
|------|------|------|
| H1 標題 | Pass/Fail | |
| ...(逐項列出)

## 缺漏頁面

1. [Page Title](URL) — 原因

## 改善建議

1. [具體建議]

## 建議更新版 llms.txt

[完整更新後的檔案內容]

生成模式(generate)

Step 1: 網站探索

  1. WebFetch 主頁,提取:網站名稱、業務描述、主導航連結
  2. WebFetch /sitemap.xml 取得所有頁面清單
  3. 判斷網站類型(SaaS、電商、本地服務、部落格、代理商)

Step 2: 頁面優先排序

必須加入:

  • 首頁、關於頁、定價頁、聯絡頁
  • 主要產品/服務頁(前 3-5)

有品質才加入:

  • 重要部落格文章(最新或最全面)
  • 案例研究、導引資源
  • FAQ 頁

跳過:

  • 分頁頁、登入/注冊頁
  • 薄內容的標籤分類頁
  • 重複內容頁

Step 3: 撰寫頁面描述

每筆描述規則:

  • 10-30 字
  • 說明頁面有哪些資訊(事實性,非行銷用語)
  • 好範例:說明三個定價方案(免費、Pro、企業)的功能差異和年費/月費。
  • 差範例:了解更多關於我們的定價方案!(含行銷語,過於模糊)

Step 4: 收集 Key Facts

從網站收集:成立年份、創辦人、總部地點、員工數、客戶數、主要產品、行業分類。

Step 5: 組合與驗證

組合完整 llms.txt → 驗證 URL 均可訪問 → 確認總條目 10-30 筆。

生成輸出

  • 輸出完整 llms.txt 內容(可直接存至網站根目錄)
  • 另輸出 GEO-LLMSTXT-GENERATION.md:說明選取頁面的理由、建議更新頻率

最佳實踐

  1. 定期更新:活躍部落格每月更新,穩定網站每季更新
  2. 以最強內容開頭(最具權威的頁面排最前)
  3. 描述要具體:「含代碼範例的 3,000 字 React Server Components 完整指南」優於「React 指南」
  4. 在 Key Facts 突顯差異化特點(原創研究、獨家數據)
  5. URL 一律用絕對路徑(含 https://)
  6. 確保 llms.txt 中的頁面在 robots.txt 中對 AI 爬蟲是開放的(見 /smart-blog-skills:crawlers)

Frequently asked questions

What does the Llmstxt AI skill do?

Analyzes and generates llms.txt files — the emerging standard for helping AI systems understand website and blog structure. Can validate an existing llms.txt or generate a new one from scratch by crawling the site. Use when user says "llms.txt", "AI guidance file", "AI site map", "help AI understand my site", "llms full", or "generate llms".

Why use Llmstxt on TypingMind?

Because you install it once and use it with any model. Llmstxt is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Llmstxt in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/rainday/smart-blog-skills/tree/main/skills/llmstxt. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Llmstxt?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Llmstxt?

As many as you like. As long as a model supports skills, you can use Llmstxt with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Llmstxt AI skill free?

Yes. It is published on GitHub by rainday under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇