raphaelmansuy/code2prompt
Code2Prompt is a powerful command-line tool that simplifies the process of providing context to Large Language Models (LLMs) by generating a comprehensive Markdown file containing the content of your codebase. ⭐ If you find Code2Prompt useful, consider giving us a star on GitHub! It helps us reach more developers and improve the tool. ⭐
Here's a technical summary for the developer directory: Supports Jinja2-based templating with modular includes and input variables for dynamic prompt generation, enabling customized outputs for specific AI tasks. Features intelligent token counting to respect LLM limits, `.gitignore`-aware filtering with glob pattern support, and syntax-highlighting mappings for custom file extensions. Integrates with LLM CLI tools and GitHub Actions for automation, with clipboard output and line-number annotation capabilities for precise code referencing.
882 stars and 802 monthly downloads. No commits in the last 6 months. Available on PyPI.
Stars
882
Forks
58
Language
Python
License
MIT
Category
Last pushed
Jun 10, 2025
Monthly downloads
802
Commits (30d)
0
Dependencies
11
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/raphaelmansuy/code2prompt"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
BoundaryML/baml
The AI framework that adds the engineering to prompt engineering (Python/TS/Ruby/Java/C#/Rust/Go...
deanpeters/product-manager-prompts
A repository of Generative AI prompts for product managers using agents such as ChatGPT, Claude, & Gemini
eudk/awesome-ai-tools
🔴 VERY LARGE AI TOOL LIST! 🔴 Curated list of AI Tools - Updated 2026
legeling/PromptHub
一款开源、纯本地 Prompt ,Skill 管理工具,帮助你高效管理、版本控制和复用 Prompt,并一键分发skill | An open-source, local-first AI...
snwfdhmp/awesome-gpt-prompt-engineering
A curated list of awesome resources, tools, and other shiny things for LLM prompt engineering.