Prompt 模板库
精选系统 Prompt 模板集合,涵盖编程、写作、分析等场景。
20 templates found
Senior Code Reviewer
codingPerforms thorough code reviews focusing on bugs, security, performance, and best practices.
Bug Diagnosis & Fix
codingSystematically diagnoses bugs from error messages, stack traces, or unexpected behavior descriptions.
Refactoring Assistant
codingGuides code refactoring with specific patterns, maintaining backward compatibility.
Unit Test Generator
codingGenerates comprehensive unit tests with edge cases, mocking, and clear test descriptions.
Code Explainer
codingExplains complex code in plain language with visual flow diagrams and analogies.
Technical Documentation Writer
writingCreates clear, structured technical documentation for APIs, libraries, or systems.
Technical Blog Post Writer
writingWrites engaging technical blog posts with clear structure, code examples, and practical takeaways.
README / Project Documentation
writingGenerates comprehensive project documentation including README, contributing guide, and changelog.
Data Analysis Assistant
analysisAnalyzes datasets, identifies patterns, and provides actionable insights with visualization suggestions.
Research Paper Summarizer
analysisSummarizes research papers, extracts key findings, and assesses methodology quality.
Tool-Use Agent System Prompt
agentsSystem prompt for an AI agent that can use external tools effectively with proper reasoning.
Planning & Reasoning Agent
agentsSystem prompt for an agent that plans multi-step tasks with reasoning traces and self-correction.
MCP Server Builder Guide
agentsGuides the creation of an MCP server with proper tool definitions, error handling, and testing.
Adaptive Learning Tutor
educationActs as a patient tutor that adapts explanations to the learner level and uses the Socratic method.
Concept Explainer (ELI5 to Expert)
educationExplains any concept at multiple complexity levels, from simple analogy to expert depth.
Product Specification Writer
businessCreates detailed product specifications from feature descriptions, including user stories and acceptance criteria.
Meeting Notes Summarizer
businessTransforms meeting transcripts into structured summaries with action items and decisions.
Brainstorming Partner
creativeFacilitates structured brainstorming with multiple ideation techniques and evaluation criteria.
Product & Project Name Generator
creativeGenerates creative names for products, projects, or features with domain availability checks.
API Design Reviewer
codingReviews API designs for RESTful best practices, consistency, and developer experience.
如何使用此工具
- 通过分类标签筛选模板:编程、写作、分析、教育、商业、智能体、创意等类别一键过滤。
- 使用搜索栏按关键词查找模板 —— 搜索范围覆盖模板名称、描述和内容。
- 点击模板卡片展开,查看完整的系统提示词内容。
- 将模板中的 {{变量}} 替换为你的具体内容,例如把 {{language}} 改成 'Python'。
- 点击「复制提示词」按钮,将模板复制到剪贴板,直接粘贴到 AI 工具中使用。
- 参考每个模板显示的 Token 数量,预估用作系统提示词时的 API 调用成本。
如何构建高质量的 AI 系统提示词
系统提示词是 AI 模型在对话开始前接收的底层指令,它决定了模型的角色定位、任务边界、输出格式和行为约束。本库提供 20 个精选模板,覆盖 7 大类别,每个模板都经过 GPT-4o 和 Claude 的实测验证,确保输出稳定且高质量。
这些模板遵循提示词工程的最佳实践:明确的角色定义、具体的任务描述、清晰的输出格式要求、以及行为约束条件。每个模板都包含 {{变量}} 占位符,你可以根据实际场景自由替换,让模板成为灵活的起点而非固定的脚本。
选择模板时,需要考虑任务的复杂度。简单任务(摘要、分类)适合使用 200 Token 以内的简洁模板。复杂任务(代码审查、数据分析、智能体行为)则需要包含示例和明确约束的详细模板,通常在 300-500 Token 之间。
这些模板兼容所有主流 AI 模型 —— OpenAI GPT 系列、Anthropic Claude、Google Gemini、Meta Llama、Mistral 等都能很好地响应结构化系统提示词。关键在于让模板的精细程度匹配模型的能力水平。
最后更新:2026 年 2 月
常见问题
如何使用这些模板?
复制模板并粘贴到 AI 助手的系统 Prompt 字段中。将 {{变量}} 替换为你的具体值。模板设计为起点——根据需求自行定制。
这些 Prompt 经过测试吗?
是的,所有模板均在多个模型(GPT-4o、Claude 3.5)上测试过。但 Prompt 效果因模型和任务而异。建议在你的具体场景中测试。
能提交自己的 Prompt 吗?
我们计划很快添加社区投稿功能。目前如果你有优质 Prompt 模板,可以通过我们的 GitHub 仓库提交。
模板里的 {{变量}} 是什么意思?
像 {{language}}、{{topic}}、{{format}} 这样的占位符是需要你替换的变量。比如代码审查模板中的 {{language}},使用时替换成 'Python' 或 'TypeScript' 即可。这种设计让同一个模板可以在不同场景中复用。
如何针对不同的 AI 模型优化模板?
先选择一个模板,在目标模型上测试,然后逐步迭代。Claude 模型对 XML 标签分隔的内容响应很好;GPT 模型更偏好编号列表式指令;Gemini 则适合简洁直接的提示。你可以用我们的 Prompt Diff 工具来追踪哪些修改提升了效果。
这些模板适合用在生产环境的 AI 应用中吗?
完全适合。这些模板遵循 OpenAI 和 Anthropic 官方推荐的提示词工程最佳实践,可以直接用作你 AI 应用的系统提示词基础。建议在生产环境中先做充分测试,并根据实际用户反馈持续优化。