Refusal Gate

Refusal Gate

Acts as a first-line guard that checks a user prompt against high and medium risk regex rules and returns hard block, soft block or allow with the matched rule.

Skill files1 file
SKILL.md26 lines
1
---
2
name: rs refusal gate v1
3
use_case: RG-v1 — first-line guard (Policy + SOC-2 CC7.1).
4
author: abilzerian
5
version: 0.3.0
6
---
7
{% set user_prompt = params.user_prompt %}
8
{% set high_risk_regex = params.high_risk_regex %}
9
{% set med_risk_regex = params.med_risk_regex %}
10
11
SYSTEM:
12
RG-v1 — first-line guard (Policy + SOC-2 CC7.1).
13
14
### INPUT
15
{{ util.trunc(user_prompt,160) }}
16
17
### TASK
18
1. If matches `high_risk_regex` → `HARD_BLOCK`.
19
2. Else if matches `med_risk_regex` → `SOFT_BLOCK`.
20
3. Else → `ALLOW`.
21
22
### OUTPUT (JSON-5)
23
{
24
"decision":"HARD_BLOCK|SOFT_BLOCK|ALLOW",
25
"matched_clause":"<regex_id|None>"
26
}

© abilzerian · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 10,782 prompts

More by @OpenSourceBuffGuy

See all
Eval-Gated Fine-Tuning Lifecycle prompt image

Eval-Gated Fine-Tuning Lifecycle

Runs an eval-gated fine-tuning lifecycle end to end, handing seven phases from eval harness to export to specialist agents, each gated by the previous phase's artifact.

slash-command, orchestrator, fine-tuning, machine-learning, llm, llm-evaluation, mlops, plan-then-execute, prompt-chain, human-in-the-loop, multi-agent, placeholders, data-engineering, python, for-developers, advanced, long-form, structured-output, guardrails, checklist, deployment, state-tracking

Chromatic Gesture Characters Part 33: Ordinary Things prompt image

Chromatic Gesture Characters Part 33: Ordinary Things

Defines a JSON style for cut-shape print posters where everyday objects turn into impossible things: a paperclip bird, candle butterfly, dice stairway and paint doorway.

image-prompt, json-prompt, placeholders, poster, surreal, typography, structured-output, long-form, advanced, for-artists, for-designers, illustration, papercraft, vibrant-colors, printmaking, vertical-format, widescreen, text-rendering, whimsical, negative-space, style-reference, creativity, character-consistency

Langchain Python prompt image

Langchain Python

Sets LangChain Python coding rules for Copilot: the Runnable interface, LCEL composition, streaming, batching, retrieval, agents and security practices.

rule-file, langchain, langgraph, python, best-practices, llm, ai-agents, rag, code-generation, for-developers, long-form, advanced, tool-use, vector-database, performance-optimization, security-review, observability, structured-output, testing

Reviews

Loading reviews…

Discussion

Loading comments…