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.
Scanned 6/8/2026
Install via CLI
openskills install agentskillexchange/skills---
name: "files-to-prompt Directory Concatenator for LLM Context"
slug: "files-to-prompt-directory-concatenator-llm-context"
description: "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."
github_stars: 2643
verification: "security_reviewed"
source: "https://github.com/simonw/files-to-prompt"
category: "Developer Tools"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "simonw/files-to-prompt"
github_stars: 2643
---
# 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/)
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.