preventing-error-exposure

Community

Hide DB errors from clients; log safely.

Authordjankies
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides transforming Prisma errors into user-friendly messages for clients while preserving full context in server-side logs.

Core Features & Use Cases

  • Error Sanitization: Map P-codes to generic messages for clients.
  • Server-Side Logging: Capture full error details (stack, query, P-code) for debugging.
  • Operational Resilience: Improve UX while maintaining debuggability.

Quick Start

Implement an error handler that sanitizes Prisma errors before sending responses to clients.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: preventing-error-exposure
Download link: https://github.com/djankies/claude-configs/archive/main.zip#preventing-error-exposure

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository