提示词工程学习笔记: 工程技术行业提示词推荐

OpenAI 近日发布了官方 ChatGPT 提示词包,旨在为不同职业领域的专业人士提供高效利用 AI 的指导。该提示词包共包含 11 个类别,覆盖了从通用任务到高管决策的广泛工作场景,旨在帮助用户更精准、高效地使用 ChatGPT 完成日常工作。

官方提示词包链接:

https://academy.openai.com/public/clubs/work-users-ynjqu/tags/prompt-packs-6849a0f98c613939acef841c

以下为工程技术行业适用的25段提示词,
为工程师提供代码辅助、问题排查和技术文档撰写支持、
代码生成、Bug 调试、技术方案设计、API 文档编写等方面的工作辅助。

1. 系统设计与架构(System Design & Architecture)

Use Case 1 --- System design overview|系统架构概述

Use Case 2 --- API design plan|API 设计⽅案

Use Case 3 --- Data model design|数据模型设计

Use Case 4 --- Architecture decision record|架构决策记录(ADR)

Use Case 5 --- System scalability plan|系统扩展性⽅案

2. 编码与调试(Coding & Debugging)

Use Case 6 --- Generate code snippets|⽣成代码⽚段

Use Case 7 --- Debug code errors|调试代码错误

Use Case 8 --- Refactor code for clarity|重构优化

Use Case 9 --- Convert code between languages|语⾔转换

Use Case 10 --- Code style review|代码规范检查

3. 代码⽂档与评审(Documentation & Review)

Use Case 11 --- Generate documentation from code|从代码⽣成⽂档

Use Case 12 --- Write README file|编写 README ⽂档

Use Case 13 --- Generate changelog|⽣成更新⽇志

Use Case 14 --- Code review summary|代码评审摘要

Use Case 15 --- Generate inline code comments|自动添加代码注释

4. 性能与测试(Performance & Testing)

Use Case 16 --- Performance optimization suggestions|性能优化建议

Use Case 17 --- Unit test generation|单元测试生成

Use Case 18 --- Integration test plan|集成测试计划

Use Case 19 --- Load testing strategy|负载测试策略

Use Case 20 --- Monitoring dashboard KPIs|监控指标设计

5. 协作与发布(Collaboration & Deployment)

Use Case 21 --- Git commit message generation|生成规范提交信息

Use Case 22 --- Pull request description|PR 说明模板

Use Case 23 --- CI/CD pipeline plan|CI/CD 流水线规划

Use Case 24 --- Rollback plan for deployment|部署回滚方案

Use Case 25 --- Post-mortem template|事故复盘模板

1. 系统设计与架构(System Design & Architecture)

Use Case 1 --- System design overview|系统架构概述

Prompt (EN)

Draft a system design overview for [application or feature]. Include components, data flow, and technology stack recommendations.

Prompt(ZH)

为 [应用或功能] 撰写系统设计概述,包含组件结构、数据流与技术栈建议。

Use Case 2 --- API design plan|API 设计方案

Prompt (EN)

Design a REST API for [application feature]. Define endpoints, methods, expected inputs/outputs, and authentication requirements.

Prompt(ZH)

为 [功能] 设计 REST API,定义端点、请求⽅式、输⼊输出格式与认证要求。

Use Case 3 --- Data model design|数据模型设计

Prompt (EN)

Create a data model for [use case]. Include key entities, relationships, and constraints. Output as an ER diagram description.

Prompt(ZH)

为 [场景] 设计数据模型,包含主要实体、关系与约束。以 ER 图描述⽅式输出。

Use Case 4 --- Architecture decision record|架构决策记录(ADR)

Prompt (EN)

Write an architecture decision record for choosing [technology or approach]. Include context, decision, alternatives, and consequences.

Prompt(ZH)

撰写关于选择 [技术或方案] 的架构决策记录,包含:背景、决策、备选⽅案与影响。

Use Case 5 --- System scalability plan|系统扩展性方案

Prompt (EN)

Propose a plan to scale [system name] to handle [traffic or user volume]. Include bottlenecks, scaling methods, and monitoring KPIs.

Prompt(ZH)

为 [系统名] 提出扩展⽅案,以应对 [流量/用户量] 增⻓。列出瓶颈、扩展⽅法与监控指标。

2. 编码与调试(Coding & Debugging)

Use Case 6 --- Generate code snippets|生成代码片段

Prompt (EN)

Write a code snippet in [language] that [solves a specific problem]. Include comments explaining key logic.

Prompt(ZH)

编写---段 [语言] 代码,⽤于解决 [特定问题],并附注释说明核⼼逻辑。

Use Case 7 --- Debug code errors|调试代码错误

Prompt (EN)

Review this code and identify the likely source of error. Suggest a fix and explain why it works. [Paste code].

Prompt(ZH)

检查以下代码,找出潜在错误来源,并提出修复⽅案及原因说明。

代码:[粘贴内容]。

Use Case 8 --- Refactor code for clarity|重构优化

Prompt (EN)

Refactor this [language] function for readability and maintainability without changing functionality. [Paste code].

Prompt(ZH)

对以下 [语言] 函数进⾏重构,提⾼可读性与可维护性,不改变功能。

代码:[粘贴内容]。

Use Case 9 --- Convert code between languages|语言转换

Prompt (EN)

Convert this code from [source language] to [target language]. Ensure equivalent logic and data handling. [Paste code].

Prompt(ZH)

将此段代码从 [源语言] 转换为 [目标语言],确保逻辑与数据处理等价。

代码:[粘贴内容]。

Use Case 10 --- Code style review|代码规范检查

Prompt (EN)

Review this code for adherence to [style guide or framework]. Suggest improvements to naming, structure, and comments.

Prompt(ZH)

检查代码是否符合 [编码规范或框架],并对命名、结构、注释等提出改进建议。

3. 代码⽂档与评审(Documentation & Review)

Use Case 11 --- Generate documentation from code|从代码⽣成⽂档

Prompt (EN)

Generate function-level documentation for this code. Include descriptions, input/output details, and examples. [Paste code].

Prompt(ZH)

为以下代码生成函数级文档,说明功能、输入输出及示例。

代码:[粘贴内容]。

Use Case 12 --- Write README file|编写 README ⽂档

Prompt (EN)

Write a professional README for this project. Include installation instructions, usage examples, and contribution guidelines.

Prompt(ZH)

为该项目撰写专业 README 文件,包含安装说明、使用示例与贡献指南。

Use Case 13 --- Generate changelog|⽣成更新⽇志

Prompt (EN)

Create a changelog summarizing the updates between version [A] and [B]. Include

new features, fixes, and breaking changes.

Prompt(ZH)

⽣成从版本 [A] 到 [B] 的更新⽇志,列出新增功能、修复与重⼤变更。

Use Case 14 --- Code review summary|代码评审摘要

Prompt (EN)

Summarize key findings from a code review. Include positive patterns, issues found, and actionable recommendations.

Prompt(ZH)

汇总代码评审的主要发现,包括良好实践、存在问题与改进建议。

Use Case 15 --- Generate inline code comments| 自动添加代码注释

Prompt (EN)

Add inline comments explaining each important step in this code. [Paste code].

Prompt(ZH)

在以下代码中添加内联注释,解释每个关键步骤。

代码:[粘贴内容]。

4. 性能与测试(Performance & Testing)

Use Case 16 --- Performance optimization suggestions|性能优化建议

Prompt (EN)

Analyze this code for performance bottlenecks and suggest optimizations. [Paste code].

Prompt(ZH)

分析以下代码的性能瓶颈并提出优化⽅案。

代码:[粘贴内容]。

Use Case 17 --- Unit test generation|单元测试生成

Prompt (EN)

Write unit tests for this function using [testing framework]. Cover normal, edge, and failure cases. [Paste code].

Prompt(ZH)

使⽤ [测试框架] 为以下函数⽣成单元测试,覆盖正常、边缘与异常场景。

代码:[粘贴内容]。

Use Case 18 --- Integration test plan|集成测试计划

Prompt (EN)

Draft an integration test plan for [system or feature]. Include objectives, scenarios, test data, and expected results.

Prompt(ZH)

为 [系统或功能] 制定集成测试计划,包含测试⽬标、场景、数据与预期结果。

Use Case 19 --- Load testing strategy|负载测试策略

Prompt (EN)

Create a load testing strategy for [application]. Define user simulation, metrics (response time, throughput), and test tools.

Prompt(ZH)

为 [应用] 编制负载测试策略,定义⽤户模拟⽅式、核⼼指标(响应时间、吞吐量)与测试⼯具。

Use Case 20 --- Monitoring dashboard KPIs|监控指标设计

Prompt (EN)

Suggest key metrics to monitor for [system]. Group them under performance, reliability, and usage.

Prompt(ZH)

为 [系统] 设计关键监控指标,分为性能、可靠性与使用情况三类。

5. 协作与发布(Collaboration & Deployment)

Use Case 21 --- Git commit message generation|生成规范提交信息

Prompt (EN)

Generate clear, conventional commit messages summarizing these code changes: [paste summary].

Prompt(ZH)

根据以下改动生成符合规范的 Git 提交信息。

改动摘要:[粘贴内容]。

Use Case 22 --- Pull request description|PR 说明模板

Prompt (EN)

Write a detailed pull request description for these changes. Include summary, motivation, screenshots (if UI), and testing notes.

Prompt(ZH)

为这些改动撰写详细的 PR 说明,包括摘要、动机、截图(如为 UI)与测试说明。

Use Case 23 --- CI/CD pipeline plan|CI/CD 流水线规划

Prompt (EN)

Create a CI/CD pipeline plan for [project type]. Include build, test, and deployment stages with recommended tools.

Prompt(ZH)

为 [项目类型] 制定 CI/CD 流程规划,包含构建、测试与部署阶段,推荐使⽤的⼯具。

Use Case 24 --- Rollback plan for deployment|部署回滚方案

Prompt (EN)

Write a rollback plan for [application deployment]. Define rollback triggers, data handling, and team communication steps.

Prompt(ZH)

为 [应用部署] 制定回滚计划,说明触发条件、数据处理与团队沟通流程。

Use Case 25 --- Post-mortem template|事故复盘模板

Prompt (EN)

Create a post-mortem report template for engineering incidents. Include sections for summary, timeline, root cause, resolution, and lessons learned.

Prompt(ZH)

编写⼯程事故复盘报告模板,包含:事件概述、时间线、根因、解决措施与经验总结。

相关推荐
wxr06163 小时前
GOF笔记
笔记·适配器·ooad
charlie1145141915 小时前
嵌入式的现代C++教程——constexpr与设计技巧
开发语言·c++·笔记·单片机·学习·算法·嵌入式
好奇龙猫5 小时前
【AI学习-comfyUI学习-三十二节-FLXU原生态反推+controlnet depth(UNion)工作流-各个部分学习】
人工智能·学习
童话名剑5 小时前
锚框 与 完整YOLO示例(吴恩达深度学习笔记)
笔记·深度学习·yolo··anchor box
好奇龙猫5 小时前
【大学院-筆記試験練習:数据库(データベース問題訓練) と 软件工程(ソフトウェア)(7)】
学习
j_jiajia6 小时前
(一)人工智能算法之监督学习——KNN
人工智能·学习·算法
2301_783360137 小时前
关于RNAseq——从fastq到gene_counts全流程
笔记·学习
_李小白7 小时前
【AlohaMini学习笔记】第三天:AlohaMini相关技术
笔记·学习
我命由我123457 小时前
Photoshop - Photoshop 工具栏(57)模糊工具
学习·ui·职场和发展·求职招聘·职场发展·学习方法·photoshop