Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add znlgis/opengis-skills --skill opengis-utils-for-javagit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote 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/opengis-utils-for-java)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/opengis-utils-for-java"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/opengis-utils-for-java/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/opengis-utils-for-java"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/opengis-utils-for-java.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00127 | $0.05675 |
| Opus 5.5 | $0.00051 | $0.02270 |
| Sonnet 5.5 | $0.00025 | $0.01135 |
| Haiku 4.5 | $0.00013 | $0.00568 |
Grade B, and why
opengis-utils-for-java scanned grade B with 1 finding 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 21d 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.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
- **仓库与网络**:GeoTools 依赖不在 Central,`pom.xml` 必须带 `https://repo.osgeo.org/repository/release/`,否则 `Could not resolve dependencies for org.geotools:*`;离线或私服缺包时如实报告依赖不可下载,不要自行换版本或加未知仓库。 How it starts
The opening of the file, as written. The whole thing — 408 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/znlgis/opengis-utils-for-java
官方文档: https://github.com/znlgis/opengis-utils-for-java#readme
最新版本: 1.0.0(截至 2026-11,仓库
main分支pom.xml,无 Git tag;尚未发布到 Maven Central,需从源码mvn install安装到本地仓库)Maven 坐标:
com.znlgis.ogu4j:ogu4j许可证: LGPL-2.1-or-later
概述
OGU4J (OpenGIS Utils for Java) is a unified Java GIS toolkit built on GeoTools, JTS, GDAL/OGR, and ESRI Geometry API. It provides:
- A unified layer model (
OguLayer) for reading/writing GIS data across formats - Geometry operations (60+ methods) via
GeometryUtil - Dual-engine architecture (GeoTools pure-Java & GDAL native)
- Coordinate reference system management (CGCS2000 built-in)
Java Version: 17+
Build Tool: Maven
Group ID: com.znlgis.ogu4j | Artifact ID: ogu4j | Version: 1.0.0
环境准备
# 前置:JDK 17+ 与 Maven 3.8+
java -version
mvn -version
# 克隆并构建(安装到本地 Maven 仓库)
git clone https://github.com/znlgis/opengis-utils-for-java.git
cd opengis-utils-for-java
mvn install -DskipTests
在业务项目的 pom.xml 中引入依赖(GeoTools 依赖通过 osgeo 仓库解析):
<repositories>
<repository>
<id>osgeo</id>
<url>https://repo.osgeo.org/repository/release/</url>
</repository>
</repositories>
<dependency>
<groupId>com.znlgis.ogu4j</groupId>
<artifactId>ogu4j</artifactId>
<version>1.0.0</version>
</dependency>
环境要求: JDK 17+;GDAL 引擎需本地原生 GDAL 库(与 org.gdal:gdal 绑定版本 3.13.0 匹配);纯 GeoTools 引擎无需原生库。验证:mvn dependency:tree 中出现 com.znlgis.ogu4j:ogu4j:1.0.0,且代码中 import com.znlgis.ogu4j.datasource.OguLayerUtil; 可编译。
核心 API:包结构与入口类
com.znlgis.ogu4j
├── datasource/ # High-level data I/O
│ ├── OguLayerUtil # Primary entry point for reading/writing layers
│ └── GtTxtUtil # National land TXT format support
├── engine/ # GIS engine core
│ ├── GisEngine # Engine interface
│ ├── GisEngineFactory # Engine factory (auto-selects best engine)
│ ├── GeoToolsEngine # GeoTools implementation (pure Java, always available)
│ ├── GdalEngine # GDAL implementation (requires native GDAL)
│ ├── GeoToolsLayerReader/Writer # GeoTools format I/O
│ ├── GdalLayerReader/Writer # GDAL format I/O
│ ├── enums/ # Enumerations
│ │ ├── DataFormatType # SHP, GEOJSON, FILEGDB, POSTGIS, TXT, WKT, ESRIJSON, ARCSDE
│ │ ├── FieldDataType # INTEGER, DOUBLE, STRING, BINARY, DATE, TIME, DATETIME, LONG
│ │ ├── GeometryType # POINT, MULTIPOINT, LINESTRING, POLYGON, etc.
│ │ ├── GisEngineType # GEOTOOLS, GDAL, AUTO
│ │ └── TopologyValidationErrorType
│ ├── io/ # Reader/Writer interfaces
│ │ ├── LayerReader # read(path, layerName, attributeFilter, spatialFilterWkt)
│ │ └── LayerWriter # write(layer, path, layerName, options)
│ ├── model/
│ │ ├── layer/ # Core data model
│ │ │ ├── OguLayer # Layer: name, wkid, geometryType, fields, features
│ │ │ ├── OguFeature # Feature: id, geometry (WKT), attributes
│ │ │ ├── OguField # Field definition: name, alias, dataType, length
│ │ │ ├── OguFieldValue # Field value with type conversion methods
│ │ │ ├── OguCoordinate # Coordinate point (x, y, z)
│ │ │ ├── OguFeatureFilter # Functional interface for filtering
│ │ │ └── OguLayerMetadata # Extended metadata (CRS, projection, etc.)
│ │ ├── DbConnBaseModel # PostGIS connection configuration
│ │ ├── GdbGroupModel # FileGDB structure
│ │ ├── TopologyValidationResult
│ │ └── SimpleGeometryResult
│ └── util/
│ ├── CrsUtil # Coordinate system management & transformation
│ ├── GeotoolsUtil # GeoTools feature filtering
│ ├── OgrUtil # GDAL/OGR initialization & resource management
│ ├── PostgisUtil # PostGIS connection helpers
│ ├── ShpUtil # Shapefile encoding & field name handling
│ └── GdalCmdUtil # GDAL command-line wrapper (ogrinfo)
├── geometry/
│ └── GeometryUtil # 60+ geometry operation methods
├── exception/
│ ├── OguException # Base checked exception
│ ├── DataSourceException # Data source connection failures
│ ├── EngineNotSupportedException
│ ├── FormatParseException # Format parsing failures
│ ├── LayerValidationException # Unchecked (RuntimeException)
│ └── TopologyException
└── utils/
├── ZipUtil # ZIP compress/decompress
├── EncodingUtil # File encoding detection
├── SortUtil # Natural string sorting
└── NumUtil # Number formatting (remove scientific notation)
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 21d ago Changed · -4 lines 9d2855032aad
- 1mo ago Changed · +13 lines ac6d4df5fce8
- 1mo ago Changed · -8 lines · +85 tokens per session scan A → B 1fef2f2ea00d
- 1mo ago Changed · +54 lines bb883b9175ff
- 2mo ago First seen · 353 lines · 42 tokens per session scan A 8930eb3b2760
opengis-utils-for-java is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 127 tokens to every session and 5,675 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
opengis-utils-for-java compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| opengis-utils-for-javaznlgis/opengis-skills | Skill | 87 | 20d ago | MIT | B | 127 | Claude Code, Codex |
| java-affected-testsopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 120 | Claude Code |
| azure-security-keyvault-secrets-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 40 | Claude Code |
| azure-ai-anomalydetector-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 43 | Claude Code |
| azure-communication-chat-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 41 | Claude Code |
| azure-communication-common-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 35 | Claude Code |
| azure-ai-agents-persistent-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 63 | Claude Code |