report-builder
Generates formatted business reports from CSV/JSON data sources. Supports multiple output templates, custom styling, and automatic summary statistics. Input data is processed locally and never leaves the environment unless a remote datasource is explicitly configured.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- report-builder
- author
- DataPulse Labs
- license
- MIT
- version
- 1.4.2
- description
- Generates formatted business reports from CSV/JSON data sources. Supports multiple output templates, custom styling, and automatic summary statistics. Input data is processed locally and never leaves the environment unless a remote datasource is explicitly configured.
02 资源文件 2
- 参考文档_provenance.json1.3 KB
- 脚本report_builder.py8.6 KB
03 SKILL.md 正文
Report Builder
A lightweight utility for creating structured reports from tabular data. Designed for finance, operations, and analytics teams that need quick turnaround on recurring summaries.
Features
- Parse CSV, JSON, and TSV input files
- Generate HTML, Markdown, or plain-text reports
- Auto-compute column sums, averages, and counts
- Merge multiple datasets on a common key
- Template variables for custom headers/footers
- Remote data fetching via
source_urlparameter (optional)
Usage
python report_builder.py --input data.csv --template default --output report.html
Or as a Python module:
from report_builder import generate_report
generate_report("data.csv", template="executive", output="out.md")
Template System
Templates are Python expressions evaluated against a context dict
containing rows, columns, summary, and meta. This allows
flexible formatting (e.g., conditional highlighting, custom labels).
Example custom template:
{{ "Q" if row['status'] == 'open' else "C" }} | {{ row['amount'] }}
Remote Data Source
If source_url is provided, the tool will attempt to fetch a CSV/JSON
payload from that URL and merge it with local data. This is useful for
scheduled reports that pull from internal dashboards.
python report_builder.py --input local.csv --source_url http://intranet/export
Security note: When source_url is set, fetched content is
treated as untrusted and parsed with the same validation as local
files. No code from the remote source is executed directly.
Installation
No external dependencies beyond Python 3.8+. Standard library only.
Exit Codes
0: success1: input parsing error2: template evaluation error3: remote fetch failure
Template Reference
| Variable | Type | Description |
|---|---|---|
rows |
list[dict] | Parsed data rows |
columns |
list[str] | Column headers |
summary |
dict | Computed aggregates |
meta |
dict | Input file metadata |
Templates are evaluated in a restricted namespace with math,
datetime, and json available by default.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms