CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

guardrails-safety-filter-builder

The content presents Python examples for building layered safety filters in LLM applications, from detecting and redacting PII to applying topic constraints and validating generated output. It also provides a complete guardrail pipeline and a checklist that includes logging, monitoring, and testing for bypasses.

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

82%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is a lean, code-first guide that respects the token budget and covers the full safety stack — detection, policy, refusal, output validation, and a complete pipeline — with well-organized sections and an output checklist. The main gaps are undefined placeholders (llm, toxicity_classifier, a top-level return), a missing error-recovery loop in the pipeline, and everything inlined at ~210 lines with no reference files.

Suggestions

Define or annotate the `llm(...)` and `toxicity_classifier(...)` integration points (e.g., a one-line note that callers substitute their own model/classifier) and move the top-level `return` into a function so the examples are copy-paste runnable (actionability).

Add a feedback-loop branch to the pipeline for failed output validation — e.g., regenerate the response or flag for human review — rather than only sanitizing and passing through (workflow_clarity).

Move the REFUSAL_TEMPLATES and POLICY dictionaries to a references/ file so SKILL.md stays a leaner overview pointing to one-level-deep detail (progressive_disclosure).

DimensionReasoningScore

Conciseness

Nearly every token is executable code or a one-line section header — e.g. "## PII Detection & Redaction" jumps straight into a working Presidio snippet with no concept explanation, library backstory, or padding. It assumes Claude's competence and matches anchor 5; there is no over-explanation to justify dropping to 4.

5 / 5

Actionability

Most code is concrete and executable (Presidio redaction pipeline, injection regex list, POLICY dict, REFUSAL_TEMPLATES), but `llm(classification_prompt)`, `toxicity_classifier(output)`, and a top-level `return "I cannot process that request."` outside any function are undefined placeholders — minor gaps that fall short of anchor 5's copy-paste-ready standard.

4 / 5

Workflow Clarity

The "Complete Guardrail Pipeline" section gives a numbered 4-step sequence (input validation → policy check → generate → output validation) with checkpoints at each stage, plus an "Output Checklist" — but there is no error-recovery feedback loop (e.g., regenerate or escalate when validation fails), so it fits anchor 4 rather than 5. The destructive/batch cap does not apply since this is filtering, not destructive file or batch operations.

4 / 5

Progressive Disclosure

The body (~210 lines, no bundle files) is cleanly organized into clearly headed sections (Safety Layers overview, then one section per layer, then pipeline, best practices, checklist) with no nested references — good structure with content mostly appropriately placed. It scores 4 rather than 5 because the skill exceeds the 'under 50 lines' simple-skill carve-out and inline material like REFUSAL_TEMPLATES/POLICY could live in reference files.

4 / 5

Total

17

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is strong: third-person voice, four concrete named capabilities, and an explicit 'Use when' clause with quoted trigger phrases that mirrors the rubric's top anchor for completeness. Its only weaknesses are a few missing natural trigger terms (notably 'prompt injection', despite being a core capability) and slight overlap risk from the broad 'PII protection' trigger.

DimensionReasoningScore

Specificity

Lists four concrete actions — "PII redaction, policy constraints, prompt injection detection, and safe refusal templates" — but omits output validation/toxicity checking that the skill body covers, so it matches anchor 4 ('several specific actions; minor gaps in coverage') rather than 5's comprehensive coverage.

4 / 5

Completeness

"Implements content safety filters with..." clearly states what the skill does, and "Use when adding 'content moderation', 'safety filters', 'PII protection', or 'guardrails'" explicitly states when with concrete quoted trigger phrases — matching the anchor-5 example structure. It is not 4 because the 'when' is already explicit and specific.

5 / 5

Trigger Term Quality

"content moderation", "safety filters", "PII protection", and "guardrails" are natural phrases users would say, but common variations like "prompt injection", "content filtering", or "redaction" are absent — good coverage with a few natural terms missing (anchor 4, not 5's comprehensive synonym coverage).

4 / 5

Distinctiveness Conflict Risk

The LLM-safety-filter niche is clear and mostly distinct ("prompt injection detection", "guardrails"), but the broad "PII protection" trigger could overlap with general data-privacy skills — minor overlap risk with closely related skills (anchor 4, not 5's minimal conflict risk).

4 / 5

Total

17

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/guardrails-safety-filter-builder/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.