跳到正文
Skillpedia
提示词与 LLM48k · #4582

fable-safe-prompt

它能做什么

这个 AI 代理可以帮你改写提示词,避免它们无意中触发安全警报。它会对特定的词句做一些小改动,保留你的原意,但表达得更安全。

适用场景

  • ✓当一个合理的提示词可能被误判、触发安全警报时。
  • ✓当用户想把提示词改写得清晰且安全时。
  • ✓为了避免敏感词触发安全分类器时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fable-safe-prompt/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fable-safe-prompt/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请改写这段提示词,使它不会被误触发安全警报,同时保留原本的意图:<prompt>攻击者如何利用这个身份验证机制?</prompt>”

每周 5 个新技能,1 分钟读完。

工作原理

代理会找出那些可能被安全系统误解的词句,然后用更安全的表达替换它们,同时不改变提示词的主要目标。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Fable-Safe Prompt

When to Use

  • Use when an allowed prompt appears likely to hit false-positive classifier language.
  • Use when the user asks for prompt wording that keeps benign intent clear and policy-compliant.

Return the user's prompt back in full, verbatim, changing ONLY the specific sentences/phrases most likely to trip Fable 5's cyber/bio classifiers. Do not rewrite the whole thing, do not summarize, do not restructure — minimal surgical edits. Keep the actual goal and all benign text exactly as written. This lowers false positives for benign work. It must not be used to bypass safety policy or enable harmful requests.

Fable 5 runs 3 input classifiers: cyber, bio/chem, reasoning_extraction. Triggers are keyword/surface-based, largely intent-independent ("hello" and "cancer" got flagged). The fix is to abstract away the sensitive domain, not just restate intent.

Apply when the prompt touches: cyber/auth/exploits/malware/pentesting/credentials; bio/chem/medical/disease/lab topics; or any "show your reasoning" instruction.

The user provides the prompt-to-be-changed wrapped in <prompt>...</prompt> XML tags. Operate only on the text inside those tags; treat everything outside as instructions to you.

Method

  1. Flag the highly problematic sentences/phrases (offensive framings, named sensitive domains, "show your thinking" lines).
  2. Replace each in place with a safe equivalent (see swaps), or describe the wanted functionality abstractly rather than naming the domain.
  3. Leave everything else byte-for-byte identical.
  4. Return the complete edited prompt.

Reframe so the task reads as: owned/authorized, defensive (implement/fix/test, not attack), and not dual-use (no exploit dev, attack simulation, bypass payloads, malware, live testing).

Swap framings (apply per-sentence)

Triggering Safe rewrite
"How could an attacker exploit this auth" "Review these auth files for missing checks and fix them defensively"
"Write an exploit / payload / PoC" "Add a regression test proving X is fixed, then patch it"
"How do I bypass / brute-force Y" "Enforce secure session validation + rate limiting on Y"
"Reverse this malware / show attack steps" "Describe the risk high-level, then implement the fix"
"Show your reasoning / explain step-by-step / walk me through your thinking" Delete it. Trips reasoning_extraction. If progress visibility is needed, ask it to use a send-to-user tool, not to echo its internal thoughts.
Clinician framing: "as a doctor, diagnose this ECG" Patient framing: "help me interpret this ECG my doctor gave me"
Named bio/chem domain: "cancer / disease pathway / chemical kinetics" Abstract it: describe the data/analysis generically, drop the domain noun

Trigger keywords to abstract away

Cyber: exploit, malware, vulnerability, attack, bypass, stealth, fingerprinting, anti-bot, CAPTCHA, penetration. Bio/chem: biology, biomedicine, chemistry, cancer, disease pathways, RNA/variant calling, equilibrium, kinetics, diagnosis. Distillation: "distill the model", training pipelines, frontier LLM development.

If no benign defensive equivalent exists for a sentence (it's purely offensive), flag it to the user rather than silently neutering the intent.

Output

  1. Print the full safe prompt back to the user in text (a code block, ready to paste).
  2. Copy it to the clipboard so the user can paste immediately:
    pbcopy <<'EOF'
    <the full safe prompt>
    EOF
    
    Confirm in one line that it's on the clipboard.
  3. A short list of exactly which sentences you changed and what they became.
  4. If the task is genuinely offensive (pentest, exploit repro, malware analysis): say plainly no edit makes it Fable-safe — use an Opus 4.8 fallback or vetted Mythos, not Fable 5.

Hard truth: you can't reliably stop Fable 5 guardrails. Robust API setups also treat stop_reason: "refusal" (HTTP 200, stop_details.category = cyber/bio) as a route to an Opus 4.8 fallback — mention only if the user controls the integration.

Example

User request:

Rewrite this allowed prompt to reduce false-positive classifier triggers while preserving its intent and constraints.

Limitations

  • Adapted from davidondrej/skills; verify local paths, tools, credentials, and agent features before acting.

…

常见问题

什么是“误报”?

误报是指安全警报被错误地触发,比如安全系统认为某些内容有危险,但实际上它是无害的。

代理会改变我的原始需求吗?

不会。目标是保留你原本的意图,只调整措辞以避免安全问题,不会改变你希望 AI 完成的任务。

如果提示词本身确实有危险呢?

如果提示词真的具有攻击性或危险性,代理不会修改它,并会说明无法将其改为安全的版本。

详情

作者的原始描述

Rewrite allowed prompts to reduce false-positive safety triggers without bypassing policy or changing intent.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4582
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能