WP Manifestindependent plugin directory
manifest / seo / llm-txt-generator

LLM TXT Generator

Adds an llm.txt file to a WordPress website

by Ben Greene · github.com/benrgreene/llm-txt-generator

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/benrgreene/llm-txt-generator/archive/refs/heads/main.zip

A small WordPress plugin that builds an llms.txt file from an admin settings form and writes it to the site root.

What it does

llms.txt is a markdown file that gives large language models a curated map of your site — a title, a short description, and grouped lists of links worth reading. This plugin gives you an admin screen to compose that file and regenerates it on every save, so you don't have to hand-edit the markdown or upload it manually.

  • Adds an LLM TXT menu item to wp-admin (admin-only) with a Settings page.
  • Lets you set a Site Title (the # heading) and Site Description (a > blockquote).
  • Lets you define any number of Sections. Each section becomes a ## heading followed by an optional description and a bullet list of links. Each link has a title and a URL and is rendered as a markdown link (- [Title](https://...)); a link with no title falls back to a bare URL. Sections and their links are added/removed dynamically in the form via JavaScript.
  • On save, it sanitizes the input, persists it to the WordPress options table, and (re)writes the file to ABSPATH . 'llms.txt' — i.e. the install root, next to wp-config.php — so it's served at https://yoursite.com/llms.txt.

What it does not do

  • It does not use AI to build the file. There is no model, no crawling, and no automated content generation anywhere in the plugin — despite the name. The llms.txt file is assembled verbatim from exactly what you type into the settings form.
  • It does not decide what belongs in the file. You choose the title, the description, and every section and URL yourself. The plugin only formats your input as markdown and writes it out; it will not suggest pages, discover links, or curate content for you.

Generated file format

# Site Title

> Site description

## Section title

Optional section description

- [Page one](https://example.com/page-one)
- [Page two](https://example.com/page-two)

Notes

  • Saving is guarded by a nonce and the manage_options capability.
  • The file write needs the WordPress root directory to be writable by the web server. Security plugins like iThemes Security can lock down the base directory and cause the write to fail, so check those if saving errors out.
  • If the sections JSON payload is malformed on submit (e.g. JS failed to run), the previously saved sections are preserved rather than wiped.