oe-backend-prod-hardening
Production hardening review for the OpenEvent backend. Use when scanning for LLM smells, noisy prints, swallowed exceptions, dev-only defaults, fallback diagnostic leakage, and inconsistent error/logging patterns; produce a prioritized, PR-sized cleanup plan.
When & Why to Use This Skill
This Claude skill automates production hardening reviews for backend systems by identifying critical code smells such as diagnostic leaks, improper error handling, and insecure defaults. It streamlines the transition from development to production-ready code by generating a prioritized, actionable cleanup plan organized into manageable pull requests, ensuring system reliability and security.
Use Cases
- Pre-deployment Audit: Automatically scanning the backend codebase for noisy print statements and swallowed exceptions to ensure production stability and clean logs.
- Security & Privacy Hardening: Identifying and mitigating instances where internal system diagnostics or 'dev-only' configurations might be exposed to end-users, preventing sensitive data leakage.
- Technical Debt Management: Systematically transforming inconsistent error handling and logging patterns into structured, ops-visible events through a prioritized pull request roadmap.
| name | oe-backend-prod-hardening |
|---|---|
| description | Production hardening review for the OpenEvent backend. Use when scanning for LLM smells, noisy prints, swallowed exceptions, dev-only defaults, fallback diagnostic leakage, and inconsistent error/logging patterns; produce a prioritized, PR-sized cleanup plan. |
oe-backend-prod-hardening
Audit workflow (tight + actionable)
Scan for runtime smells:
rg -n "print\\(" backendrg -n "except Exception\\s*:\\s*(pass)?$" backendrg -n "OE_FALLBACK_DIAGNOSTICS|FALLBACK" backendrg -n "ENABLE_DANGEROUS_ENDPOINTS" backend
Classify findings:
- User-visible (must not leak diagnostics)
- Ops-visible (structured logs, trace events)
- Dev-only (move to scripts / gated)
Convert into a PR ladder:
- One concern per PR: logging, error handling, config defaults, MCP bootstrap, etc.
Canonical reference
- Add/maintain items in
docs/internal/BACKEND_REFACTORING_PLAN_DEC_2025_ADDENDUM.md.