一键导入
install-llmify
Install and configure the LLMify Craft CMS plugin step by step
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Install and configure the LLMify Craft CMS plugin step by step
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | install-llmify |
| description | Install and configure the LLMify Craft CMS plugin step by step |
This guide tells an AI agent how to install and set up the LLMify plugin in a Craft CMS 5 project.
Run the following commands in the Craft project root:
composer require samuelreichor/craft-llmify
php craft plugin/install llmify
If the project uses DDEV:
ddev composer require samuelreichor/craft-llmify
ddev craft plugin/install llmify
llms.txt file.Wrap the content you want converted to markdown with the {% llmify %} tag in your Twig templates:
{% llmify %}
<h1>{{ entry.title }}</h1>
<div>{{ entry.bodyContent }}</div>
{% endllmify %}
Multiple {% llmify %} blocks per template are supported — their content is merged into a single markdown file.
To exclude specific parts within an llmify block:
{% llmify %}
<h1>{{ entry.title }}</h1>
{% excludellmify %}
<nav>...</nav>
{% endexcludellmify %}
<div>{{ entry.bodyContent }}</div>
{% endllmify %}
You can also exclude content by adding the exclude-llmify CSS class to any HTML element. This class name is configurable via the config file.
Generate markdown for all enabled entries using one of these methods:
php craft llmify/markdown/generate
To clear all generated markdown and start fresh:
php craft llmify/markdown/clear
Go to LLMify → Dashboard to see an overview of your setup:
After generating markdown, verify these URLs are accessible:
/llms.txt — Summary file listing all enabled entries/llms-full.txt — Full content of all entries/.well-known/llms.txt — RFC 8615 compliant discovery endpoint/raw/{entry-uri}.md — Individual markdown page (if markdownUrlPrefix is set)Test auto-serve markdown with:
curl -H "Accept: text/markdown" https://your-site.com/your-entry-url
For detailed configuration options and advanced usage, see the LLMify documentation.