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. ⭐

52
/ 100
Established

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.

software-development AI-assisted-coding code-analysis documentation-generation LLM-prompt-engineering
Stale 6m
Maintenance 2 / 25
Adoption 10 / 25
Maturity 25 / 25
Community 15 / 25

How are scores calculated?

Stars

882

Forks

58

Language

Python

License

MIT

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.