Hoppa till huvudinnehåll

Prompt My Repo VSCode extension

GitHub Repo Last Updated VS Code Marketplace TypeScript LLM Assisted

Extension Preview


📌 Overview

Prompt My Repo is a VS Code extension that simplifies interactions with Large Language Models (LLMs) by packaging codebases into structured text formats. Ideal for:

  • Generating context-aware documentation
  • Debugging complex codebases
  • Creating reproducible LLM prompts

Simply define files/directories in a template, and the extension automatically:

  1. Copies specified content with directory structure
  2. Formats output with relative paths
  3. Saves results to your clipboard

Workflow Example


🌟 Key Features

CategoryDetails
Core FunctionalityMulti-file aggregation, template-based selection, structure preservation
Advanced FeaturesRecursive directory search (* syntax), smart clipboard integration, VS Code native integration

🛠 Technical Highlights

  • Language: TypeScript (v4.9.5)
  • Core Architecture:
    • VS Code API integration for file system access
    • Recursive directory traversal algorithm
    • Clipboard module with error handling
  • Development Approach:
    • LLM-assisted code optimization
    • Semantic versioning
    • Automated marketplace publishing

🚀 Get Started

  1. Install from VS Code Marketplace
  2. Create .prompt-my-repo template file
  3. Run command Prompt My Repo: Generate Output
# Example .prompt-my-repo template
src/utils/*
config.json
README.md

📂 Repository Structure

prompt-my-repo/
├── src/
│ ├── extension.ts # Core logic
│ └── templateParser.ts # Template processor
├── package.json # Extension manifest
└── .prompt-my-repo # Sample template