Generate an llms.txt-style file from GitHub

An llms.txt file gives AI systems a clean map of important site or project information. Riflet can help assemble that source material from GitHub repositories before you publish or maintain the file.

What this workflow is for

Use this when your source material already exists but is scattered across pages, notes, docs, or exports.

Riflet helps collect and structure the material. You still decide what belongs in the public llms.txt file.

Why GitHub is a particular case

A repository is the most natural fit, because the README, the docs directory, and the API reference are already written for an outside reader. They form a ready-made spine for llms.txt with almost no rewriting.

Prefer the documentation over the source. llms.txt is a map, and a link to the docs entrypoint is more useful to an AI system than a listing of every module.

What to leave out of a GitHub bundle

llms.txt is published. Everything in it is readable by anyone and by every AI system that fetches it, so the exclusions matter more than the inclusions.

  • Issue templates, CI configuration, and dependency manifests.
  • Internal architecture decision records that assume team context.
  • Anything in a private repository, even when the docs feel public.

Workflow

Add the repository source, include the files relevant to the task, and use filters to remove generated output, dependencies, and test fixtures.

  • Collect the authoritative GitHub pages or files.
  • Remove private, duplicate, stale, or low-value material.
  • Export a concise Markdown bundle.
  • Use the bundle to draft or refresh llms.txt and llms-full.txt.

What to include

Prioritize stable, public, canonical information: product overview, important URLs, docs entrypoints, use cases, and contact details.

Avoid turning llms.txt into a full website dump. It should help AI systems discover the best sources, not replace your site.

Build your AI context file with Riflet

Select the sources that matter, check the token budget, and export one clean file for the AI you already use.

Download Riflet free

Frequently asked questions

Can I use this llms.txt from GitHub bundle in more than one AI tool?

Yes. Riflet exports plain text or Markdown, so the same context file can be used in Claude, ChatGPT, Gemini, Perplexity, or a local model if that tool accepts pasted text or file uploads.

Does Riflet automatically update the AI after my files change?

No. Riflet is deliberately export-based. When your files change, reopen the workspace, let Riflet reapply the saved sources and filters, export a fresh bundle, and upload it where you want to use it.

How do I avoid giving AI too much context?

Start with the decision or task, then include only the files that would help a smart human answer it. Use Riflet's token count to remove stale, duplicated, generated, or background-only files before exporting.

Do my files leave my computer when Riflet builds the bundle?

Riflet processes selected files locally. Your content leaves your machine only if you choose to paste or upload the exported bundle into an AI product.