Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/znlgis/opengis-skillsnpx agentmods add skills/znlgis/opengis-skills/whitebox-toolsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/znlgis/opengis-skills/whitebox-tools)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/whitebox-tools"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/whitebox-tools/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/whitebox-tools"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/whitebox-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00119 | $0.04439 |
| Opus 5.5 | $0.00048 | $0.01776 |
| Sonnet 5.5 | $0.00024 | $0.00888 |
| Haiku 4.5 | $0.00012 | $0.00444 |
Grade A, and why
whitebox-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 270 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/jblindsay/whitebox-tools
官方文档: 用户手册站 https://www.whiteboxgeo.com/manual/wbt_book/preface.html(2026-10 实测返回 404,暂以仓库 README 与
UserManual.txt为可访问入口)最新版本: 2.4.0(GitHub Release,截至 2026-10)
PyPI 前端:
whitebox2.3.6(whitebox-python 封装,仅负责下载与调用二进制,版本号落后于核心库)许可证: MIT
注意: 上游仓库 README 已标记为 legacy,新开发转向 https://github.com/jblindsay/whitebox_next_gen;但 2.4.0 仍是当前稳定可用的开源版本,本文以其为基准。
概述
WhiteboxTools 是圭尔夫大学 GHRG 实验室(John Lindsay)用 Rust 编写的独立地理空间分析引擎,面向「分析后端」而非制图:它不渲染地图,只接收栅格/矢量/LAS 输入并产出分析结果。相比通用 GIS 桌面软件,它的优势在于命令行与脚本化,几百个工具都能通过统一参数形式批量执行,适合 DEM 地形分析、水文建模与 LiDAR 处理流水线。
- 地形分析:坡度、坡向、曲率、山体阴影、相对高程、地形位置指数(TPI)、多尺度位置分析
- 水文分析:洼地填充/决口、D8/DInf/FD8 流向与流量累积、河网提取、Strahler 分级、流域划分
- LiDAR:点云信息与直方图、按类别过滤、去噪、地面点分类、插值成 DEM、密度与强度栅格
- 栅格与矢量工具:栅格计算器、重分类、分区统计、矢量栅格互转、要素裁剪与合并
- 统一接口:
whitebox_tools --run=<ToolName> [参数],另有--toolhelp、--toolparameters查询元数据
环境准备
方式一:下载预编译二进制(推荐)
到 https://github.com/jblindsay/whitebox-tools/releases 下载对应平台的预编译压缩包,解压后目录内含 whitebox_tools(Windows 为 whitebox_tools.exe)与 WBT 插件目录。
cd /opt/WBT # 解压后的 WBT 目录
./whitebox_tools --version
./whitebox_tools --listtools slope | head -5
# Windows PowerShell
cd C:\Tools\WBT
.\whitebox_tools.exe --version
方式二:源码编译(适合无预编译包的平台)
需要 Rust 工具链;Windows 上还需 MSVC 或 GNU 链接器。仓库根目录的 build.py 会调用 cargo 并把产物整理到 WBT/。
git clone https://github.com/jblindsay/whitebox-tools.git
cd whitebox-tools
python build.py
./WBT/whitebox_tools --version
方式三:Python 前端(whitebox 包)
whitebox-python 是社区维护的封装,首次运行会下载 / 复用 WBT 二进制;它不提升核心工具版本,因此工具能力以二进制实际版本为准。
pip install whitebox==2.3.6
# 或 conda
conda install -c conda-forge whitebox
import whitebox
print(whitebox.__version__) # 2.3.6 —— 这是 Python 封装版本
wbt = whitebox.WhiteboxTools()
wbt.set_verbose_mode(False)
print(wbt.version()) # 打印底层 WhiteboxTools 二进制版本
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 270 lines · 119 tokens per session scan A 6497b11ba7d3
whitebox-tools is a skill published in the GitHub repository znlgis/opengis-skills (76 stars, last pushed 3d ago), licensed MIT. It adds 119 tokens to every session and 4,439 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.
Other skills, from other repositories
hydrology-pysheds
Use this Skill for DEM-based hydrological analysis: watershed delineation, flow direction/accumulation, stream networks, and runoff estimation with pysheds.
geoai-orchestrator
Route genuinely ambiguous or multi-stage geospatial work across specialist skills while enforcing shared CRS, validity, leakage, units, verification, and reproducibility rules. Use for requests spanning multiple stages such as acquisition, imagery, modeling, analysis, and map delivery, or for an explicit end-to-end…
google-earth-engine
Invoke when Earth Engine, GEE, ee., or geemap is named; when work needs its server-side catalog; or when choosing Earth Engine versus local xarray or desktop processing for a large area or long archive. Covers image collections, masking, compositing, reducers, zonal statistics, time series, classification, quota-aware…
point-cloud-lidar
LiDAR and point cloud processing: PDAL pipelines, LAS/LAZ/COPC handling, ground classification, DTM/DSM/CHM generation, canopy and building metrics, and photogrammetric (SfM) point clouds. Use when the primary input is LAS, LAZ, COPC, LiDAR, or an unstructured 3D point cloud. This skill owns vertical datum agreement…
change-detection
Change analysis, once the observations are comparable. Not for cases whose blocker is comparability itself: mixed sensors, product levels or processing baselines to remote-sensing-analysis, undocumented vertical datums to point-cloud-lidar, multi-decade archive trends over large areas to google-earth-engine. Matching…
geo-deep-learning
Invoke before recommending, training, or auditing a neural method for geospatial imagery, including vision transformers, U-Net/DeepLab/SegFormer, object detection, pixel classification, building/road extraction, and EO foundation-model fine-tuning. Also invoke for neural chip-split validity, IoU/accuracy claims…