首页 时政热点 科技头条 智能AI 安全攻防 数码硬件 开发者生态 归档 标签 关于

GitHub 热门项目:code2prompt

摘要

GitHub项目:code2prompt 仓库地址:https://github.com/raphaelmansuy/code2prompt Stars:887 | 作者:raphaelmansuy 项目描述:Code2Prompt is a powerful command-line tool that simplifies the process of providing context to...

https code2prompt svg github raphaelmansuy Code2Prompt img shields badge MIT
2026-11-13 1 阅读 约7分钟阅读 GitHub Trending
分享:
字号:
GitHub 项目:code2prompt 仓库地址:https://github.com/raphaelmansuy/code2prompt 星级:887 | 作者:拉斐尔曼苏伊 项目描述:Code2Prompt 是一个功能强大的命令行工具,它通过生成包含代码库内容的综合 Markdown 文件来简化为大型语言模型 (LLM) 提供上下文的过程。 ⭐ 如果您发现 Code2Prompt 有用,请考虑在 GitHub 上给我们一颗星!它帮助我们接触更多的开发人员并改进该工具。 ⭐ =================================================== 自述文件内容: # 代码2提示 [![PyPI 版本](https://badge.fury.io/py/code2prompt.svg)](https://badge.fury.io/py/code2prompt) [![GitHub Stars](https://img.shields.io/github/stars/raphaelmansuy/code2prompt.svg)](https://github.com/raphaelmansuy/code2prompt/stargazers) [![GitHub Forks](https://img.shields.io/github/forks/raphaelmansuy/code2prompt.svg)](https://github.com/raphaelmansuy/code2prompt/network/members) [![PyPI 下载](https://img.shields.io/pypi/dm/qllm.svg)](https://pypi.org/project/code2prompt/) [![PyPI 版本](https://img.shields.io/pypi/v/qllm.svg)](https://pypi.org/project/code2prompt/) [![许可证:MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) Code2Prompt 是一款功能强大的命令行工具,可从代码库生成全面的提示,旨在简化开发人员与大型语言模型 (LLM) 之间的交互,以执行代码分析、文档编制和改进任务。 ## 目录 1. [为什么使用 Code2Prompt?](#why-code2prompt) 2. [功能](#features) 3. [安装](#安装) 4. [入门](#getting-started) 5. [快速入门](#quick-start) 6. [用法](#用法) 7. [选项](#选项) 8. [示例](#examples) 9. [模板系统](#template-system) 10. [与LLM CLI集成](#integration-with-llm-cli) 11. [GitHub Actions 集成](#github-actions-integration) 12. [配置文件](#configuration-file) 13. [疑难解答](#troubleshooting) 14. [贡献](#contributing) 15. [许可证](#license) # Code2Prompt:将您的代码库转换为 AI 就绪提示 [![PyPI 版本](https://badge.fury.io/py/code2prompt.svg)](https://badge.fury.io/py/code2prompt) [![GitHub Stars](https://img.shields.io/github/stars/raphaelmansuy/code2prompt.svg)](https://github.com/raphaelmansuy/code2prompt/stargazers) [![许可证:MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ![](./docs/screen-example1.png) ## 增强您的人工智能辅助开发能力 Code2Prompt 是一个功能强大的开源命令行工具,可以弥合代码库和大型语言模型 (LLM) 之间的差距。通过将整个项目转换为全面的、AI 友好的提示,Code2Prompt 使您能够充分利用 AI 的潜力来执行代码分析、文档编制和改进任务。 ### 🚀 主要特点 - **整体代码库表示**:生成结构良好的 Markdown 提示,捕获整个项目的本质,使法学硕士更容易理解上下文。 - **智能源代码树生成**:创建代码库结构的清晰的分层视图,以便更好地导航和理解项目。 - **可定制的提示模板**:使用 Jinja2 模板定制您的输出以适应特定的 AI 任务,从而增强生成提示的相关性。 - **智能令牌管理**:计算和优化令牌以确保与各种LLM令牌限制兼容,防止过程中出现错误
这篇文章对您有帮助吗?

订阅66必读

每日精选科技资讯,直达你的邮箱