files-to-promptllm

files-to-prompt, by Simon Willison, concatenates files from a directory into a prompt for large language models. It supports file-extension filtering, gitignore-based exclusions, Claude XML output, Markdown fenced code blocks, optional line numbers, and stdin pipe input.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "files-to-promptllm" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e575c6c9a2db44bb72363b31a1ac59aa30f9cb4dccac8f981ab7722da6997925. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/files-to-prompt-directory-concatenator-llm-context before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

files-to-prompt, by Simon Willison, concatenates files from a directory into a prompt for large language models. It supports file-extension filtering, gitignore-based exclusions, Claude XML output, Markdown fenced code blocks, optional line numbers, and stdin pipe input.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "files-to-prompt LLM上下文的目录连接器"
slug: "files-to-prompt-directory-concatenator-llm-context"
version: "1.0.0"
displayName: "files-to-prompt LLM上下文的目录连接器"
summary: "files-to-prompt 由 Simon Willison 制作,将整个目录的文件连接成一个提示词以供大语言模型使用。它支持文件扩展名过滤、基于 gitignore 的排除规则、Claude XML 格式输出、Markdown 围栏代码块、行号显示以及 stdin 管道输入,用于灵活的代码库到提示词的工作流程。"
license: "MIT"
description: "files-to-prompt 由 Simon Willison 制作,将整个目录的文件连接成一个提示词以供大语言模型使用。它支持文件扩展名过滤、基于 gitignore 的排除规则、Claude XML 格式输出、Markdown 围栏代码块、行号显示,以及 stdin 管道输入,用于灵活的代码库到提示词的工作流程。"
github_stars: 2643
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Developer Tools"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 2643

files-to-prompt LLM上下文的目录连接器

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:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供代码库到 LLM 提示词的灵活转换能力,满足开发者上下文聚合需求
  • 支持多种输出格式和过滤规则,适用场景广泛
Trigger Precision90/100

Highlights

  • description 完整覆盖功能特性与使用场景,触发边界清晰
Structure and Standards70/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档缺少详细的使用场景说明和端到端示例

    Recommendation: 补充 When to Use 章节和具体使用示例,帮助用户快速上手

Highlights

  • frontmatter 完整,包含必要元数据
  • 基本使用流程说明清晰
Execution Reliability70/100

Areas to improve

  • 主要异常未处理 Reported severity: Minor

    未覆盖路径不存在、权限错误等常见异常情况

    Recommendation: 补充异常处理说明和错误恢复机制

Highlights

  • 工具来源明确,安装方式清晰
  • 参数使用合理,基础功能可靠
Evidence Verifiability (mean of the first four)76/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 26
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.