Skip to content

A CLI tool to scan codebases and generate a markdown file for using as context when prompting a LLM

License

Notifications You must be signed in to change notification settings

Hsaka/llm-codebase-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM Codebase Scanner

A powerful command-line tool for scanning and documenting codebases, with special support for .NET solutions.

Features

  • 📁 Generates comprehensive markdown documentation of your codebase structure, ready for use as context when prompting a LLM like ChatGPT or Claude
  • 🔍 Analyzes .NET solution and project files
  • 📝 Creates detailed source code documentation
  • 🎨 Beautiful console output with progress indicators
  • 🎯 Configurable file extensions and ignore patterns

Installation

npm install -g llm-codebase-scanner

Usage

llm-codebase-scanner [options]

Options

  • -i, --input <path> - Input directory path (default: current directory)
  • -o, --output <path> - Output markdown file path (default: codebase-documentation.md)
  • -v, --verbose - Enable verbose logging
  • --ignore <dirs> - Comma-separated list of directories to ignore
  • --extensions <exts> - Comma-separated list of file extensions to include
  • --no-solution - Skip solution file analysis
  • --version - Show version number
  • --help - Show help

Examples

Scan current directory:

llm-codebase-scanner

Scan specific directory:

llm-codebase-scanner -i /path/to/project

Customize ignored directories:

llm-codebase-scanner --ignore "node_modules,dist,build"

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A CLI tool to scan codebases and generate a markdown file for using as context when prompting a LLM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published