data-export

Export module data to a dated .xlsx file via a server-side ClosedXML endpoint.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/shugaocheng075-bot/PMS-Standalone --skill data-export-shugaocheng075-bot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-export
Source: https://github.com/shugaocheng075-bot/PMS-Standalone/tree/main/prompts/skills/data-export
Command: npx skills add https://github.com/shugaocheng075-bot/PMS-Standalone --skill data-export-shugaocheng075-bot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates exporting module data to Excel on the server side, eliminating manual report generation and ensuring consistent formatting and permissions.

Core Features & Use Cases

  • Server-side Excel export: uses ClosedXML to generate a workbook from a full dataset that respects data scope and filters.
  • Unified backend endpoint: exposes a single export endpoint that returns a .xlsx file for download.
  • Audit-friendly filenames: includes a date stamp in the exported file name for traceability.

Quick Start

Use the export endpoint to generate a full Excel report for a module with current filters.

Frequently Asked Questions about data-export

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

FAQPage Schema
How do I export backend API query results to an Excel file?

You can export backend API query results to an Excel file by using a server-side endpoint that queries the dataset and generates a .xlsx workbook via ClosedXML. This process automatically applies the correct MIME type for direct download.

Can I enforce access control and data scope during an Excel data export?

Yes, you can enforce access control and data scope during an Excel data export because the backend endpoint respects data scope and filters when generating the workbook. This ensures admin workflows require proper permissions before returning the full dataset.

Does ClosedXML work for generating server-side .xlsx files with date-stamped filenames?

ClosedXML works for generating server-side .xlsx files with date-stamped filenames by constructing a workbook from query results and returning a dated file. This approach provides audit-friendly traceability for your automated report generation.

What is the best way to automate admin report generation for full module datasets?

The best way to automate admin report generation for full module datasets is to expose a unified backend export endpoint. This endpoint uses a service query with keyword filtering to construct a complete Excel workbook, eliminating manual report generation.

Do I need any frontend dependencies to download a .xlsx file from a backend export endpoint?

You do not need any frontend dependencies to download a .xlsx file from a backend export endpoint. The server-side implementation independently handles the service query, ClosedXML workbook construction, and MIME type response without external component dependencies.