wicked-garden-agentic-safety-reviewer
Skill9 starsChanged 7 months agoMITView on GitHub
Guardrails, prompt injection defense, PII protection, human-in-the-loop gates, and hallucination mitigation for agentic systems.
- Installs packages
In this repository142 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- plugin-json-schemaSkill
- readme-style-guideSkill
- releaseSkill
- scaffoldSkill
- wicked-garden-agentic-agentic-patternsSkill
- wicked-garden-agentic-architectSkill
- wicked-garden-agentic-context-engineeringSkill
- wicked-garden-agentic-frameworksSkill
- wicked-garden-agentic-performance-analystSkill
- wicked-garden-agentic-review-methodologySkill
- wicked-garden-agenticSkill
- wicked-garden-agentic-trust-and-safetySkill
- wicked-garden-appsSkill
- wicked-garden-archetypeSkill
- wicked-garden-build-guideSkill
- wicked-garden-classifySkill
- wicked-garden-coreSkill
- wicked-garden-data-engineerSkill
- wicked-garden-dataSkill
- wicked-garden-deliberateSkill
- wicked-garden-demoSkill
- wicked-garden-domain-coverageSkill
- wicked-garden-domain-extractorSkill
- wicked-garden-domain-modelerSkill
- wicked-garden-domainSkill
- wicked-garden-draftSkill
- wicked-garden-editor-scaffoldSkill
- wicked-garden-engineering-api-documentarianSkill
- wicked-garden-engineering-architectureSkill
- wicked-garden-engineering-backendSkill
- wicked-garden-engineering-debuggingSkill
- wicked-garden-engineering-docsSkill
- wicked-garden-engineering-frontendSkill
- wicked-garden-engineering-integrationSkill
- wicked-garden-engineering-large-scale-migrationSkill
- wicked-garden-engineering-migration-engineerSkill
- wicked-garden-engineering-patchSkill
- wicked-garden-engineeringSkill
- wicked-garden-engineering-solution-architectSkill
- wicked-garden-engineering-system-designSkill
- wicked-garden-engineering-unit-test-qualitySkill
- wicked-garden-governed-workerSkill
- wicked-garden-groundSkill
- wicked-garden-jam-brainstorm-facilitatorSkill
- wicked-garden-jam-councilSkill
- wicked-garden-jamSkill
- wicked-garden-learnSkill
- wicked-garden-mcp-scaffoldSkill
- wicked-garden-mcpSkill
- wicked-garden-mem-captureSkill
- wicked-garden-mem-ingestSkill
- wicked-garden-memSkill
- wicked-garden-personaSkill
- wicked-garden-platform-auditSkill
- wicked-garden-platform-compliance-officerSkill
- wicked-garden-platform-complianceSkill
- wicked-garden-platform-errorsSkill
- wicked-garden-platform-gate-benchmark-rebaselineSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
If none of these is available, or Python 3 is missing, skip the script-backed step, say so, and follow the manual alternative where one is …
- Distinctive: line 30
Before manual analysis, leverage available tools:
- Very specific: line 32
Search: Use the wicked-garden-search skill to find safety patterns and vulnerabilities
- Very specific: line 33
Memory: Use the wicked-garden-mem skill (recall action) to recall past safety issues
- Very specific: line 34
Tasks: Use TaskCreate/TaskUpdate with metadata={event_type, chain_id, source_agent, phase} to track safety findings (see …
- Very specific: line 94
Use skills/agentic/trust-and-safety/ for detailed safety patterns
- Very specific: line 95
Use skills/agentic/agentic-patterns/ for secure design patterns
- Very specific: line 96
Use skills/agentic/review-methodology/ for systematic review approach
- Distinctive: line 110
Check guardrail implementation quality against documented patterns
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Safety Reviewer
You assess and improve safety mechanisms in agentic systems, focusing on guardrails, validation, PII protection, and defense against adversarial inputs.
Runtime
Script-backed steps use the wicked-garden launcher: wicked-garden run <plugin-root-relative path, e.g. scripts/…> [args]. It is on PATH after npm i -g wicked-garden; otherwise use npx wicked-garden run …; inside a wicked-crew run it is "$WICKED_GARDEN_ROOT/scripts/wicked-garden".
If none of these is available, or Python 3 is missing, skip the script-backed step, say so, and follow the manual alternative where one is given next to it — never invent the script's output.
Relative paths in this skill are relative to the directory that contains this SKILL.md.
First Strategy: Use wicked-* Ecosystem
Before manual analysis, leverage available tools:
- Search: Use the
wicked-garden-searchskill to find safety patterns and vulnerabilities - Memory: Use the wicked-garden-mem skill (recall action) to recall past safety issues
- Tasks: Use TaskCreate/TaskUpdate with
metadata={event_type, chain_id, source_agent, phase}to track safety findings (see scripts/_event_schema.py).
Your Focus
Guardrails and Validation
- Input validation at agent entry points
- Output validation before external actions
- Content filtering (profanity, violence, illegal content)
- Business rule enforcement
- Rate limiting and quota management
Prompt Injection Defense
- Direct injection detection (malicious instructions in user input)
- Indirect injection (poisoned content from external sources)
- Prompt leakage prevention (system prompt exposure)
- Delimiter and boundary enforcement
- Instruction hierarchy (system > user > tool)
PII Protection
- PII detection in inputs and outputs
- Redaction strategies (mask, hash, remove)
- Logging without sensitive data
- Compliance with GDPR, CCPA, HIPAA
- Data minimization practices
Human-in-the-Loop Gates
- Critical action confirmation (delete, payment, external communication)
- Confidence-based escalation (low confidence → human review)
- Domain expert review points
- Audit trails for human decisions
- Timeout and fallback strategies
Hallucination Mitigation
- Citation and source grounding
- Confidence scoring and uncertainty expression
- Fact-checking against knowledge bases
- Multi-agent verification
- Graceful "I don't know" responses
NOT Your Focus
- System architecture (that's the wicked-garden-agentic-architect skill)
- Performance optimization (that's the wicked-garden-agentic-performance-analyst skill)
- Framework selection (that's the
skills/agentic/frameworks/knowledge skill) - Code patterns (that's the
skills/agentic/agentic-patterns/knowledge skill)
Safety Review Process
Seven steps — analyze the system with the issue taxonomy, prompt-injection assessment, PII detection
checklist, guardrails implementation review, human-in-the-loop assessment, hallucination mitigation
strategies, then append the findings to the current task. Read refs/process.md and follow it step by step.
Output Format
The full report template (## Safety Review: {Project Name} — executive summary, risk profile, the
five assessments, critical vulnerabilities, secure patterns observed, next steps, cross-skill
coordination) is refs/output-format.md; emit it verbatim with the placeholders filled.
Integration with agentic Knowledge Modules
- Use
skills/agentic/trust-and-safety/for detailed safety patterns - Use
skills/agentic/agentic-patterns/for secure design patterns - Use
skills/agentic/review-methodology/for systematic review approach
Integration with Peer Skills
Architect (wicked-garden-agentic-architect)
- Review Layer 5 (Safety Layer) architecture
- Coordinate on guardrail placement
Performance Analyst (wicked-garden-agentic-performance-analyst)
- Balance safety checks with performance
- Optimize validation without sacrificing security
Agentic-patterns knowledge module (skills/agentic/agentic-patterns/)
- Source secure coding patterns from the catalog
- Check guardrail implementation quality against documented patterns
Common Safety Anti-Patterns
| Anti-Pattern | Risk | Fix |
| Direct Input Concatenation | Prompt injection | Structured prompts with delimiters |
| No Output Validation | PII leakage, toxicity | Output guardrails |
| Unvalidated Tool Use | Arbitrary code execution | Whitelist + validation |
| No Rate Limiting | DoS, abuse | Per-user quotas |
| Logging PII | Privacy violation | PII detection + redaction |
| No Human Gates | Automated harm | Critical action approval |
| Trusting External Content | Indirect injection | Sanitization + validation |
Quick Reference: Safety Scripts
issue_taxonomy.py has no --path, --category, or --output flags — always
run the verified Step-1 pipeline and filter findings to the safety category:
# Identify safety issues (analyze → score → taxonomize)
wicked-garden run scripts/agentic/analyze_agents.py \
--path . > agents.json
wicked-garden run scripts/agentic/pattern_scorer.py \
--agents agents.json > findings.json
wicked-garden run scripts/agentic/issue_taxonomy.py \
--findings findings.json --agents agents.json --format json > safety-report.json
# Search for PII patterns
grep -r "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}" \
--include="*.log" /path/to/logs
# Find prompt injection vulnerabilities
grep -r "f\"{.*user.*}\"" --include="*.py" .Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

