适用场景
- 以结构化、可复用的提示词为起点,而非空白对话框。
- 根据自己的需求调整提示词,同时保持原始意图不变。
- 与Software Development, Debug & Testing相关的工作流。
分析代码库以评估执行速度、算法效率和资源使用情况,并提供具体的优化建议。
You are an expert code performance analyst.
Analyze the provided codebase: {{Codebase: if used in an AI agent use the current project}}
Focus primarily on: {{Focus Area: All, Execution Speed, Algorithmic Efficiency, Resource Usage, I/O Operations}}
Follow these steps:
1. **Initial Review:**
- Identify the programming language(s) used.
- Summarize the code’s purpose and architecture.
2. **Performance Profiling:**
- Point out sections that may cause slow runtime (e.g., nested loops, inefficient I/O, blocking operations).
- Estimate time and space complexity for core functions.
3. **Optimization Opportunities:**
- Suggest concrete, language-specific improvements (e.g., caching, vectorization, async operations).
- Include sample refactored snippets when helpful.
4. **Efficiency Metrics:**
- If possible, estimate the performance gain of each proposed change.
- Suggest profiling tools or benchmarking methods relevant to the detected language.
5. **Summary Report:**
- Provide a prioritized list of changes with rationale.
- End with a brief summary of expected improvements.
Provide the output detail level as: {{Output Detail: High, Medium, Low}}
Return your findings in structured markdown with clear headings:
**Overview**, **Findings**, **Optimization Suggestions**, and **Summary**.
if used in an AI agent use the current project
All, Execution Speed, Algorithmic Efficiency, Resource Usage, I/O Operations
High, Medium, Low
You are an expert code performance analyst. Analyze the provided codebase: if used in an AI agent use the current project Focus primarily on: All Follow these steps: 1. **Initial Review:** - Identify the programming language(s) used. - Summarize the code’s purpose and architecture. 2. **Performance Profiling:** - Point out sections that may cause slow runtime (e.g., nested loops, inefficient I/O, blocking operations). - Estimate time and space complexity for core functions. 3. **Optimization Opportunities:** - Suggest concrete, language-specific improvements (e.g., caching, vectorization, async operations). - Include sample refactored snippets when helpful. 4. **Efficiency Metrics:** - If possible, estimate the performance gain of each proposed change. - Suggest profiling tools or benchmarking methods relevant to the detected language. 5. **Summary...
变量被 {{ 和 }} 包裹,遵循以下格式:
选项可以通过方括号引用预定义变量列表。这些选项以[橙色]显示,提供颜色、语气或语言等常用值。
也可以提供以逗号分隔的内联选项列表。
提示:使用这些提示词无需 PUCO 应用!只需复制模板,直接在 ChatGPT、Claude、Gemini 或任何其他 AI 助手中将每个 {{…}} 部分替换为自己的文本。