Skip to content

CLI tool to combine all markdown files from a git repository into a single file. Useful for creating context files for LLMs.

License

Notifications You must be signed in to change notification settings

alejandronanez/repodocs

Repository files navigation

repodocs

A simple CLI tool to combine all markdown files from a git repository into a single file. Useful for creating context files for LLMs.

Installation

npm install -g repodocs

Usage

npx repodocs https://github.com/user/repo

This will:

  1. Clone the repository
  2. Find all .md files
  3. Combine them into a single file named username__repository-name__latestSha__timestamp-YYYY-MM-DD.txt
  4. Clean up temporary files

Each file in the combined output is separated by:

<file
  path="file pathname in the repository"
>

Development

  1. Clone this repository
  2. Run npm install
  3. Make your changes
  4. Test locally with node index.js

License

MIT

About

CLI tool to combine all markdown files from a git repository into a single file. Useful for creating context files for LLMs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published