Design & media

Geoskill: Geospatial Report Generator

Try it

Render reports (HTML/DOCX/PDF) from other skills' output-manifest.json. Auxiliary tool only — does not analyze data, does not download anything. Workflow: run another skill to produce output-manifest.json first, then hand the manifest (or its parent directory) to this skill to render the final report. Use when the user already has skill outputs and wants a formatted deliverable document.

What it does

Render reports (HTML/DOCX/PDF) from other skills' output-manifest.json. Auxiliary tool only — does not analyze data, does not download anything. Workflow: run another skill to produce output-manifest.json first, then hand the manifest (or its parent directory) to this skill to render the final report. Use when the user already has skill outputs and wants a formatted deliverable document.

The skill document

Prerequisites / 先准备 X 文件

⚠️ 必读 — 本 skill 不属于即用型,需要先准备特定文件才能跑。

本 skill 不分析数据,只把 其他 skill 的 output-manifest.json 渲染成报告。

👉 完整教程见仓库根目录 PREREQUISITES.md 2.4 节。

先准备 X 文件:先跑任意一个分析 skill 拿到 manifest。

快速试跑命令:

python geospatial_report_generator.py --input-dir ./output --format all --title 'My Report'

⚠️ 本 skill 不做数据分析,也不下载数据。它只是「读 manifest → 渲染报告」。 工作流:先用其他 skill 跑出 output-manifest.json → 然后用本 skill 渲染成报告。 --bbox / --aoi-file 接口仅为上下文记录 (写到 output-manifest.json),不会触发任何下载。

Geospatial Report Generator

Auxiliary report-rendering tool. Reads output-manifest.json (or qa-report.json) from any other skill and renders it into HTML, DOCX, and/or PDF reports. This skill does not analyze data, does not download data, and does not contain any analysis or QA logic. It only formats whatever is already present in the input manifest.

For classification purposes this skill is a 报告生成器(辅助工具) / report generator (auxiliary tool), not an analysis skill. The output-manifest.json it writes records mode: "report_generator" (or "synthetic" when --synthetic is used for self-test).

Trigger

Use when the user wants to:

  • Render a report from existing skill outputs (i.e. from an output-manifest.json already produced by another skill)
  • Summarize QA findings into a deliverable document (HTML/DOCX/PDF)
  • Combine multiple skill outputs into one report

Boundaries

  • Does not perform data analysis or QA — it only formats what the input manifest already contains
  • Does not download any data — fully offline, all inputs are local files supplied by the caller
  • Conclusions are limited to what the manifest supports
  • Compliance/certification requires human review

CLI Usage

# From a single manifest
python scripts/geospatial_report_generator.py --manifest qa-output/qa-report.json

# From a directory (auto-discovers manifests)
python scripts/geospatial_report_generator.py --input-dir ./project-output

# DOCX output with custom title
python scripts/geospatial_report_generator.py --input-dir ./output --format docx --title "Flood Analysis Report"

# All formats
python scripts/geospatial_report_generator.py --manifest manifest.json --format all

Arguments

ArgumentDescription
--manifestPath to output-manifest.json (mutual exclusive with --input-dir)
--input-dirDirectory to scan for manifests
--output-dir, -oOutput directory (default: ./report-output)
--formathtml (default), docx, pdf, or all
--titleReport title
--languagezh (default) or en
--sectionsComma-separated section names

Output

FileDescription
report.htmlHTML report
report.docxWord document (if python-docx available)
report.pdfPDF document (if weasyprint available)
report-manifest.jsonMachine-readable report metadata

Exit Codes

CodeMeaning
0Success
2Argument error
3Dependency missing
7Processing failure

Dependencies

  • Pure Python stdlib for HTML generation
  • python-docx (optional) for DOCX output
  • weasyprint (optional) for PDF output
  • Falls back to HTML if optional deps missing

Related skills

Unified geospatial data quality audit for GIS data packages. Checks raster, vector, table, NetCDF, and directory structure. Outputs JSON/HTML reports, issue layers, checksums, and machine-readable exit codes. Use when the user wants to validate data packages, check delivery quality, find CRS/nodata/ geometry issues, or generate QA reports.

1 installs

扫描目录中的栅格与矢量文件,提取元数据并分类,生成可浏览的 HTML / CSV 数据目录。Scan raster and vector files in a directory, extract and classify metadata, and generate a browsable HTML / CSV data catalog.

Generate a professional PDF report from a GEO audit using pandoc + Chrome headless. Converts GEO-AUDIT-REPORT.md into a styled, client-ready PDF with a cover page, color-coded score tables, severity-tagged findings, and a 90-day roadmap.