logic-procedures
Installation
SKILL.md
Decision Tree
Need return value? → Use FUNCTION
Need transaction control? → Use PROCEDURE
Need auto-update? → Use TRIGGER
Need audit trail? → Use trigger with AUDIT_LOG
Need error handling? → Use EXCEPTION block
PL/pgSQL & Business Logic Guidelines
Encapsulate complex business logic within the database using Stored Procedures and Functions to ensure consistency, reducing round-trips and enforcing data integrity closer to the source.
1. Functions vs Procedures
1.1 When to use a Function (FUNCTION)
Related skills
More from poletron/custom-rules
cpp
>
104lancedb
>
17clean-code
Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments
10vulnerability-scanner
Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack surface mapping, risk prioritization.
8trpc
>
8web-performance-optimization
Optimize website and web application performance including loading speed, Core Web Vitals, bundle size, caching strategies, and runtime performance
7