# 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.

- Skill: `agentskillexchange/files-to-prompt-directory-concatenator-for-llm-context` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/files-to-prompt-directory-concatenator-for-llm-context`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/files-to-prompt-directory-concatenator-for-llm-context/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/files-to-prompt-directory-concatenator-for-llm-context

---


# 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 ...]

- Source: https://github.com/simonw/files-to-prompt
- Extracted from upstream docs: https://raw.githubusercontent.com/simonw/files-to-prompt/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/files-to-prompt-directory-concatenator-llm-context/)

