files-to-prompt Directory Concatenator for LLM Context

files-to-prompt by Simon Willison concatenates an entire directory of files into a single prompt for use with LLMs. It supports file extension filtering, gitignore-aware exclusions, Claude XML format output, Markdown fenced code blocks, line numbering, and stdin piping for flexible codebase-to-prompt workflows.

agentskillexchange Updated 28 repo stars

File contents

files-to-prompt Directory Concatenator for LLM Context

files-to-prompt by Simon Willison concatenates an entire directory of files into a single prompt for use with LLMs. It supports file extension filtering, gitignore-aware exclusions, Claude XML format output, Markdown fenced code blocks, line numbering, and stdin piping for flexible codebase-to-prompt workflows.

Installation

Use the upstream install or setup path that matches your environment:

  • pip install files-to-prompt

Basic usage or getting-started notes:

Source

agentskillexchange/skills/tree/main/skills/files-to-prompt-directory-concatenator-llm-context commit 48d8faf0e2

Frequently asked questions

npx skillmds@latest add agentskillexchange/files-to-prompt-directory-concatenator-for-llm-context