llms-txt

llms-txt is a command for coding agents from littlebearapps/pitchdocs. It costs 21 tokens per session (596 once invoked), scanned A, original, MIT.

A command that creates an llms.txt index for a project's documentation, following the llmstxt.org format. It can also create llms-full.txt containing the referenced documents.

In plain words
What is it for?
Use it to scan README files, guides, API references, examples, and supporting project documents, then group them into a linked documentation index.
Why use it?
It gives AI coding assistants and search engines a structured way to find and understand project documentation instead of scanning files without guidance.

Command

Part of the pitchdocs plugin — 16 skills, 15 commands, 4 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/littlebearapps/pitchdocs/llms-txt
Clone the repo
git clone --depth 1 https://github.com/littlebearapps/pitchdocs

Or install pitchdocs, the plugin that ships this one along with the rest of its 16 skills, 15 commands, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llms-txt

README.md
[![agentmods](https://agentmods.dev/badge/commands/littlebearapps/pitchdocs/llms-txt.svg)](https://agentmods.dev/commands/littlebearapps/pitchdocs/llms-txt)
Your own site
<a href="https://agentmods.dev/commands/littlebearapps/pitchdocs/llms-txt"><img src="https://agentmods.dev/badge/commands/littlebearapps/pitchdocs/llms-txt.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 596 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00596
Opus 5 $0.00010 $0.00298
Sonnet 5 $0.00004 $0.00119
Haiku 4.5 $0.00002 $0.00060

Measured 5d ago against content hash fc791dc07526, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

llms-txt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/llms-txt.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/llms-txt

Generate an llms.txt file (and optionally llms-full.txt) following the llmstxt.org specification. This provides AI coding assistants and search engines with a structured index of your project's documentation.

Behaviour

  1. Load the llms-txt skill for the specification and generation patterns
  2. Load the doc-standards rule for description quality
  3. Read the project manifest (package.json, pyproject.toml, etc.) for name and description
  4. Scan the repository for documentation files:
    • Core: README.md, docs/, API reference
    • Guides: docs/guides/
    • Examples: examples/
    • Supporting: CONTRIBUTING.md, CHANGELOG.md, SECURITY.md, CODE_OF_CONDUCT.md, ROADMAP.md, LICENSE
  5. Write benefit-focused descriptions for each file (not just file names)
  6. Assemble llms.txt following the spec:
    • H1 from project name
    • Blockquote from manifest description or README first paragraph
    • H2 sections grouping docs by category
    • ## Optional for supporting files
  7. If full argument: concatenate all referenced files into llms-full.txt

Output Files

File Content When
llms.txt Index with relative links and benefit-focused descriptions Always
llms-full.txt Concatenated Markdown of all referenced docs Only with full argument

Description Quality

Every file annotation must be benefit-focused:

Good: [Getting Started](./docs/guides/getting-started.md): Install, configure, and deploy your first worker in under 5 minutes

Bad: [Getting Started](./docs/guides/getting-started.md): Getting started guide

Use at least 3 different benefit categories across the file (Time saved, Confidence gained, Pain avoided, Capability unlocked, Cost reduced).

Arguments

  • No arguments: generate llms.txt only for the current project
  • full: generate both llms.txt and llms-full.txt
  • Path argument: generate for a specific project directory

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 64 lines · 21 tokens per session scan A fc791dc07526

Subscribe to this mod's changes

llms-txt is a command published in the GitHub repository littlebearapps/pitchdocs (8 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 596 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.