What problem does it solve?
Large user-driven file exports built entirely in memory cause OOM crashes, Full GC storms, leftover temp files, HTTP thread blocking, and spreadsheet formula injection. This Skill enforces streaming and paginated export patterns when data volume exceeds 10,000 rows or 10 MB, or when the volume is unpredictable.
Core Features & Use Cases
- Streaming API guidance per format and language: Covers Apache POI SXSSF, EasyExcel, openpyxl write_only, excelize StreamWriter, ExcelJS stream, Jackson JsonGenerator, OpenCSV, ReportLab, PDFKit, and more, with correct usage and known limitations.
- Async export task pattern: Replaces synchronous HTTP export with task submission, background execution, object storage upload, and status polling to avoid gateway timeouts.
- Safety checklist: Covers temp file cleanup in finally blocks, SXSSF dispose, disk quota checks, CSV/Excel formula injection escaping, and data volume caps.
- Use Case: When asked to add an order export endpoint that may return hundreds of thousands of rows, the Skill guides you to use SXSSFWorkbook with pagination, run it asynchronously, upload to object storage, and escape user-controlled text cells.
Quick Start
Ask the AI to implement or review a large data export feature, such as "add an Excel export for all orders that may exceed 100k rows", and it will apply the streaming and async patterns from this Skill.