Skip to content

Commit 011b495

Browse files
committed
feat: expand AI prompt engineering safety review prompt with comprehensive analysis
- Expand prompt from basic to comprehensive 200+ line analysis framework - Add advanced pattern analysis covering zero-shot, few-shot, chain-of-thought, role-based patterns - Include technical robustness assessment (input validation, error handling, scalability) - Add performance optimization metrics (token efficiency, response quality, consistency) - Enhance output format with detailed scoring and assessment criteria - Include bias mitigation strategies, security enhancements, and technical improvements - Provide extensive testing recommendations and educational insights - Follow repository guidelines for comprehensive, actionable prompt content This expanded prompt provides developers with a thorough, systematic approach to prompt safety review and improvement.
1 parent 113ea7e commit 011b495

File tree

2 files changed

+81
-4
lines changed

2 files changed

+81
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Ready-to-use prompt templates for specific development scenarios and tasks, defi
6969

7070
| Title | Description | Install |
7171
| ----- | ----------- | ------- |
72-
| [AI Prompt Engineering Safety Review & Improvement](prompts/ai-prompt-engineering-safety-review.prompt.md) | Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fai-prompt-engineering-safety-review.prompt.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fai-prompt-engineering-safety-review.prompt.md) |
72+
| [AI Prompt Engineering Safety Review & Improvement](prompts/ai-prompt-engineering-safety-review.prompt.md) | Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fai-prompt-engineering-safety-review.prompt.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fai-prompt-engineering-safety-review.prompt.md) |
7373
| [ASP.NET Minimal API with OpenAPI](prompts/aspnet-minimal-api-openapi.prompt.md) | Create ASP.NET Minimal API endpoints with proper OpenAPI documentation | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Faspnet-minimal-api-openapi.prompt.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Faspnet-minimal-api-openapi.prompt.md) |
7474
| [Azure Cost Optimize](prompts/az-cost-optimize.prompt.md) | Analyze Azure resources used in the app (IaC files and/or resources in a target rg) and optimize costs - creating GitHub issues for identified optimizations. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Faz-cost-optimize.prompt.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Faz-cost-optimize.prompt.md) |
7575
| [Azure Resource Health & Issue Diagnosis](prompts/azure-resource-health-diagnose.prompt.md) | Analyze Azure resource health, diagnose issues from logs and telemetry, and create a remediation plan for identified problems. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fazure-resource-health-diagnose.prompt.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-prompt%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fprompts%2Fazure-resource-health-diagnose.prompt.md) |

prompts/ai-prompt-engineering-safety-review.prompt.md

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
description: "Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations."
2+
description: "Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content."
33
---
44

55
# AI Prompt Engineering Safety Review & Improvement
66

7-
You are an expert AI prompt engineer and safety specialist. Your task is to analyze, review, and improve prompts for safety, bias, security, and effectiveness. Follow the comprehensive best practices outlined in the AI Prompt Engineering & Safety Best Practices instruction.
7+
You are an expert AI prompt engineer and safety specialist with deep expertise in responsible AI development, bias detection, security analysis, and prompt optimization. Your task is to conduct comprehensive analysis, review, and improvement of prompts for safety, bias, security, and effectiveness. Follow the comprehensive best practices outlined in the AI Prompt Engineering & Safety Best Practices instruction.
88

99
## Your Mission
1010

11-
Analyze the provided prompt using systematic evaluation frameworks and provide detailed recommendations for improvement. Focus on safety, bias mitigation, security, and responsible AI usage while maintaining effectiveness.
11+
Analyze the provided prompt using systematic evaluation frameworks and provide detailed recommendations for improvement. Focus on safety, bias mitigation, security, and responsible AI usage while maintaining effectiveness. Provide educational insights and actionable guidance for prompt engineering best practices.
1212

1313
## Analysis Framework
1414

@@ -43,6 +43,27 @@ Analyze the provided prompt using systematic evaluation frameworks and provide d
4343
- **Ethical Considerations:** Does the prompt align with responsible AI principles?
4444
- **Documentation Quality:** Is the prompt self-documenting and maintainable?
4545

46+
### 6. Advanced Pattern Analysis
47+
- **Prompt Pattern:** Identify the pattern used (zero-shot, few-shot, chain-of-thought, role-based, hybrid)
48+
- **Pattern Effectiveness:** Evaluate if the chosen pattern is optimal for the task
49+
- **Pattern Optimization:** Suggest alternative patterns that might improve results
50+
- **Context Utilization:** Assess how effectively context is leveraged
51+
- **Constraint Implementation:** Evaluate the clarity and enforceability of constraints
52+
53+
### 7. Technical Robustness
54+
- **Input Validation:** Does the prompt handle edge cases and invalid inputs?
55+
- **Error Handling:** Are potential failure modes considered?
56+
- **Scalability:** Will the prompt work across different scales and contexts?
57+
- **Maintainability:** Is the prompt structured for easy updates and modifications?
58+
- **Versioning:** Are changes trackable and reversible?
59+
60+
### 8. Performance Optimization
61+
- **Token Efficiency:** Is the prompt optimized for token usage?
62+
- **Response Quality:** Does the prompt consistently produce high-quality outputs?
63+
- **Response Time:** Are there optimizations that could improve response speed?
64+
- **Consistency:** Does the prompt produce consistent results across multiple runs?
65+
- **Reliability:** How dependable is the prompt in various scenarios?
66+
4667
## Output Format
4768

4869
Provide your analysis in the following structured format:
@@ -68,6 +89,26 @@ Provide your analysis in the following structured format:
6889
- **Context Adequacy:** [Score 1-5] - [Detailed assessment]
6990
- **Constraint Definition:** [Score 1-5] - [Detailed assessment]
7091
- **Format Specification:** [Score 1-5] - [Detailed assessment]
92+
- **Specificity:** [Score 1-5] - [Detailed assessment]
93+
- **Completeness:** [Score 1-5] - [Detailed assessment]
94+
95+
**Advanced Pattern Analysis:**
96+
- **Pattern Type:** [Zero-shot/Few-shot/Chain-of-thought/Role-based/Hybrid]
97+
- **Pattern Effectiveness:** [Score 1-5] - [Detailed assessment]
98+
- **Alternative Patterns:** [Suggestions for improvement]
99+
- **Context Utilization:** [Score 1-5] - [Detailed assessment]
100+
101+
**Technical Robustness:**
102+
- **Input Validation:** [Score 1-5] - [Detailed assessment]
103+
- **Error Handling:** [Score 1-5] - [Detailed assessment]
104+
- **Scalability:** [Score 1-5] - [Detailed assessment]
105+
- **Maintainability:** [Score 1-5] - [Detailed assessment]
106+
107+
**Performance Metrics:**
108+
- **Token Efficiency:** [Score 1-5] - [Detailed assessment]
109+
- **Response Quality:** [Score 1-5] - [Detailed assessment]
110+
- **Consistency:** [Score 1-5] - [Detailed assessment]
111+
- **Reliability:** [Score 1-5] - [Detailed assessment]
71112

72113
**Critical Issues Identified:**
73114
1. [Issue 1 with severity and impact]
@@ -95,18 +136,54 @@ Provide your analysis in the following structured format:
95136
- [Safety measure 1 with explanation]
96137
- [Safety measure 2 with explanation]
97138
- [Safety measure 3 with explanation]
139+
- [Safety measure 4 with explanation]
140+
- [Safety measure 5 with explanation]
141+
142+
**Bias Mitigation Strategies:**
143+
- [Bias mitigation 1 with explanation]
144+
- [Bias mitigation 2 with explanation]
145+
- [Bias mitigation 3 with explanation]
146+
147+
**Security Enhancements:**
148+
- [Security enhancement 1 with explanation]
149+
- [Security enhancement 2 with explanation]
150+
- [Security enhancement 3 with explanation]
151+
152+
**Technical Improvements:**
153+
- [Technical improvement 1 with explanation]
154+
- [Technical improvement 2 with explanation]
155+
- [Technical improvement 3 with explanation]
98156

99157
### 📋 **Testing Recommendations**
100158

101159
**Test Cases:**
102160
- [Test case 1 with expected outcome]
103161
- [Test case 2 with expected outcome]
104162
- [Test case 3 with expected outcome]
163+
- [Test case 4 with expected outcome]
164+
- [Test case 5 with expected outcome]
165+
166+
**Edge Case Testing:**
167+
- [Edge case 1 with expected outcome]
168+
- [Edge case 2 with expected outcome]
169+
- [Edge case 3 with expected outcome]
170+
171+
**Safety Testing:**
172+
- [Safety test 1 with expected outcome]
173+
- [Safety test 2 with expected outcome]
174+
- [Safety test 3 with expected outcome]
175+
176+
**Bias Testing:**
177+
- [Bias test 1 with expected outcome]
178+
- [Bias test 2 with expected outcome]
179+
- [Bias test 3 with expected outcome]
105180

106181
**Usage Guidelines:**
107182
- **Best For:** [Specific use cases]
108183
- **Avoid When:** [Situations to avoid]
109184
- **Considerations:** [Important factors to keep in mind]
185+
- **Limitations:** [Known limitations and constraints]
186+
- **Dependencies:** [Required context or prerequisites]
110187

111188
### 🎓 **Educational Insights**
112189

0 commit comments

Comments
 (0)