harden

Tighten error handling and validation across code boundaries.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/nokusukun/sublime --skill harden-nokusukun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harden
Source: https://github.com/nokusukun/sublime/tree/main/harden
Command: npx skills add https://github.com/nokusukun/sublime --skill harden-nokusukun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tighten error handling, validation, and failure modes across code boundaries to ensure failures are honest and recoverable.

Core Features & Use Cases

  • Inventory boundaries (network, filesystem, parser, user input, subprocess, database, clock, environment) and identify error-handling gaps.
  • Audit swallowed exceptions and fallback-masks-bug patterns, and enforce explicit validation at entry.
  • Strengthen security posture (SQL usage safety with prepared statements, CSRF protection, crypto RNG) to prevent silent failures and insecure behavior.

Quick Start

Run the harden workflow on the target codebase to inventory boundaries and tighten error handling at the entry points.

Frequently Asked Questions about harden

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit swallowed exceptions and tighten error handling across code boundaries?

To tighten error handling across code boundaries, inventory network, filesystem, parser, user input, subprocess, database, clock, and environment boundaries to identify gaps, enforce parsing at entry, and narrow exception targets for honest failures.

What's the best way to prevent silent failures from masked exceptions in production code?

Preventing silent failures requires auditing fallback-masks-bug patterns and swallowed exceptions, enforcing explicit validation at entry points, and ensuring errors are honest and recoverable rather than masked by default fallbacks.

How do I strengthen security posture for SQL usage, CSRF protection, and crypto RNG?

Strengthening security posture involves performing targeted checks for SQL usage safety with prepared statements, CSRF protection, and crypto RNG to prevent insecure behavior and silent failures across code boundaries.

When do I need to validate parser input and user input at entry points?

Validate parser input and user input at entry points when processing production code across network, filesystem, subprocess, database, clock, or environment boundaries to ensure honest failures and recoverable errors.

Does this error handling approach work without external dependencies or components?

Yes, this error handling and validation hardening approach operates with no external dependencies or components, applying disciplined boundary inventory and security checks directly to the target codebase.