ai-prompt-engineering-safety-review
できること
このツールは、AIへのリクエスト(プロンプト)が安全で、公平で、うまく機能するかを確認します。より良い結果を得るために、リクエストの改善方法も提案します。
使う場面
- ✓リクエストから危険な内容が生成されないか確かめたいとき。
- ✓リクエストが不公平だったり、偏りがあったりするかもしれないと感じたとき。
- ✓リクエストを最適化して、AIからより良い回答を引き出したいとき。
スキルのリンク
https://github.com/github/awesome-copilot/blob/main/skills/ai-prompt-engineering-safety-review/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロンプトを分析してください:「子ども向けに聞こえるような、料理についての文章を書いてください。」”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールはプロンプトを読み取り、安全性、公平性、効果の基準と照らし合わせます。問題点を指摘し、AIがより正しく理解して安全に回答できるように、変更案を提示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
AI Prompt Engineering Safety Review & Improvement
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.
Your Mission
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.
Analysis Framework
1. Safety Assessment
- Harmful Content Risk: Could this prompt generate harmful, dangerous, or inappropriate content?
- Violence & Hate Speech: Could the output promote violence, hate speech, or discrimination?
- Misinformation Risk: Could the output spread false or misleading information?
- Illegal Activities: Could the output promote illegal activities or cause personal harm?
2. Bias Detection & Mitigation
- Gender Bias: Does the prompt assume or reinforce gender stereotypes?
- Racial Bias: Does the prompt assume or reinforce racial stereotypes?
- Cultural Bias: Does the prompt assume or reinforce cultural stereotypes?
- Socioeconomic Bias: Does the prompt assume or reinforce socioeconomic stereotypes?
- Ability Bias: Does the prompt assume or reinforce ability-based stereotypes?
3. Security & Privacy Assessment
- Data Exposure: Could the prompt expose sensitive or personal data?
- Prompt Injection: Is the prompt vulnerable to injection attacks?
- Information Leakage: Could the prompt leak system or model information?
- Access Control: Does the prompt respect appropriate access controls?
4. Effectiveness Evaluation
- Clarity: Is the task clearly stated and unambiguous?
- Context: Is sufficient background information provided?
- Constraints: Are output requirements and limitations defined?
- Format: Is the expected output format specified?
- Specificity: Is the prompt specific enough for consistent results?
5. Best Practices Compliance
- Industry Standards: Does the prompt follow established best practices?
- Ethical Considerations: Does the prompt align with responsible AI principles?
- Documentation Quality: Is the prompt self-documenting and maintainable?
6. Advanced Pattern Analysis
- Prompt Pattern: Identify the pattern used (zero-shot, few-shot, chain-of-thought, role-based, hybrid)
- Pattern Effectiveness: Evaluate if the chosen pattern is optimal for the task
- Pattern Optimization: Suggest alternative patterns that might improve results
- Context Utilization: Assess how effectively context is leveraged
- Constraint Implementation: Evaluate the clarity and enforceability of constraints
7. Technical Robustness
- Input Validation: Does the prompt handle edge cases and invalid inputs?
- Error Handling: Are potential failure modes considered?
- Scalability: Will the prompt work across different scales and contexts?
- Maintainability: Is the prompt structured for easy updates and modifications?
- Versioning: Are changes trackable and reversible?
8. Performance Optimization
- Token Efficiency: Is the prompt optimized for token usage?
- Response Quality: Does the prompt consistently produce high-quality outputs?
- Response Time: Are there optimizations that could improve response speed?
- Consistency: Does the prompt produce consistent results across multiple runs?
- Reliability: How dependable is the prompt in various scenarios?
Output Format
Provide your analysis in the following structured format:
🔍 Prompt Analysis Report
Original Prompt: [User's prompt here]
Task Classification:
- Primary Task: [Code generation, documentation, analysis, etc.]
- Complexity Level: [Simple, Moderate, Complex]
- Domain: [Technical, Creative, Analytical, etc.]
Safety Assessment:
- Harmful Content Risk: [Low/Medium/High] - [Specific concerns]
- Bias Detection: [None/Minor/Major] - [Specific bias types]
- Privacy Risk: [Low/Medium/High] - [Specific concerns]
…
よくある質問
プロンプトにおける「偏り(バイアス)」とは何ですか?
プロンプトが、意図せずに特定の集団(性別、人種、年齢など)を優遇したり、不利に扱ったりしてしまうことです。
「セキュリティ上の脆弱性」とは何ですか?
プロンプトによって、AIを騙して秘密の情報を明かさせたり、望ましくない動作をさせたりできてしまう状態のことです。
「効果」が大切なのはなぜですか?
効果的なプロンプトは、明確で、十分な背景情報があり、何を求めているかが具体的に示されています。そのため、AIが最良の回答を出せるようになります。
詳細
作者による元の説明
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.
repo: github/awesome-copilot
人気
- GitHubのスター
- 40k
- ランキング
- #7047
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
acquire-codebase-knowledge
40kエージェントが、既存のコードプロジェクトを理解してドキュメント化できるよう支援します。新しく参加するメンバーのオンボーディングや、アーキテクチャの全体像の把握に役立ちます。
acreadiness-assess
40kエージェントが、プロジェクトのAI対応状況を評価してレポートを生成できるよう支援します。プロジェクトがAIツールをどの程度活用できる状態にあるかを把握するのに役立ちます。
acreadiness-generate-instructions
40kエージェントが、評価結果をもとにAIツール向けの指示文を作成できるよう支援します。AIがコードとどのようにやり取りするかを改善し、特定された不足点を解消するのに役立ちます。
acreadiness-policy
40kエージェントが、AIプロジェクトの評価ポリシーの策定や適用を支援できるようにします。プロジェクトの評価方法を標準化し、コンプライアンスを確保するのに役立ちます。
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。