Skip to main content
data-analyst-export Export query results to various formats (CSV, JSON, Excel, Markdown tables) with proper formatting and headers. Use when saving analysis results to files.
This skill provides data export utilities for multiple formats:
- CSV: Comma-separated with headers, customizable delimiters
- JSON: Structured data with pretty-print option
- Excel: Multiple sheets, cell formatting, formulas
- Markdown: Tables for documentation
Triggers: "export data", "save results", "output CSV", "output JSON", "output Excel", "データ出力", "結果保存", "エクスポート"
Zur Installation springen Skills Marktplatz Entdecken und erkunden Sie KI-Skills, die von der Community erstellt wurden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Prompt kopierenPrompt-Details anzeigen Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
npx skills add https://github.com/takemi-ohama/ai-agent-marketplace --skill data-analyst-exportDer Befehl bleibt in einer Zeile. Scrollen Sie horizontal, um ihn vor dem Kopieren vollständig zu prüfen.
Sie bevorzugen eine lokale Kopie? Laden Sie die Dateien herunter, die SkillsMP derzeit vorliegen.
ZIP herunterladen Herunterladen... Mehr aus diesem Repository data-analyst-sql-optimization Apply SQL optimization patterns including index usage, query rewriting, JOIN optimization, and window functions. Use when improving query performance or analyzing slow queries.
This skill provides comprehensive SQL optimization patterns and best practices:
- N+1 query elimination
- Index optimization strategies
- JOIN vs subquery performance
- Window functions for complex aggregations
- Query execution plan analysis
Triggers: "optimize SQL", "slow query", "improve performance", "SQL最適化", "クエリ改善", "パフォーマンス向上"
researcher-report-templates Generate structured research reports with findings, comparisons, recommendations, and citations. Use when documenting investigation results or creating technical comparisons.
This skill provides comprehensive research report templates:
- Investigation findings with proper structure
- Technology comparison tables
- Best practices summaries
- Citation and reference management
- Executive summaries
Triggers: "create report", "summarize findings", "compare technologies", "research report", "調査レポート", "技術比較", "ベストプラクティス"
Extract, transform, and structure data from Excel files including multiple sheets, formulas, and formatting. Use when processing Excel data or converting to other formats.
This skill provides Excel data extraction:
- Multiple sheet reading
- Data structuring (JSON/CSV conversion)
- Formula evaluation
- Cell formatting extraction
- Large file handling with chunking
Triggers: "extract Excel data", "read spreadsheet", "convert Excel to JSON", "convert Excel to CSV", "Excel解析", "スプレッドシート処理", "データ抽出"
Verwandte Berufe SOC
Basierend auf der SOC-Berufsklassifikation
name data-analyst-export description Export query results to various formats (CSV, JSON, Excel, Markdown tables) with proper formatting and headers. Use when saving analysis results to files.
This skill provides data export utilities for multiple formats:
- CSV: Comma-separated with headers, customizable delimiters
- JSON: Structured data with pretty-print option
- Excel: Multiple sheets, cell formatting, formulas
- Markdown: Tables for documentation
Triggers: "export data", "save results", "output CSV", "output JSON", "output Excel", "データ出力", "結果保存", "エクスポート"
allowed-tools ["Write","Bash"]
Data Analyst Export Skill
概要
このSkillは、data-analystエージェントがクエリ結果を様々な形式でエクスポートする際に使用します。CSV、JSON、Excel、Markdownテーブルなど、用途に応じた最適な形式で出力できます。
主な機能
CSV出力 : カンマ区切り、ヘッダー付き、カスタマイズ可能
JSON出力 : 構造化データ、pretty-print、圧縮オプション
Excel出力 : 複数シート、書式設定、数式サポート
Markdownテーブル出力 : ドキュメントに埋め込み可能
使用方法
CSV出力
node scripts/export -csv.js input.json output.csv
入力データ形式 (input.json):
[
{ "id" : 1 ,
"name"
:
"Product A"
,
"price"
:
1000
}
,
{
"id"
:
2
,
"name"
:
"Product B"
,
"price"
:
2000
}
]
id,name,price
1,Product A,1000
2,Product B,2000
JSON出力
node scripts/export -json.js input.csv output.json --pretty
--pretty: 整形された見やすいJSON
--compact: 圧縮されたJSON(デフォルト)
Excel出力
node scripts/export -excel.js input.json output.xlsx --sheets "Sheet1,Sheet2"
複数シート対応
ヘッダー行の書式設定(太字、背景色)
数値の書式(カンマ区切り、通貨)
自動列幅調整
Markdown テーブル出力
node scripts/export -markdown.js input.json output.md
| id | name | price |
|----|------|-------|
| 1 | Product A | 1000 |
| 2 | Product B | 2000 |
スクリプト詳細
export-csv.js
自動ヘッダー生成
カスタムデリミタ(カンマ、タブ、セミコロン)
引用符エスケープ
UTF-8 BOM対応(Excel互換)
node export-csv.js data.json output.csv
node export-csv.js data.json output.tsv --delimiter="\t"
node export-csv.js data.json output.csv --bom
export-json.js
Pretty-print(整形出力)
圧縮出力
配列またはオブジェクト形式
node export-json.js data.csv output.json --pretty
node export-json.js data.csv output.json --compact
export-excel.js JSON配列をExcelファイル(.xlsx)に変換します。
複数シート作成
ヘッダー書式設定
セルの書式設定(数値、通貨、日付)
列幅自動調整
node export-excel.js data.json output.xlsx
node export-excel.js multi-sheet-data.json output.xlsx
multi-sheet-data.json の形式 :
{
"Sheet1" : [
{ "id" : 1 , "name" : "Item 1" }
] ,
"Sheet2" : [
{ "id" : 2 , "name" : "Item 2" }
]
}
export-markdown.js JSON配列をMarkdownテーブルに変換します。
GitHub Flavored Markdown形式
列の自動整列
見出し行の区切り
node export-markdown.js data.json output.md
実装例
例1: BigQueryクエリ結果をCSVにエクスポート
const results = await bigquery.query ("SELECT * FROM dataset.table LIMIT 1000" );
const fs = require ('fs' );
const exportCSV = require ('./scripts/export-csv.js' );
exportCSV (results, 'query-results.csv' );
console .log ('✅ CSVにエクスポート完了: query-results.csv' );
例2: 分析結果をExcelレポートに出力
const salesData = await bigquery.query ("SELECT * FROM sales" );
const productData = await bigquery.query ("SELECT * FROM products" );
const data = {
"Sales" : salesData,
"Products" : productData
};
exportExcel (data, 'monthly-report.xlsx' );
console .log ('✅ Excelレポート作成完了: monthly-report.xlsx' );
例3: ドキュメントにMarkdownテーブル挿入
const topProducts = await bigquery.query ("SELECT name, sales FROM products ORDER BY sales DESC LIMIT 10" );
const markdown = exportMarkdown (topProducts);
const readme = fs.readFileSync ('README.md' , 'utf-8' );
const updatedReadme = readme.replace ('<!-- TOP_PRODUCTS -->' , markdown);
fs.writeFileSync ('README.md' , updatedReadme);
console .log ('✅ README.mdにテーブルを挿入しました' );
ベストプラクティス
DO(推奨) ✅ 適切な形式を選択 : CSV(単純データ)、Excel(複雑なレポート)、JSON(API連携)
✅ ヘッダーを含める : データの意味を明確に
✅ 大きなデータはストリーミング : メモリ効率のため
✅ UTF-8 BOMを付与 : Excel互換性のため(CSV)
✅ エラーハンドリング : ファイル書き込みエラーに対処
DON'T(非推奨) ❌ 全データをメモリに展開 : 大量データは分割処理
❌ Excel形式で巨大データ : 1048576行の制限に注意
❌ 日付フォーマットの不統一 : ISO 8601形式を推奨
❌ 特殊文字のエスケープ忘れ : CSV/JSONで必須
トラブルシューティング
Q: Excelで日本語が文字化けする node export-csv.js data.json output.csv --bom
Q: 大きなデータでメモリ不足
node export -csv-stream.js large-data.json output.csv
Q: Excelの行数制限(1048576行)を超える
node export -excel.js data.json output --split 1000000
Progressive Disclosure このSKILL.mdはメインドキュメント(約250行)です。各スクリプトの詳細な実装は scripts/ ディレクトリ内のファイルを参照してください。
関連リソース
scripts/export-csv.js : CSV出力スクリプト
scripts/export-json.js : JSON出力スクリプト
scripts/export-excel.js : Excel出力スクリプト
scripts/export-markdown.js : Markdownテーブル出力スクリプト