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 geosgit 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/geos)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geos"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geos/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/geos"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geos.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.00083 | $0.05441 |
| Opus 5.5 | $0.00033 | $0.02176 |
| Sonnet 5.5 | $0.00017 | $0.01088 |
| Haiku 4.5 | $0.00008 | $0.00544 |
Grade B, and why
geos 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 19d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo apt-get install geos libgeos-dev How it starts
The opening of the file, as written. The whole thing — 373 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/libgeos/geos
官方文档: https://libgeos.org/
最新版本: 3.15.0(2026-09-01 发布,截至 2026-11,Release 3.15.0 / 下载与构建页)
C API 文档: https://libgeos.org/usage/c_api/ | C++ API 文档: https://libgeos.org/usage/cpp_api/
许可证: LGPL-2.1(C 库链接后按 LGPL 动态链接条款使用)
概述
GEOS(Geometry Engine, Open Source)是用 C++ 实现的二维矢量几何运算库,主体移植自 Java 的 JTS Topology Suite。它是开源空间数据栈的「几何内核」:PostGIS 的 ST_Intersection/ST_Buffer、QGIS 的叠加分析、Python Shapely、GDAL/OGR 的矢量叠加后端、R 的 sf 包,底层都在调用 GEOS。
核心能力:
- 几何模型:Point / LineString / LinearRing / Polygon / Multi* / GeometryCollection,支持 XY、XYZ、XYM、XYZM
- 空间关系:Intersects、Contains、Within、Touches、Crosses、Overlaps、Covers、Relate(DE-9IM)
- 集合与叠加运算:Intersection、Union、Difference、SymDifference、UnaryUnion、Buffer、Clip、Split
- 构造与修复:MakeValid、Normalize、Snap、Node、Polygonize、Densify、Simplify
- 索引与加速:STRtree(批量窗口查询、最近邻)、PreparedGeometry(重复谓词加速)
- 序列化:WKT、WKB、GeoJSON 读写器
与相邻技术的分工:JTS 是同一套算法的 Java 实现(GEOS 的语义上游);Shapely 是 GEOS 的 Python 绑定;PostGIS 把 GEOS 编译进数据库后端;GDAL/OGR 用 GEOS 做矢量叠加,但数据格式读写由 GDAL 负责。需要跨语言一致结果时以 GEOS 版本为准——不同 GEOS 版本的叠加结果可能有细微差异。
API 选型结论先行:一般应用用 C API(geos_c.h,ABI 稳定、可跨小版本换库);要嵌入 C++ 工程并接受重新编译时用 C++ API(geos/geom/*.h,无 ABI 稳定承诺)。下文示例默认 C API,C++ 差异单独标注。
环境准备与安装
通过包管理器
# Ubuntu / Debian(需要更新版本时可加 ppa:ubuntugis/ppa)
sudo apt-get install geos libgeos-dev
# RHEL / Amazon Linux(EPEL 提供)
sudo yum install -y epel-release geos geos-devel
# macOS
brew install geos
# 自检:确认版本与头文件/库可见
geos-config --version
pkg-config --modversion geos
从源码构建(官方 CMake 流程)
tar xvfj geos-3.15.0.tar.bz2
cd geos-3.15.0
mkdir _build && cd _build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
..
make -j4
ctest # 可选但建议:跑一遍单元测试
sudo make install
构建要求:CMake ≥ 3.15、支持 C++14 的编译器(常规测试 GCC / Clang / MSVC)、可选 Doxygen 生成 API 文档。常用开关:BUILD_SHARED_LIBS=ON(默认开)、BUILD_TESTING=ON(默认开)、BUILD_DOCUMENTATION=OFF(默认关)、CMAKE_BUILD_TYPE 取 Release / RelWithDebInfo / Debug / ASAN。
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.
- 19d ago First seen · 373 lines · 83 tokens per session scan B 6698b8cb7759
geos is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 83 tokens to every session and 5,441 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.
geos compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| geosznlgis/opengis-skills | Skill | 87 | 20d ago | MIT | B | 83 | Claude Code, Codex |
| zoom-meeting-sdk-unrealanthropics/knowledge-work-plugins | Skill | 37k | today | Apache-2.0 | A | 41 | Claude Code |
| cudnn-installNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 49 | Claude Code, Codex |
| ccclNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 206 | Claude Code, Codex |
| doca-argpNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 277 | Claude Code |
| cpu-kernelshuggingface/kernels | Skill | 796 | today | Apache-2.0 | A | 89 | Claude Code |
| cpp-prormyndharis/antigravity-skills | Skill | 2.2k | 23d ago | MIT | A | 49 | Claude Code, Codex |