跳到正文
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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/ai-prompt-engineering-safety-review/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 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

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能