Skip to content

A command-line tool that generates a structured folder view and captures file contents in a single output, designed for easy sharing with AI tools.

License

Notifications You must be signed in to change notification settings

olyaee/PromptPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromptPack

PromptPack is a command-line tool that generates a text file representation of a folder structure, including the contents of specified files. This tool can be useful for sharing project structures and contents with AI tools.

Table of Contents

Installation

  1. Clone the repository:

    git clone <repository_url>
    cd PromptPack
  2. Install dependencies using Poetry:

    poetry install
  3. Activate the virtual environment:

    poetry shell

Usage

Once installed, you can run PromptPack as a command-line tool. The basic syntax is:

promptpack [folder] [options]

If no folder is specified, it defaults to the current directory. The tool will generate a text file, final_prompt.txt, containing the folder structure and specified file contents.

Command-Line Arguments

  • folder (optional): Path to the folder you want to analyze. Defaults to the current directory if not specified.

  • --include_extensions (optional): List of file extensions to include in the output. Example: .py .md. If not specified, all extensions are included except those in excluded_extensions.

  • --excluded_extensions (optional): List of file extensions to exclude from the output. Example: .lock .git. Defaults to [".lock", ".git"].

  • --excluded_filenames (optional): List of specific filenames to exclude. Example: final_prompt.txt .git. Defaults to ["final_prompt.txt", ".git"].

Examples

  1. Generate a folder structure and file contents for the current directory:

    promptpack
  2. Specify a folder to analyze:

    promptpack /path/to/project
  3. Include only Python and Markdown files:

    promptpack /path/to/project --include_extensions .py .md
  4. Exclude specific extensions and filenames:

    promptpack /path/to/project --excluded_extensions .lock .json --excluded_filenames README.md

Output

The output will be saved in final_prompt.txt, including:

  • A hierarchical folder structure view.
  • The contents of files matching the criteria specified by command-line arguments.

License

This project is licensed under the MIT License. See the LICENSE file for details.


This README should help guide you and others on how to install and use PromptPack effectively.

About

A command-line tool that generates a structured folder view and captures file contents in a single output, designed for easy sharing with AI tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages