本文へスキップ
Skillpedia
プロンプトとLLM40k · #7047

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/github/awesome-copilot/blob/main/skills/ai-prompt-engineering-safety-review/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル