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 flexib
What it does
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:
-
bash
-
To use files-to-prompt, provide the path to one or more files or directories you want to process:
-
files-to-prompt path/to/file_or_directory [path/to/another/file_or_directory ...]
-
Extracted from upstream docs: https://raw.githubusercontent.com/simonw/files-to-prompt/HEAD/README.md
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,003 chars)