スキル一覧に戻る
pluginagentmarketplace

safety-guardrails

by pluginagentmarketplace

Prompt Engineering Plugin Development

1🍴 0📅 2026年1月5日
GitHubで見るManusで実行

SKILL.md


name: safety-guardrails description: LLM safety guardrails and content moderation sasmp_version: "1.3.0" bonded_agent: 08-prompt-security-agent bond_type: PRIMARY_BOND

Safety Guardrails Skill

Bonded to: prompt-security-agent


Quick Start

Skill("custom-plugin-prompt-engineering:safety-guardrails")

Parameter Schema

parameters:
  safety_level:
    type: enum
    values: [permissive, standard, strict, maximum]
    default: standard

  content_filters:
    type: array
    values: [harmful, hate, violence, adult, pii]
    default: [harmful, hate, violence]

  output_validation:
    type: boolean
    default: true

Guardrail Types

GuardrailPurposeImplementation
Input filteringBlock harmful requestsPattern matching
Output filteringPrevent harmful outputsContent analysis
Topic boundariesStay on-topicScope enforcement
Format validationEnsure safe formatsSchema checking

Content Filtering

Categories

content_categories:
  harmful:
    - dangerous_activities
    - illegal_actions
    - self_harm

  hate_speech:
    - discrimination
    - slurs
    - targeted_harassment

  violence:
    - graphic_violence
    - threats
    - weapons_instructions

  pii:
    - personal_data
    - financial_info
    - credentials

Filter Implementation

## Content Guidelines

NEVER generate content that:
1. Provides instructions for harmful activities
2. Contains hate speech or discrimination
3. Describes graphic violence
4. Exposes personal information
5. Bypasses safety measures

If a request violates these guidelines:
1. Decline politely
2. Explain which guideline applies
3. Offer a safe alternative if possible

Output Validation

validation_rules:
  format_check:
    - valid_json_if_requested
    - no_executable_code_in_text
    - no_embedded_commands

  content_check:
    - no_pii_exposure
    - no_harmful_instructions
    - appropriate_for_audience

  consistency_check:
    - matches_role_constraints
    - within_topic_boundaries

Safe Response Patterns

Declining Harmful Requests

I can't help with that request because [reason].

Here's what I can help with instead:
- [Alternative 1]
- [Alternative 2]

Would any of these work for you?

Handling Edge Cases

I notice this request is [description of concern].

To ensure I'm being helpful in the right way:
1. Could you clarify [specific aspect]?
2. Here's a safe approach to [related task]:
   [Safe alternative]

Troubleshooting

IssueCauseSolution
Over-blockingToo strictTune sensitivity
Under-blockingToo permissiveAdd patterns
False positivesAmbiguous contentContext-aware rules
InconsistentRule conflictsPrioritize rules

References

See: Anthropic Constitutional AI, OpenAI Moderation API

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です