ER

error-sanitization

Prevents security leaks by masking technical details in public-facing error responses.

Install

mkdir -p .claude/skills/error-sanitization && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4895" && unzip -o skill.zip -d .claude/skills/error-sanitization && rm skill.zip

Installs to .claude/skills/error-sanitization

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Production-safe error handling that logs full details server-side while exposing only generic, safe messages to users. Prevents information leakage of database strings, file paths, stack traces, and API keys.
208 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Sanitize error messages for client-side display
  • Log full error details server-side with context
  • Classify error types for safe exposure
  • Create sanitized HTTP exceptions

How it works

The skill logs full error details server-side while masking sensitive information like database strings or file paths before returning a generic message to the user.

Inputs & outputs

You give it
Raw exception object and context
You get back
Sanitized user-friendly error message

When to use error-sanitization

  • Sanitize API responses
  • Mask production stack traces
  • Prevent database string leakage

About error-sanitization

Logs full error details for server-side troubleshooting while providing only safe, generic messages to external users, preventing sensitive info leakage.

Production-safe error handling that logs full details server-side while exposing only generic, safe messages to users. Prevents information leakage of database strings, file paths, stack traces, and API keys.

When not to use it

  • When full stack traces are required for client-side debugging in production

Limitations

  • Requires manual classification of new error types
  • Sensitive information might leak if patterns are not updated

How it compares

This approach enforces a strict separation between internal debugging logs and external user-facing messages, unlike standard error handling which often leaks stack traces.

Compared to similar skills

error-sanitization side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
error-sanitization (this skill)16moReviewIntermediate
reverse-engineering-tools734moNo flagsAdvanced
ghidra167moReviewAdvanced
firmware-analyst94moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

reverse-engineering-tools

gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

73204

ghidra

mitsuhiko

Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract functions, strings, symbols, and analyze call graphs without GUI.

16105

firmware-analyst

sickn33

Expert firmware analyst specializing in embedded systems, IoT security, and hardware reverse engineering. Masters firmware extraction, analysis, and vulnerability research for routers, IoT devices, automotive systems, and industrial controllers. Use PROACTIVELY for firmware security audits, IoT penetration testing, or embedded systems research.

947

memory-forensics

wshobson

Master memory forensics techniques including memory acquisition, process analysis, and artifact extraction using Volatility and related tools. Use when analyzing memory dumps, investigating incidents, or performing malware analysis from RAM captures.

748

binary-analysis-patterns

wshobson

Master binary analysis patterns including disassembly, decompilation, control flow analysis, and code pattern recognition. Use when analyzing executables, understanding compiled code, or performing static analysis on binaries.

540

security-scanning-tools

davila7

This skill should be used when the user asks to "perform vulnerability scanning", "scan networks for open ports", "assess web application security", "scan wireless networks", "detect malware", "check cloud security", or "evaluate system compliance". It provides comprehensive guidance on security scanning tools and methodologies.

438

Search skills

Search the agent skills registry