result-export
Skill by eosphoros-ai
Exports query result sets to CSV or Excel with PII masking, column-type checks and row-count approval. It is for analysts who need to save, download or share a report, or pull full data after a preview is truncated.
Install result-export
Built from the published package, never by AI.
git clone --depth 1 https://github.com/eosphoros-ai/DB-GPT /tmp/DB-GPT && mkdir -p ~/.claude/skills && cp -r /tmp/DB-GPT/assets/suites/db-query/skills/result-export ~/.claude/skills/result-exportRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/eosphoros-ai/DB-GPT /tmp/DB-GPT && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DB-GPT/assets/suites/db-query/skills/result-export ~/.gemini/antigravity-cli/skills/result-exportAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Result Export is a skill for the query workflow. It saves an already executed result set, or a full-detail query re-run with the same validated SQL, as a CSV or Excel file. Before export it reads masking rules and sensitive column markers, and masking runs at export time and cannot be turned off by the model. It estimates the row count and asks for approval when the export exceeds 100,000 rows.
The skill checks that amounts keep their precision, dates use one format, long numbers stay as text and NULL values become empty strings. Files are named by metric, dimension and time window, and the delivery card repeats the metric version, row count, masked columns and read-only source. It is aimed at analysts and business users who need an exact, auditable file that matches the number shown in chat.
Written from the project's SKILL.md and checked against it.
What it can do
- export_csvExports a validated SQL result to CSV or xlsx with masking and a UTF-8 BOM for Excel.
- guardrails.get_rulesReads masking rules for the requested scope before export.
- metadata.get_tableReads column sensitivity markers such as pii to decide which columns to mask.
- Row-count approvalStops large exports and asks the user to confirm when the approval override threshold is reached.
- Column-type checksKeeps decimal precision, uses fixed date formats and stops long numbers turning into scientific notation.
- Semantic file namesNames files as metric, dimension and time window so they are easy to archive.
What you need
- Read-only replica route used by export_csv
- Companion skills readonly-guardrails and query-playbook
- A validated SQL result from the current session or a new query
Try asking
- Export the current result set to Excel with the same filters
- Download the full order detail for last quarter as CSV
- Save this East China GMV report as a file with masked phone numbers
Good to know
- Plaintext export of PII columns is refused and must go through a separate permission change approval.
- Exports above 100,000 rows need user approval, and the source suggests batching or narrowing above about 1 million rows.
- The preview row limit defaults to 1000 rows.
- Exports use the read-only replica route and a timeout of 120 to 600 seconds.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: assets/suites/db-query/skills/result-export/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to result-export
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
result-export: common questions
Does the export change the metric definition?
No. The source says the export SQL must match the preview SQL exactly, with the same metric version, default filters and row-level permissions.
Can I turn off PII masking for an export?
The source says masking is enforced at export time and the model or user cannot cancel it in the session. Plaintext needs a separate permission change approval.
Why do CSV files opened in Excel show garbled Chinese text?
The skill uses encoding utf-8-sig, which adds a BOM so Excel opens Chinese text correctly. Long numbers such as order IDs are handled as text to avoid precision loss.
How do I install result-export?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is result-export free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is result-export safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to result-export?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
