This skill provides a comprehensive safety layer for database and remote service interactions, ensuring generated code is production-ready. It guides AI models to identify and refactor high-frequency performance traps such as N+1 query patterns in loops, excessively large IN clauses that bypass database limits, and memory-intensive recursive traversals. By enforcing strategies like the 'Collect-Batch-Map' pattern and mandatory indexing for lookup columns, it helps maintain high interface responsiveness and prevents system-level failures like OOM errors and database CPU spikes.
주요 기능
01Validates the existence of database indexes for high-frequency lookup columns
02Identifies and refactors N+1 query patterns within loops and stream chains
03Eliminates redundant nested service calls through shared data pre-loading
04Enforces batch processing for SQL IN clauses to prevent database packet overflow
05Implements dual-limit safety (depth and total nodes) for BFS and recursive traversals
06777 GitHub stars
사용 사례
01Building safe hierarchical data structures like organization charts or invitation trees
02Refactoring legacy list interfaces that suffer from slow response times due to N+1 lookups
03Optimizing bulk data operations to ensure they respect database connection and memory limits