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. ⭐
This command-line tool helps developers prepare their codebase for interaction with Large Language Models (LLMs). It takes a project's source code files and converts them into a comprehensive, well-structured Markdown prompt. Developers can use this prompt for tasks like code analysis, documentation generation, and identifying areas for improvement with AI assistance.
882 stars. No commits in the last 6 months. Available on PyPI.
Use this if you are a software developer who wants to feed your entire project's code or specific files into an AI model (LLM) for tasks like generating documentation, refactoring suggestions, or understanding complex logic.
Not ideal if you are looking for a GUI-based solution or if your primary goal is not to interact with LLMs using your codebase as context.
Stars
882
Forks
58
Language
Python
License
MIT
Category
Last pushed
Jun 10, 2025
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
jujumilk3/leaked-system-prompts
Collection of leaked system prompts
legeling/PromptHub
一款开源、纯本地 Prompt ,Skill 管理工具,帮助你高效管理、版本控制和复用 Prompt,并一键分发skill | An open-source, local-first AI...