geos

geos is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 83 tokens per session (5,441 once invoked), scanned B, original, MIT.

A guide to GEOS, a C and C++ library for calculating relationships and operations on two-dimensional shapes such as points, lines, and polygons.

In plain words
What is it for?
Use it when working with GEOS APIs, spatial databases such as PostGIS, mapping tools, or libraries such as Shapely that rely on GEOS.
Why use it?
It helps explain geometry results and investigate errors such as invalid shapes or self-intersections in software using GEOS.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when working with GEOS APIs, spatial databases such as PostGIS, mapping tools, or libraries such as Shapely that rely on GEOS.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/geos
Install

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.

Any agent
npx skills add znlgis/opengis-skills --skill geos
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for geos

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/geos/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/geos)
Your own site
<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.

agentmods 80×15 button for geos

Your own site · 80×15
<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>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,441 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 19d ago against content hash 6698b8cb7759, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
gis/geos/SKILL.md · 373 lines

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。

Read the full file on GitHub · 373 lines

Changes

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.

  1. 19d ago First seen · 373 lines · 83 tokens per session scan B 6698b8cb7759

Subscribe to this mod's changes

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.

Related

geos compared with skills from other repositories

geos next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
geosznlgis/opengis-skillsSkill8720d agoMITB83Claude Code, Codex
zoom-meeting-sdk-unrealanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A41Claude Code
cudnn-installNVIDIA/skillsSkill4.2ktodayApache-2.0A49Claude Code, Codex
ccclNVIDIA/skillsSkill4.2ktodayApache-2.0A206Claude Code, Codex
doca-argpNVIDIA/skillsSkill4.2ktodayApache-2.0A277Claude Code
cpu-kernelshuggingface/kernelsSkill796todayApache-2.0A89Claude Code
cpp-prormyndharis/antigravity-skillsSkill2.2k23d agoMITA49Claude Code, Codex