Hardens inline Node.js execution in shell hooks by implementing deterministic I/O contracts and robust failure propagation.
This skill provides a standardized framework for hardening Node.js scripts called within shell hooks, ensuring they operate reliably in complex development environments like Salesforce RevOps. It addresses common failure points such as process crashes, execution timeouts, and JSON output corruption by enforcing strict separation of stdout and stderr. By implementing these patterns, developers can ensure that hook logic remains deterministic, errors are captured without breaking the data stream, and scripts adhere to strict execution budgets to prevent hanging processes.
主要功能
01Provides advisory fallback patterns for non-critical validation errors
02Separates Node.js stdout from stderr to prevent JSON response corruption
03Defines a standardized exit code contract for consistent failure handling
04Enforces strict execution timeout budgets using the timeout command
051 GitHub stars
06Includes guidance for Node binary discovery in diverse runtime contexts
使用场景
01Capturing detailed Node.js error diagnostics without interfering with automated hook results
02Implementing timeout-protected metadata checks in Salesforce development workflows
03Running custom Node.js validation logic within Git pre-commit or pre-push hooks