[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-PickleBoxer--dev-chatgpt-prompts":3,"tool-PickleBoxer--dev-chatgpt-prompts":64},[4,17,25,39,48,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",138956,2,"2026-04-05T11:33:21",[13,14,15],"开发框架","Agent","语言模型","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":10,"last_commit_at":23,"category_tags":24,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,15],{"id":26,"name":27,"github_repo":28,"description_zh":29,"stars":30,"difficulty_score":10,"last_commit_at":31,"category_tags":32,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[33,34,35,36,14,37,15,13,38],"图像","数据工具","视频","插件","其他","音频",{"id":40,"name":41,"github_repo":42,"description_zh":43,"stars":44,"difficulty_score":45,"last_commit_at":46,"category_tags":47,"status":16},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,3,"2026-04-04T04:44:48",[14,33,13,15,37],{"id":49,"name":50,"github_repo":51,"description_zh":52,"stars":53,"difficulty_score":45,"last_commit_at":54,"category_tags":55,"status":16},519,"PaddleOCR","PaddlePaddle\u002FPaddleOCR","PaddleOCR 是一款基于百度飞桨框架开发的高性能开源光学字符识别工具包。它的核心能力是将图片、PDF 等文档中的文字提取出来，转换成计算机可读取的结构化数据，让机器真正“看懂”图文内容。\n\n面对海量纸质或电子文档，PaddleOCR 解决了人工录入效率低、数字化成本高的问题。尤其在人工智能领域，它扮演着连接图像与大型语言模型（LLM）的桥梁角色，能将视觉信息直接转化为文本输入，助力智能问答、文档分析等应用场景落地。\n\nPaddleOCR 适合开发者、算法研究人员以及有文档自动化需求的普通用户。其技术优势十分明显：不仅支持全球 100 多种语言的识别，还能在 Windows、Linux、macOS 等多个系统上运行，并灵活适配 CPU、GPU、NPU 等各类硬件。作为一个轻量级且社区活跃的开源项目，PaddleOCR 既能满足快速集成的需求，也能支撑前沿的视觉语言研究，是处理文字识别任务的理想选择。",74913,"2026-04-05T10:44:17",[15,33,13,37],{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":45,"last_commit_at":62,"category_tags":63,"status":16},2181,"OpenHands","OpenHands\u002FOpenHands","OpenHands 是一个专注于 AI 驱动开发的开源平台，旨在让智能体（Agent）像人类开发者一样理解、编写和调试代码。它解决了传统编程中重复性劳动多、环境配置复杂以及人机协作效率低等痛点，通过自动化流程显著提升开发速度。\n\n无论是希望提升编码效率的软件工程师、探索智能体技术的研究人员，还是需要快速原型验证的技术团队，都能从中受益。OpenHands 提供了灵活多样的使用方式：既可以通过命令行（CLI）或本地图形界面在个人电脑上轻松上手，体验类似 Devin 的流畅交互；也能利用其强大的 Python SDK 自定义智能体逻辑，甚至在云端大规模部署上千个智能体并行工作。\n\n其核心技术亮点在于模块化的软件智能体 SDK，这不仅构成了平台的引擎，还支持高度可组合的开发模式。此外，OpenHands 在 SWE-bench 基准测试中取得了 77.6% 的优异成绩，证明了其解决真实世界软件工程问题的能力。平台还具备完善的企业级功能，支持与 Slack、Jira 等工具集成，并提供细粒度的权限管理，适合从个人开发者到大型企业的各类用户场景。",70612,"2026-04-05T11:12:22",[15,14,13,36],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":75,"owner_name":76,"owner_avatar_url":77,"owner_bio":78,"owner_company":79,"owner_location":79,"owner_email":79,"owner_twitter":79,"owner_website":80,"owner_url":81,"languages":79,"stars":82,"forks":83,"last_commit_at":84,"license":79,"difficulty_score":85,"env_os":86,"env_gpu":87,"env_ram":87,"env_deps":88,"category_tags":91,"github_topics":92,"view_count":10,"oss_zip_url":79,"oss_zip_packed_at":79,"status":16,"created_at":101,"updated_at":102,"faqs":103,"releases":104},3038,"PickleBoxer\u002Fdev-chatgpt-prompts","dev-chatgpt-prompts","📚 Personal collection of ChatGPT prompts for developers!","dev-chatgpt-prompts 是一个专为开发者打造的 ChatGPT 提示词个人收藏库，旨在通过高质量的指令模板激发创作灵感并提升工作效率。它主要解决了开发者在日常工作中面临的代码重构、文档编写、错误调试及架构设计等痛点，帮助用户跳出思维定式，快速找到问题的创新解决方案。\n\n无论是编程初学者还是资深专家，都能从中获益。该资源库内容分类清晰，不仅涵盖面向程序员的代码生成、单元测试编写、正则表达式构建及 Dockerfile 创建等硬核技术场景，还包含了针对学生、营销人员和内容创作者的专属提示词。其独特的技术亮点在于提供了一套系统的“多提示词链（Prompt Chaining）”工作流，引导用户按步骤完成从代码现代化改造、逻辑与安全审查、建议验证到最终编码测试的全过程。此外，它还支持利用 Mermaid 语法自动生成架构图和实体关系图，让复杂的技术概念可视化。如果你希望借助 AI 优化开发流程或拓展职业技能，dev-chatgpt-prompts 都是一个实用且丰富的参考指南。","# 🤖 DEV ChatGPT Prompts\n\nWelcome to my personal collection of ChatGPT prompts for developers! 🙌\n\nThis repository contains a list of powerful ChatGPT prompts that can help you get the creative juices flowing. 💡 Whether you are a beginner or an experienced pro, these prompts can help you think outside the box and find new solutions to problems. 🚀\n\nThe list is divided into categories: [ prompts for coders, students, marketers, and content writers ]. So no matter your profession, there is something here for everyone! 😊 Let’s dive right into these powerful ChatGPT prompts that can help take your creativity to the next level! 🌊\n\n## Table of Contents\n\nPrompts for Coders\n\n- [🚩 Tips](#-tips)\n- [🔗 A Multi-Prompt Approach (Prompt Chaining)](#-a-multi-prompt-approach-prompt-chaining)\n  - [1. Modernize and add best practices](#1-modernize-and-add-best-practices)\n  - [2. Review your code for logical errors and security concerns](#2-review-your-code-for-logical-errors-and-security-concerns)\n  - [3. Validate the recommendations (reflection)](#3-validate-the-recommendations-reflection)\n  - [4. Write the Code](#4-write-the-code)\n  - [5. Create Tests](#5-create-tests)\n- [Re-write Prompt](#re-write-prompt)\n- [ChatGPT prompt optimizer](#chatgpt-prompt-optimizer)\n- [Ask for alternatives](#ask-for-alternatives)\n- [Documentation \u002F Explanation](#documentation--explaination)\n  - [📣 Adding Documentation](#-adding-documentation)\n  - [📣 Write your terms and conditions](#-write-your-terms-and-conditions)\n  - [📣 Produce cheat sheets](#-produce-cheat-sheets)\n  - [📣 Generate Readme Files](#-generate-readme-files)\n  - [📣 Write detailed blogs](#-write-detailed-blogs)\n  - [📣 Explain Code](#-explain-code)\n  - [📣 Architecture Diagram (Mermaid)](#-architecture-diagram-mermaid)\n  - [📣 Entity Relationship Diagram (Mermaid)](#-entity-relationship-diagram-mermaid)\n- [Code Refactoring](#code-refactoring)\n  - [📣 Refactor Code](#-refactor-code)\n  - [📣 Modernizing Old Code](#-modernizing-old-code)\n  - [📣 Code in to Multiple Methods](#-code-in-to-multiple-methods)\n  - [📣 Better Performance](#-better-performance)\n  - [📣 Adding a Parameter to a Function](#-adding-a-parameter-to-a-function)\n  - [📣 Adding Coding Best Practices or Principles](#-adding-coding-best-practices-or-principles)\n  - [📣 Follow coding style guidelines](#-follow-coding-style-guidelines)\n  - [📣 Detecting and Fixing Errors](#-detecting-and-fixing-errors)\n  - [📣 Debug a React component](#-debug-a-react-component)\n  - [📣 Create Unit Tests](#-create-unit-tests)\n  - [📣 Transpiling Code](#-transpiling-code)\n  - [📣 Responsive Design](#-responsive-design)\n  - [📣 Internationalization](#-internationalization)\n  - [📣 Add comments to code](#-add-comments-to-code)\n- [Code Generation](#code-generation)\n  - [📣 Create Functions](#-create-functions)\n  - [📣 Generate a Dockerfile](#-generate-a-dockerfile)\n  - [📣 Write a RegEx](#-write-a-regex)\n  - [📣 Create a Class](#-create-a-class)\n  - [📣 Add Functionality](#-add-functionality)\n  - [📣 Create Boilerplate Code](#-create-boilerplate-code)\n  - [📣 You are a world-class software engineer](#-you-are-a-world-class-software-engineer)\n- [Code Review](#code-review)\n  - [📣 Error Handling](#-error-handling)\n  - [📣 Suggest Improvements](#-suggest-improvements)\n- [Product Service Promotion](#product-service-promotion)\n  - [📣 Generate innovative product ideas](#-generate-innovative-product-ideas)\n  - [📣 Develop a unique value proposition](#-develop-a-unique-value-proposition)\n  - [📣 Master the art of storytelling for marketing](#-master-the-art-of-storytelling-for-marketing)\n  - [📣 Create a successful referral program](#-create-a-successful-referral-program)\n  - [📣 Master the art of upselling and cross-selling](#-master-the-art-of-upselling-and-cross-selling)\n  - [📣 Create a viral marketing campaign](#-create-a-viral-marketing-campaign)\n  - [📣 Develop a powerful elevator pitch](#-develop-a-powerful-elevator-pitch)\n  - [📣 Create an actionable marketing plan](#-create-an-actionable-marketing-plan)\n  - [📣 Leverage content marketing for lead generation](#-leverage-content-marketing-for-lead-generation)\n\n## 🚩 Tips\n\nLike many things in life, with GPT-4, you get out what you put in. In this case, providing more context, instructions, and guidance will usually produce better results.\n\nHere are some tips and techniques to improve:\n\n- **Split your prompts:**\nTry breaking your prompts and desired outcome across multiple steps. Keeping prompts to have a single outcome has shown to produce better results than combined prompts. For example, ask for a review, then ask for a refactor based on the review response. This may become less important in time as LLMs increase their token limit.\n\n- **Give Examples:**\nProvide expected inputs, data and outputs to improve accuracy quality. 📝\n\n- **Be Specific:**\nDon’t be afraid to list exactly what you want, what you know, what is needed, and what not to include. 🔎\n\n- **Ask it to Reflect:**\nA technique called reflexion has been shown to increase GPT4’s accuracy. Basically ask it ‘Why were you wrong?’ or get it to reflect and review its own response. 🤔\n\n## 🔗 A multi-prompt approach (prompt chaining)\n\ncan be used to update, refactor, and review a piece of code. A well-designed set of prompts is one where each has separated concerns and singular responsibilities.\n\n### 1. Modernize and add best practices\n\n---\n\nby getting GPT-4 to re-write your code into the style you want. This step will generally result in coherent output, in the style you want, but may introduce errors, so we do it first.\n\n**Prompt:**\n\n```\nReview the following code and re-write it to modern es6 programming standards and formatting:\n\n[insert code here]\n```\n\n### 2. Review your code for logical errors and security concerns\n\n---\n\nGet recommendations to improve any logical or security concerns introduced. It’s important that we don’t ask for a refactor, just the reasoning behind wanting the refactor.\n\n**Prompt:**\n\n```\nReview your provided code 'tempFunction' for any logical or security concerns and provide a list of recommendations.\n```\n\n### 3. Validate the recommendations (reflexion)\n\n---\n\nValidate the provided recommendations. Reflexion is a powerful technique to improve the accuracy of the initial recommendations and try to eliminate any hallucinations. This is not always required but it is worth asking if you are unsure about any recommendations.\n\n**Prompt:**\n\n```\nReview your above recommendations. Tell me why you were wrong and if any recommendations were overlooked or incorrectly added?\n```\n\n### 4. Write the Code\n\n---\n\nCombine your reviews, recommendations and feedback to get GPT-4 to write your new function.\n\n**Prompt:**\n\n```\nRe-write the 'tempFunction' function based off your review and recommendations.\n```\n\n### 5. Create Tests\n\n---\n\nCreate some simple tests that we can run locally and validate the results\n\n**Prompt:**\n\n```\nCreate two [ define technology ] tests for the above 'tempFunction' function. One that is expected to pass and one that is expected to fail.\n```\n\n## Re-write Prompt\n\nLet's see if we can get GPT4 to make or average prompts and turn them into \"voyage inspirant\" type mastery prompts.\n\n**Prompt:**\n\n```\n[your prompt]\n\nRe-write the above text to be more verbose and include a lot of superfluous description about each thing, use very painting language.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n## ChatGPT prompt optimizer\n\n**Prompt:**\n\n```\nI'll provide a chatGPT prompt. You'll ask questions to understand the audience and goals, then optimize the prompt for effectiveness and relevance using the principle of specificity.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n## Ask for alternatives\n\nIf you're not satisfied with your solution you can ask to ChatGPT to give you alternatives\n\n**Prompt:**\n\n```\nI'll provide you with a piece of code that I made and \nI need you give me alternatives to do the same in other way:\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n---\n\n## Documentation \u002F Explaination\n\n### 📣 Adding Documentation\n\n> [!NOTE]\n> Adding documentation requires creating clear and comprehensive explanations of a module’s purpose, design, and implementation.\n\nPrompt 1#:\n\n```\nI don't know how to code, but I want to understand how this works. Explain the following code to me in a way that a non-technical person can understand. Always use Markdown with nice formatting to make it easier to follow. Organize it by sections with headers. Include references to the code as markdown code blocks in each section. The code:\n\n[insert code here]\n```\n\nPrompt 2#:\n\n```\nPlease add comprehensive documentation for [file or module name], including clear and concise explanations of its purpose, design, and implementation. Consider including examples of how to use the module, as well as any relevant diagrams or flow charts to help illustrate its workings. Ensure that the documentation is easily accessible to other developers and is updated as the module evolves. Consider using documentation tools such as inline comments, markdown files, or a documentation generator to simplify the process.\n\n[insert code here]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Write your terms and conditions\n\n**Prompt:**\n\n```\nCreate terms and services for my website about an [AI tool] called [name].\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Produce cheat sheets\n\n**Prompt:**\n\n```\nWrite a cheat sheet for [markdown formatting].\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Generate Readme Files\n\n**Prompt:**\n\n```\nGenerate documentation for the code below. You should include detailed instructions to allow a developer to run it on a local machine, explain what the code does, and list vulnerabilities that exist in this code.\n\n[enter code]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Write detailed blogs\n\n**Prompt:**\n\n```\nWrite a detailed blog on How to build a [COVID tracker] using React with proper structuring of code.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Explain Code\n\n> [!NOTE]\n> Don't spend time trying to figure out how code works, just ask ChatGPT to explain it to you\n\n**Prompt:**\n\n```\nContext: I'm starting a new position as backend developer and I have to start to understand how some functions are working\nTechnologies: [INSERT YOUR TECHNOLOGIES HERE]\nYou have to: explain me the code line by line\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Architecture Diagram (Mermaid)\n\n> [!NOTE]\n> Create a diagram of your architecture using Mermaid\n\n**Prompt:**\n\n```\nWrite the Mermaid code for an architecture diagram for this solution [DESCRIBE SOLUTION]\n```\n\nExample:\n\n```mermaid\n  graph TD;\n  A[Client] -->|HTTP Request| B(API Gateway);\n  B -->|HTTP Request| C[Service 1];\n  B -->|HTTP Request| D[Service 2];\n  C -->|Database Query| E[Database];\n  D -->|Database Query| E;\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Entity Relationship Diagram (Mermaid)\n\n> [!NOTE]\n> Create an entity relationship diagram using Mermaid\n\n**Prompt:**\n\n```\nWrite the Mermaid code for an entity relationship diagram for these classes [INSERT CLASSES]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n## Code Refactoring\n\n### 📣 Refactor Code\n\n> [!NOTE]\n> Ask to ChatGPT to refactor your code\n\n**Prompt:**\n\n```\nI have a piece of code and I need you do a refactor of it:\n\n[INSERT YOUR CODE HERE]\n```\n\nRefactoring code is an essential process in software development that aims to improve the quality, readability, and maintainability of existing code without altering its functionality. Refactoring can enhance code efficiency, reduce errors, and make it easier to modify or extend in the future. With ChatGPT’s help, you can effectively refactor your code and achieve a better code structure.\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Modernizing Old Code\n\n> [!NOTE]\n> By providing your old function to GPT-4 and asking it to refactor it to modern coding practices, you can quickly modernize your code.\n\n**Prompt:**\n\n```\nRefactor the following code to modern es6 programming standards:\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Code in to Multiple Methods\n\n> [!NOTE]\n>If you have a long function that is doing too much, you can ask GPT-4 to refactor it into multiple methods.\n\n**Prompt:**\n\n```\nRefactor the following code into multiple methods to improve readability and maintainability:\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Better Performance\n\n> [!NOTE]\n> If you have a function that is taking too long to run, you can ask GPT-4 to refactor it to improve performance.\n\n**Prompt:**\n\n```\nRefactor the following code to improve performance:\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Adding a Parameter to a Function\n\n**Prompt:**\n\n```\nAdd a parameter to this function to do [FUNCTIONALITY]\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Adding Coding Best Practices or Principles\n\n> [!NOTE]\n>Let ChatGPT rewrite the code for you according to style guidelines.\n\n**Prompt:**\n\n```\nRewrite the code below following the Google style guidelines for javascript.\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Follow coding style guidelines\n\n> [!NOTE]\n> If your organization or code base uses specific coding practices and styles that you want to maintain, you can provide instructions to GPT-4 on which particular coding practice or style you’d like it to focus on.\n\n**Prompt:**\n\n```\nReview the following code and refactor it to make it more DRY and adopt the SOLID programming principles.\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Detecting and Fixing Errors\n\n> [!NOTE]\n>Sometimes we are unaware of the vulnerabilities or potential issues our code can create. Having GPT-4 review and address code issues can save you more than just time.\n\n**Prompt 1#:**\n\n```\nReview this code for errors and refactor to fix any issues:\n\n[INSERT YOUR CODE HERE]\n```\n\n**Prompt 2#:**\n\n```\nI'm developing software in [INSERT YOUR TECHNOLOGIES HERE] and I need you help me to find and\nfix all the errors in my code, following the best practices. I'll provide you my code\nand you'll give me the code with all the corrections explained line by line\n```\n\n**Prompt 3#:**\n\n```\nI wrote this code [CODE] I got this error [ERROR] How can I fix it? or What does this error mean?\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Debug a React component\n\n> [!NOTE]\n>This process typically involves identifying the source of the error, understanding the issue, and implementing a solution to resolve the issue\n\n**Prompt:**\n\n```\nPlease find and fix the bug in the [component name] component that is causing [describe the issue].\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Create Unit Tests\n\n> [!NOTE]\n>Unit tests are automated tests that check the behavior of individual units of code in isolation. They help catch bugs early and make it easier to maintain the code.\n\n**Prompt 1#:**\n\n```\nPlease write unit tests for [file or module name] to ensure its proper functioning\n\n[insert code here]\n```\n\n**Prompt 2#:**\n\n```\nCreate 2 unit tests for the provided code. One for a successful condition and one for failure.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Transpiling Code\n\n> [!NOTE]\n>There are many reasons why you may need to convert code from one language to another. For example, you may have found a repository with code for one language that you need in another, you’re moving code bases, or maybe your boss read an article on the latest front-end framework and now you’re moving to a divisive new library.\n\n**Prompt:**\n\n```\nRewrite the following code in Rust:\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Responsive Design\n\n> [!NOTE]\n>Responsive design adapts a website to different screen sizes and devices, using flexible layouts, images, and CSS media queries. It aims to provide a good viewing experience for all users\n\n**Prompt:**\n\n```\nRPlease implement responsive design for the [component name] component to ensure that it looks and functions correctly on different screen sizes and devices. Consider using [responsive design technique or library] to achieve this.\n\n[insert code here]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Internationalization\n\n> [!NOTE]\n>Internationalization, also known as i18n, is the process of designing a software application to be able to support multiple languages and regional differences\n\n**Prompt:**\n\n```\nPlease implement internationalization for the [component name] component to ensure that it can be used by users in multiple languages. Consider using [internationalization library or technique] to achieve this.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Add comments to code\n\n> [!NOTE]\n>If your code is self-explanatory but requires commenting, this can be a huge time-saver.\n\n**Prompt:**\n\n```\nAdd comments to the following code:\n\n[INSERT YOUR CODE HERE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n## Code Generation\n\n### 📣 Create Functions\n\n> [!NOTE]\n>Provide context of your software and ask directly for creating functions you need for your software\n\n**Prompt:**\n\n```\nContext: I'm creating a software to manage projects\n\nTechnologies: Go, PostgreSQL\n\nDescription: It's a function that let me find users by its email or username.\n\nYou have to: create the function for me\n```\n\nAlso you can add in the description what you expect to receive from your function. If you already have an structure for the User, specify it, for example:\n\n**Prompt:**\n\n```\nContext: I'm creating a software to manage projects\n\nTechnologies: Go, PostgreSQL\n\nDescription: It's a function that let me find users by its email or username and returns the structure type \"Member\"\n\nYou have to: create the function for me\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Generate a Dockerfile\n\n> [!NOTE]\n>A prompt to generate a Dockerfile for a specific framework.\n\n**Prompt:**\n\n```\nWrite a Dockerfile for:\n\n[FRAMEWORK]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Write a RegEx\n\n**Prompt:**\n\n```\nWrite a regular expression that matches \u002F Write a RegEx pattern for:\n\n[REQUEST]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Create a Class\n\n**Prompt:**\n\n```\nCreate a [PLATFORM] class from this JSON object\n\n[JSON]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Add Functionality\n\n**Prompt:**\n\n```\nI need a piece of code in [INSERT YOUR TECHNOLOGIES HERE] to implement [real-time communication]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Create Boilerplate Code\n\n> [!NOTE]\n>Starting new projects can be painful. While GPT-4 doesn’t know your business logic, it can be used to generate boilerplate code. This isn’t technically refactoring, but it’s amazing and can be part of the programming lifecycle process.\n\n**Prompt:**\n\n```\nWrite me a boilerplate Node.js function that will take a variable of type User, validate that the user has the right permissions, fetch an array of item type Posts from a postgres database and return them. Leave comments for business logic.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 You are a world-class software engineer\n\n> [!NOTE]\n>In this clip I show you how to *drastically* improve ChatGPT’s outputs for software generation.\n\n**Prompt:**\n\n```\nYou are a world-class software engineer.\n\nI need you to draft a technical software spec for building the following:\n[ DESCRIPTION ]\n\nThink through how you would build it step by step.\n\nThen, respond with the complete spec as a well-organized markdown file.\n\nI will then reply with \"build,\" and you will proceed to implement the exact spec, writing all of the code needed. I will periodically interject with \"continue\" to >prompt you to keep going. Continue until complete.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n## Code Review\n\n### 📣 Error Hendling\n\n**Prompt:**\n\n```\nHow can I improve the error handling in my [LANGUAGE] code? [CODE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Suggest Improvements\n\n**Prompt:**\n\n```\nI'm working on a [LANGUAGE] project and I need you to review my code and suggest improvements. [CODE]\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n\n## Product Service Promotion\n\n### 📣 Generate innovative product ideas\n\n**Prompt:**\n\n```\nBrainstorm creative and unique product ideas for [insert industry or market]. \n\nFocus on solving customer pain points and providing exceptional value.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Develop a unique value proposition\n\n**Prompt:**\n\n```\nHelp me articulate a unique value proposition for my [insert product or service].\n\nExplain how this proposition differentiates my offering and appeals to my target audience.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Master the art of storytelling for marketing\n\n**Prompt:**\n\n```\nTeach me storytelling techniques for creating compelling marketing content to promote [insert product or service].\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Create a successful referral program\n\n**Prompt:**\n\n```\nDesign a referral program for [insert business] that incentivizes customers to share and recommend our products or services.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Master the art of upselling and cross-selling\n\n**Prompt:**\n\n```\nTeach me effective upselling and cross-selling techniques to increase revenue and customer satisfaction in [insert business context].\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Create a viral marketing campaign\n\n**Prompt:**\n\n```\nDesign a creative and attention-grabbing marketing campaign for [insert product or service] with the potential to go viral.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Develop a powerful elevator pitch\n\n**Prompt:**\n\n```\n[Insert a brief description of your product, service, or company].\n\nHelp me create a concise and compelling elevator pitch that will effectively communicate the value of my offering.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Create an actionable marketing plan\n\n**Prompt:**\n\n```\nDevelop a marketing plan for [insert product or service]. \n\nInclude objectives, target audience, marketing channels, and tactics for reaching my desired audience and driving sales.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 Leverage content marketing for lead generation\n\n**Prompt:**\n\n```text\nDevelop a content marketing strategy for [insert business] to attract, engage, and convert leads into customers.\n```\n\n\u003Csup>[⬆️ Back to table of contents](#table-of-contents)\u003C\u002Fsup>\n\n\u003Cdetails>\n\n\u003Csummary>\n\n## 📚 Tools\n\n\u003C\u002Fsummary>\n\n- [ChatGPT](https:\u002F\u002Fchat.openai.com\u002F)\n- [Bard](https:\u002F\u002Fbard.google.com\u002F)\n\n\u003C\u002Fdetails>\n","# 🤖 开发者 ChatGPT 提示词\n\n欢迎来到我的开发者专属 ChatGPT 提示词合集！🙌\n\n这个仓库包含了一系列强大的 ChatGPT 提示词，可以帮助你激发创意灵感。💡 无论你是初学者还是经验丰富的专业人士，这些提示词都能帮你跳出固有思维，找到解决问题的新方法。🚀\n\n列表按类别划分：[ 针对程序员、学生、营销人员和内容创作者的提示词 ]。因此，无论你的职业是什么，这里总有一款适合你！😊 让我们一起来探索这些能将你的创造力提升到新高度的强大 ChatGPT 提示词吧！🌊\n\n## 目录\n\n### 针对程序员的提示词\n\n- [🚩 小贴士](#-tips)\n- [🔗 多步提示法（提示链）](#-a-multi-prompt-approach-prompt-chaining)\n  - [1. 现代化并加入最佳实践](#1-modernize-and-add-best-practices)\n  - [2. 检查代码中的逻辑错误和安全问题](#2-review-your-code-for-logical-errors-and-security-concerns)\n  - [3. 验证建议（反思）](#3-validate-the-recommendations-reflection)\n  - [4. 编写代码](#4-write-the-code)\n  - [5. 创建测试](#5-create-tests)\n- [改写提示](#re-write-prompt)\n- [ChatGPT 提示优化器](#chatgpt-prompt-optimizer)\n- [请求替代方案](#ask-for-alternatives)\n- [文档 \u002F 解释](#documentation--explaination)\n  - [📣 添加文档](#-adding-documentation)\n  - [📣 编写条款与条件](#-write-your-terms-and-conditions)\n  - [📣 制作速查表](#-produce-cheat-sheets)\n  - [📣 生成 README 文件](#-generate-readme-files)\n  - [📣 撰写详细博客](#-write-detailed-blogs)\n  - [📣 解释代码](#-explain-code)\n  - [📣 架构图（Mermaid）](#-architecture-diagram-mermaid)\n  - [📣 实体关系图（Mermaid）](#-entity-relationship-diagram-mermaid)\n- [代码重构](#code-refactoring)\n  - [📣 重构代码](#-refactor-code)\n  - [📣 使旧代码现代化](#-modernizing-old-code)\n  - [📣 将代码拆分为多个方法](#-code-in-to-multiple-methods)\n  - [📣 提升性能](#-better-performance)\n  - [📣 向函数添加参数](#-adding-a-parameter-to-a-function)\n  - [📣 加入编码最佳实践或原则](#-adding-coding-best-practices-or-principles)\n  - [📣 遵循编码风格指南](#-follow-coding-style-guidelines)\n  - [📣 检测并修复错误](#-detecting-and-fixing-errors)\n  - [📣 调试 React 组件](#-debug-a-react-component)\n  - [📣 创建单元测试](#-create-unit-tests)\n  - [📣 代码转译](#-transpiling-code)\n  - [📣 响应式设计](#-responsive-design)\n  - [📣 国际化](#-internationalization)\n  - [📣 在代码中添加注释](#-add-comments-to-code)\n- [代码生成](#code-generation)\n  - [📣 创建函数](#-create-functions)\n  - [📣 生成 Dockerfile](#-generate-a-dockerfile)\n  - [📣 编写正则表达式](#-write-a-regex)\n  - [📣 创建类](#-create-a-class)\n  - [📣 添加功能](#-add-functionality)\n  - [📣 创建样板代码](#-create-boilerplate-code)\n  - [📣 你是一位世界级软件工程师](#-you-are-a-world-class-software-engineer)\n- [代码审查](#code-review)\n  - [📣 错误处理](#-error-handling)\n  - [📣 提供建议改进](#-suggest-improvements)\n- [产品服务推广](#product-service-promotion)\n  - [📣 生成创新的产品创意](#-generate-innovative-product-ideas)\n  - [📣 制定独特的价值主张](#-develop-a-unique-value-proposition)\n  - [📣 掌握营销叙事的艺术](#-master-the-art-of-storytelling-for-marketing)\n  - [📣 创建成功的推荐计划](#-create-a-successful-referral-program)\n  - [📣 掌握追加销售和交叉销售的艺术](#-master-the-art-of-upselling-and-cross-selling)\n  - [📣 创建病毒式营销活动](#-create-a-viral-marketing-campaign)\n  - [📣 制定强有力的电梯演讲](#-develop-a-powerful-elevator-pitch)\n  - [📣 制定可执行的营销计划](#-create-an-actionable-marketing-plan)\n  - [📣 利用内容营销来获取潜在客户](#-leverage-content-marketing-for-lead-generation)\n\n## 🚩 小贴士\n\n就像生活中的许多事情一样，使用 GPT-4 时，你投入什么，就会得到什么。在这种情况下，提供更多上下文、指令和引导通常会产生更好的结果。\n\n以下是一些可以提高效果的技巧和方法：\n\n- **拆分提示：**\n尝试将你的提示和期望的结果分解成多个步骤。保持每个提示只针对单一目标，往往比将所有内容合并为一个提示效果更好。例如，先请求代码审查，再根据审查结果请求重构。不过，随着大型语言模型的 token 上限不断提高，这一点的重要性可能会逐渐降低。\n\n- **提供示例：**\n为了提高准确性，可以提供预期的输入、数据和输出示例。📝\n\n- **具体明确：**\n不要害怕详细列出你想要的内容、已知信息、所需条件以及不需要包含的部分。🔎\n\n- **要求它进行反思：**\n一种称为“反思”的技术已被证明可以提高 GPT-4 的准确性。简单来说，就是问它“你为什么错了？”或者让它对自己之前的回答进行反思和评估。🤔\n\n## 🔗 多步提示法（提示链）\n\n可用于更新、重构和审查一段代码。一套设计良好的提示链，应该让每个提示都专注于独立的问题和单一职责。\n\n### 1. 现代化并加入最佳实践\n\n---\n\n通过让 GPT-4 将你的代码重写为你想要的风格，完成这一步骤。通常，这会生成符合你期望风格的连贯代码，但也可能引入错误，因此我们将其放在第一步。\n\n**提示：**\n\n```\n请审查以下代码，并将其重写为现代 ES6 编程标准和格式：\n[在此处插入代码]\n```\n\n### 2. 检查代码中的逻辑错误和安全问题\n\n---\n\n获取关于任何潜在逻辑错误或安全问题的改进建议。重要的是，我们只需询问改进建议，而无需直接要求重构。\n\n**提示：**\n\n```\n请检查您提供的代码 'tempFunction' 中是否存在逻辑或安全问题，并提供一份改进建议清单。\n```\n\n### 3. 验证建议（反思）\n\n---\n\n验证所提供的建议是否合理。反思是一种强大的技巧，能够提高初始建议的准确性，并尽量消除可能出现的幻觉。虽然并非每次都需要，但如果你对某些建议不确定，不妨尝试一下。\n\n**提示：**\n\n```\n请回顾您之前的建议。告诉我您之前哪里出了错，以及是否有任何建议被遗漏或错误地添加了？\n```\n\n### 4. 编写代码\n\n---\n\n结合你的审查结果、改进建议和反馈，让 GPT-4 编写出新的函数。\n\n**提示：**\n\n```\n请根据您的审查和建议，重新编写 'tempFunction' 函数。\n```\n\n### 5. 创建测试\n\n---\n\n创建一些简单的测试，以便我们可以在本地运行并验证结果。\n\n**提示：**\n\n```\n为上述 'tempFunction' 函数创建两个 [定义技术] 测试。一个预期通过，另一个预期失败。\n```\n\n## 重写提示\n\n让我们看看是否能让 GPT-4 将普通的提示改写成类似“voyage inspirant”风格的高超提示。\n\n**提示：**\n\n```\n[你的提示]\n\n将上述文本改写得更加冗长，加入大量关于每件事的多余描述，使用非常生动的语言。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n## ChatGPT 提示优化器\n\n**提示：**\n\n```\n我将提供一个 ChatGPT 的提示。你将通过提问来了解目标受众和目标，然后根据具体性原则优化该提示，使其更有效、更贴切。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n## 请求替代方案\n\n如果你对解决方案不满意，可以要求 ChatGPT 提供其他替代方案。\n\n**提示：**\n\n```\n我将提供一段我自己编写的代码，需要你给出其他实现相同功能的方式：\n\n[在此插入你的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n---\n\n## 文档\u002F解释说明\n\n### 📣 添加文档\n\n> [!注意]\n> 添加文档需要清晰、全面地解释模块的目的、设计和实现。\n\n提示 1#：\n\n```\n我不懂编程，但我想理解这段代码是如何工作的。请用非技术人员也能理解的方式向我解释以下代码。始终使用 Markdown 并配以美观的格式，以便于阅读。按章节分段，并添加标题。在每个章节中，以 Markdown 代码块的形式引用代码。代码如下：\n\n[在此插入代码]\n```\n\n提示 2#：\n\n```\n请为 [文件或模块名称] 添加全面的文档，包括对其目的、设计和实现的清晰简洁说明。考虑加入模块的使用示例，以及任何有助于说明其工作原理的相关图表或流程图。确保文档易于其他开发者访问，并随着模块的发展不断更新。可以考虑使用内联注释、Markdown 文件或文档生成工具等工具来简化这一过程。\n\n[在此插入代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 编写条款与条件\n\n**提示：**\n\n```\n为我的网站上的一款名为 [名称] 的 [AI 工具] 编写条款和服务协议。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 制作速查表\n\n**提示：**\n\n```\n为 [markdown 格式化] 编写一份速查表。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 生成 README 文件\n\n**提示：**\n\n```\n为下面的代码生成文档。你应该包含详细的说明，让开发者能够在本地机器上运行它，解释代码的功能，并列出代码中存在的漏洞。\n\n[输入代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 撰写详细博客\n\n**提示：**\n\n```\n撰写一篇关于如何使用 React 构建 [COVID 追踪器] 的详细博客，并对代码进行合理的结构化。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 解释代码\n\n> [!注意]\n> 不必花时间去弄清楚代码是如何工作的，直接让 ChatGPT 来为你解释即可。\n\n**提示：**\n\n```\n背景：我即将开始担任后端开发工程师一职，需要理解一些函数的工作原理。\n技术栈：[在此插入你的技术栈]\n任务：逐行解释代码。\n\n[在此插入你的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 架构图（Mermaid）\n\n> [!注意]\n> 使用 Mermaid 创建你的架构图。\n\n**提示：**\n\n```\n为这个解决方案 [描述解决方案] 编写 Mermaid 架构图代码。\n```\n\n示例：\n\n```mermaid\n  graph TD;\n  A[客户端] -->|HTTP 请求| B(API 网关);\n  B -->|HTTP 请求| C[服务 1];\n  B -->|HTTP 请求| D[服务 2];\n  C -->|数据库查询| E[数据库];\n  D -->|数据库查询| E;\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 实体关系图（Mermaid）\n\n> [!注意]\n> 使用 Mermaid 创建实体关系图。\n\n**提示：**\n\n```\n为这些类 [插入类名] 编写 Mermaid 实体关系图代码。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n## 代码重构\n\n### 📣 重构代码\n\n> [!注意]\n> 可以请求 ChatGPT 对你的代码进行重构。\n\n**提示：**\n\n```\n我有一段代码，需要你对其进行重构：\n\n[在此插入你的代码]\n```\n\n代码重构是软件开发中的一个重要过程，旨在不改变功能的前提下，提升现有代码的质量、可读性和可维护性。重构可以提高代码效率、减少错误，并使代码在未来更容易修改或扩展。借助 ChatGPT 的帮助，你可以有效地重构代码，获得更好的代码结构。\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 使旧代码现代化\n\n> [!注意]\n> 将你的旧函数提供给 GPT-4，并要求其按照现代编码规范进行重构，可以快速使你的代码现代化。\n\n**提示：**\n\n```\n将以下代码重构为现代 ES6 编程标准：\n\n[在此插入你的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 将代码拆分为多个方法\n\n> [!注意]\n> 如果你有一个功能过于复杂的长函数，可以请求 GPT-4 将其重构为多个方法。\n\n**提示：**\n\n```\n将以下代码重构为多个方法，以提高可读性和可维护性：\n\n[在此插入你的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 提升性能\n\n> [!注意]\n> 如果你的函数运行时间过长，可以请求 GPT-4 重新编写以提升性能。\n\n**提示：**\n\n```\n重构以下代码以提升性能：\n\n[在此插入你的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 向函数添加参数\n\n**提示：**\n\n```\n为这个函数添加一个参数，以实现 [功能]。\n\n[在此插入你的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 应用编码最佳实践或原则\n\n> [!注意]\n> 让 ChatGPT 根据编码规范为你重写代码。\n\n**提示：**\n\n```\n按照 Google JavaScript 编码规范重写以下代码。\n\n[在此插入你的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 遵循编码风格指南\n\n> [!提示]\n> 如果您的组织或代码库使用特定的编码规范和风格，而您希望保持这些规范和风格的一致性，您可以向 GPT-4 提供指令，指定它应重点关注哪一种编码实践或风格。\n\n**提示：**\n\n```\n请审查以下代码，并对其进行重构，使其更加符合 DRY 原则，同时遵循 SOLID 编程原则。\n\n[在此处插入您的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 检测并修复错误\n\n> [!提示]\n> 有时我们并未意识到代码中可能存在的漏洞或潜在问题。让 GPT-4 审查并解决代码中的问题，不仅能节省时间，还能避免更多风险。\n\n**提示 1#：**\n\n```\n请检查这段代码是否存在错误，并进行重构以修复任何问题：\n\n[在此处插入您的代码]\n```\n\n**提示 2#：**\n\n```\n我正在使用 [在此处插入您的技术栈] 开发软件，需要您帮助我查找并修复代码中的所有错误，同时遵循最佳实践。我会提供我的代码，您将逐行解释所有修正，并给出修改后的代码。\n```\n\n**提示 3#：**\n\n```\n我编写了这段代码 [CODE]，但遇到了这个错误 [ERROR]。我该如何修复？或者这个错误意味着什么？\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 调试 React 组件\n\n> [!提示]\n> 此过程通常包括识别错误来源、理解问题所在，并实施解决方案来解决问题。\n\n**提示：**\n\n```\n请找出并修复 [组件名称] 组件中导致 [描述问题] 的 bug。\n\n[在此处插入您的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 创建单元测试\n\n> [!提示]\n> 单元测试是自动化的测试，用于单独检查代码各个单元的行为。它们有助于尽早发现错误，并使代码更易于维护。\n\n**提示 1#：**\n\n```\n请为 [文件或模块名称] 编写单元测试，以确保其正常运行。\n\n[在此处插入代码]\n```\n\n**提示 2#：**\n\n```\n为提供的代码创建 2 个单元测试。一个用于成功情况，另一个用于失败情况。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 代码转译\n\n> [!提示]\n> 您可能出于多种原因需要将代码从一种语言转换为另一种语言。例如，您可能找到了一个使用某种语言编写的代码库，但您需要将其转换为另一种语言；或者您正在迁移代码库；又或者您的老板读到了一篇关于最新前端框架的文章，现在要求您切换到一个新的、颇具争议的库。\n\n**提示：**\n\n```\n请将以下代码重写为 Rust 语言：\n\n[在此处插入您的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 响应式设计\n\n> [!提示]\n> 响应式设计通过灵活的布局、图像以及 CSS 媒体查询，使网站能够适应不同的屏幕尺寸和设备，从而为所有用户提供良好的浏览体验。\n\n**提示：**\n\n```\n请为 [组件名称] 组件实现响应式设计，以确保它在不同屏幕尺寸和设备上都能正确显示并正常工作。建议使用 [响应式设计技术或库] 来完成此任务。\n\n[在此处插入代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 国际化\n\n> [!提示]\n> 国际化，也称为 i18n，是指设计软件应用程序使其能够支持多种语言和地区差异的过程。\n\n**提示：**\n\n```\n请为 [组件名称] 组件实现国际化，以确保该组件可以被多语言用户使用。建议使用 [国际化库或技术] 来完成此任务。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 为代码添加注释\n\n> [!提示]\n> 如果您的代码本身已经足够清晰，但仍然需要添加注释，那么这将大大节省您的时间。\n\n**提示：**\n\n```\n请为以下代码添加注释：\n\n[在此处插入您的代码]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n## 代码生成\n\n### 📣 创建函数\n\n> [!提示]\n> 请提供您的软件背景信息，并直接请求 GPT-4 为您创建所需的函数。\n\n**提示：**\n\n```\n背景：我正在开发一款项目管理软件。\n\n技术：Go、PostgreSQL。\n\n描述：需要一个函数，可以根据用户的邮箱或用户名查找用户。\n\n您的任务：帮我创建这个函数。\n```\n\n您还可以在描述中说明您期望函数返回的内容。如果您已经有了用户结构，请明确指出，例如：\n\n**提示：**\n\n```\n背景：我正在开发一款项目管理软件。\n\n技术：Go、PostgreSQL。\n\n描述：需要一个函数，可以根据用户的邮箱或用户名查找用户，并返回“Member”类型的结构体。\n\n您的任务：帮我创建这个函数。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 生成 Dockerfile\n\n> [!提示]\n> 这是一个用于为特定框架生成 Dockerfile 的提示。\n\n**提示：**\n\n```\n请为以下框架编写 Dockerfile：\n\n[框架]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 编写正则表达式\n\n**提示：**\n\n```\n请编写一个匹配 \u002F 为以下内容编写正则表达式模式：\n\n[需求]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 创建类\n\n**提示：**\n\n```\n请根据以下 JSON 对象创建一个 [平台] 类：\n\n[JSON]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 添加功能\n\n**提示：**\n\n```\n我需要一段 [在此处插入您的技术栈] 的代码，用于实现 [实时通信]。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 创建样板代码\n\n> [!提示]\n> 开始新项目可能会非常繁琐。虽然 GPT-4 不了解您的业务逻辑，但它可以用来生成样板代码。这严格来说不算重构，但确实非常有用，也可以作为编程生命周期的一部分。\n\n**提示：**\n\n```\n请为我编写一个 Node.js 样板函数，该函数将接收一个 User 类型的变量，验证用户是否具有相应权限，从 PostgreSQL 数据库中获取 Posts 类型的数组，并将其返回。请为业务逻辑添加注释。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 您是一位世界级的软件工程师\n\n> [!提示]\n> 在本片段中，我将向您展示如何*大幅*提升 ChatGPT 在软件生成方面的输出质量。\n\n**提示：**\n\n```\n您是一位世界级的软件工程师。\n\n我需要您起草一份技术软件规格说明书，用于构建以下内容：\n[ 描述 ]\n\n请详细思考您将如何逐步构建它。\n\n然后，请以结构清晰的 Markdown 文件形式回复完整的规格说明书。\n\n接下来，我会回复“构建”，您将按照该规格说明书完全实现，编写所有必要的代码。我会不时插入“继续”指令，以促使您持续进行。请一直执行下去，直到全部完成。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n## 代码审查\n\n### 📣 错误处理\n\n**提示：**\n\n```\n我如何改进我的[LANGUAGE]代码中的错误处理？[CODE]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 提供建议与改进\n\n**提示：**\n\n```\n我正在做一个[LANGUAGE]项目，需要你审查我的代码并提出改进建议。[CODE]\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n\n## 产品服务推广\n\n### 📣 生成创新的产品创意\n\n**提示：**\n\n```\n为[填写行业或市场]头脑风暴一些富有创意且独特的产品想法。\n\n重点在于解决客户的痛点，并提供卓越的价值。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 制定独特的价值主张\n\n**提示：**\n\n```\n请帮我为我的[填写产品或服务]提炼出一个独特的价值主张。\n\n说明这一主张如何使我的产品与众不同，并吸引目标客户群体。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 掌握营销中的故事讲述艺术\n\n**提示：**\n\n```\n教我一些讲故事的技巧，以便创作出引人入胜的营销内容来推广[填写产品或服务]。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 创建成功的推荐计划\n\n**提示：**\n\n```\n为[填写企业]设计一个推荐计划，激励客户分享和推荐我们的产品或服务。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 掌握追加销售与交叉销售的艺术\n\n**提示：**\n\n```\n教我一些有效的追加销售和交叉销售技巧，以提升[填写业务场景]中的收入和客户满意度。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 创造一场病毒式营销活动\n\n**提示：**\n\n```\n为[填写产品或服务]设计一场富有创意、引人注目的营销活动，使其具备病毒式传播的潜力。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 拟定强有力的电梯演讲\n\n**提示：**\n\n```\n[插入关于你的产品、服务或公司的简短描述]。\n\n请帮我撰写一段简洁而有说服力的电梯演讲，以有效传达我的产品的价值。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 制定可执行的营销计划\n\n**提示：**\n\n```\n为[填写产品或服务]制定一份营销计划。\n\n包括目标、目标受众、营销渠道以及接触目标受众并推动销售的具体策略。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n### 📣 利用内容营销进行潜在客户开发\n\n**提示：**\n\n```text\n为[填写企业]制定一项内容营销战略，以吸引、互动并转化潜在客户为实际顾客。\n```\n\n\u003Csup>[⬆️ 返回目录](#table-of-contents)\u003C\u002Fsup>\n\n\u003Cdetails>\n\n\u003Csummary>\n\n## 📚 工具\n\n\u003C\u002Fsummary>\n\n- [ChatGPT](https:\u002F\u002Fchat.openai.com\u002F)\n- [Bard](https:\u002F\u002Fbard.google.com\u002F)\n\n\u003C\u002Fdetails>","# dev-chatgpt-prompts 快速上手指南\n\n`dev-chatgpt-prompts` 并非一个需要安装的可执行软件或库，而是一个**精选的 ChatGPT 提示词（Prompts）集合仓库**。它专为开发者、学生和营销人员设计，旨在通过高质量的指令模板，激发创意、优化代码、生成文档及解决技术难题。\n\n本指南将帮助你理解如何使用这些提示词来提升工作效率。\n\n## 环境准备\n\n使用本工具无需复杂的系统环境或依赖安装，只需满足以下条件：\n\n*   **账号要求**：拥有一个可用的 ChatGPT 账号（推荐 GPT-4 以获得最佳效果）。\n*   **访问方式**：能够通过浏览器访问 [chat.openai.com](https:\u002F\u002Fchat.openai.com) 或使用集成了 ChatGPT API 的第三方客户端。\n*   **网络环境**：确保网络连接正常。\n    *   *注：由于官方服务在中国大陆地区可能受限，请自行配置合法合规的网络环境或使用国内大模型平台（如文心一言、通义千问等，部分提示词经微调后亦适用）。*\n*   **前置知识**：了解如何与 AI 进行对话交互。\n\n## 安装步骤\n\n本项目为纯文本资源库，**无需执行任何安装命令**。\n\n1.  访问项目仓库页面（GitHub）。\n2.  浏览 `README.md` 文件或目录结构，找到你需要的提示词类别（如：代码重构、文档生成、架构绘图等）。\n3.  复制对应的提示词模板。\n4.  将其粘贴至 ChatGPT 对话框中，并根据提示替换占位符（如 `[insert code here]`）。\n\n> **提示**：你可以将常用的提示词保存为本地 snippets 或使用快捷短语工具，以便随时调用。\n\n## 基本使用\n\n核心用法是\"**复制模板 -> 填充内容 -> 发送对话**\"。以下是几个典型场景的最简使用示例：\n\n### 1. 代码现代化与最佳实践 (多步链式提示)\n\n这是该仓库推荐的高级用法，通过分步指令获得更准确的代码重构结果。\n\n**第一步：现代化改写**\n```text\nReview the following code and re-write it to modern es6 programming standards and formatting:\n\n[在此处插入你的旧代码]\n```\n\n**第二步：审查逻辑与安全**\n```text\nReview your provided code 'tempFunction' for any logical or security concerns and provide a list of recommendations.\n```\n\n**第三步：自我反思 (验证建议)**\n```text\nReview your above recommendations. Tell me why you were wrong and if any recommendations were overlooked or incorrectly added?\n```\n\n**第四步：生成最终代码**\n```text\nRe-write the 'tempFunction' function based off your review and recommendations.\n```\n\n**第五步：生成测试用例**\n```text\nCreate two [定义技术栈，如 Jest] tests for the above 'tempFunction' function. One that is expected to pass and one that is expected to fail.\n```\n\n### 2. 生成架构图 (Mermaid)\n\n让 AI 直接生成可渲染的 Mermaid 代码，用于可视化系统架构。\n\n```text\nWrite the Mermaid code for an architecture diagram for this solution [描述你的解决方案，例如：一个包含 API 网关、两个微服务和一个数据库的用户登录系统]\n```\n\n*输出示例：*\n```mermaid\ngraph TD;\n  A[Client] -->|HTTP Request| B(API Gateway);\n  B -->|HTTP Request| C[Service 1];\n  B -->|HTTP Request| D[Service 2];\n  C -->|Database Query| E[Database];\n  D -->|Database Query| E;\n```\n\n### 3. 代码解释与文档生成\n\n适合快速理解陌生代码或为新项目编写文档。\n\n**向非技术人员解释代码：**\n```text\nI don't know how to code, but I want to understand how this works. Explain the following code to me in a way that a non-technical person can understand. Always use Markdown with nice formatting to make it easier to follow. Organize it by sections with headers. Include references to the code as markdown code blocks in each section. The code:\n\n[在此处插入代码]\n```\n\n**生成详细的 README 文件：**\n```text\nGenerate documentation for the code below. You should include detailed instructions to allow a developer to run it on a local machine, explain what the code does, and list vulnerabilities that exist in this code.\n\n[在此处输入代码]\n```\n\n### 4. 提示词优化器\n\n如果你不知道如何写出好的提示词，可以让 AI 帮你优化。\n\n```text\nI'll provide a chatGPT prompt. You'll ask questions to understand the audience and goals, then optimize the prompt for effectiveness and relevance using the principle of specificity.\n```\n*(发送后，AI 会先向你提问以明确需求，随后生成优化后的提示词)*\n\n---\n\n**使用技巧总结：**\n*   **拆分任务**：将复杂需求拆分为多个简单的提示词步骤（Prompt Chaining）。\n*   **提供示例**：在提示词中给出预期的输入输出示例，能显著提高准确率。\n*   **具体明确**：明确指出你需要什么、不需要什么，以及具体的约束条件。\n*   **要求反思**：询问 AI“你为什么错了？”或让它重新检查自己的回答，可减少幻觉。","一位后端开发者正接手一个缺乏文档且代码风格陈旧的遗留项目，急需在两周内完成重构并上线新功能。\n\n### 没有 dev-chatgpt-prompts 时\n- 面对复杂的旧代码束手无策，手动梳理业务逻辑和编写注释耗时极长，容易遗漏关键细节。\n- 重构时凭经验修改，缺乏系统性的安全审查和最佳实践指导，导致新引入的潜在 Bug 难以察觉。\n- 需要手动编写单元测试和 Docker 部署文件，重复性劳动占据了大量核心开发时间。\n- 想要生成架构图或技术文档时，不知如何向 AI 提问才能得到结构清晰、可直接使用的输出。\n\n### 使用 dev-chatgpt-prompts 后\n- 直接调用\"Explain Code\"和\"Add comments to code\"提示词，瞬间理清逻辑并自动补全详细注释，效率提升数倍。\n- 利用\"Review your code for logical errors\"和\"Modernize and add best practices\"链条式提示，系统性发现安全隐患并将代码升级至现代标准。\n- 通过\"Create Unit Tests\"和\"Generate a Dockerfile\"专用提示，一键生成高质量的测试用例与容器配置，彻底告别手写样板代码。\n- 使用\"Architecture Diagram (Mermaid)\"提示词，快速将抽象逻辑转化为可视化的架构图，轻松产出专业的技术文档。\n\ndev-chatgpt-prompts 将开发者从繁琐的提示词工程中解放出来，通过标准化的专业指令让 AI 真正成为高效的全能编程搭档。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FPickleBoxer_dev-chatgpt-prompts_f3349161.png","PickleBoxer","Matic Vertačnik","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002FPickleBoxer_6bbf834d.png","Full Stack developer | getdamp.app",null,"getdamp.app","https:\u002F\u002Fgithub.com\u002FPickleBoxer",2190,290,"2026-04-03T07:58:44",1,"","未说明",{"notes":89,"python":87,"dependencies":90},"该工具并非需要本地安装运行的软件或模型，而是一个 ChatGPT 提示词（Prompts）集合库。用户只需拥有 ChatGPT（如 GPT-4）的访问权限，将 README 中提供的提示词文本复制并发送给 ChatGPT 即可使用。因此，它没有特定的操作系统、GPU、内存、Python 版本或依赖库要求。",[],[36,15],[93,94,95,96,97,98,99,100],"ia","chatgpt","chatgpt4","prompts","code","faster","smarter","copilot","2026-03-27T02:49:30.150509","2026-04-06T05:32:17.975128",[],[]]