geoserver-rest-api

geoserver-rest-api is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 108 tokens per session (4,370 once invoked), scanned A, original, MIT.

A way to manage GeoServer through HTTP requests instead of its graphical interface. GeoServer is an open-source server that publishes map and geographic data on the web.

In plain words
What is it for?
Use it in scripts and deployment pipelines to create GeoServer resources, upload styles, update data connections, inspect server status, and reload configuration.
Why use it?
It removes repetitive manual setup when many workspaces, data sources, map layers, styles, or service settings must be created or changed.

Skill for Claude CodeCodex

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

Good fit Use it in scripts and deployment pipelines to create GeoServer resources, upload styles, update data connections, inspect server status, and reload configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/geoserver-rest-api
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 geoserver-rest-api
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 geoserver-rest-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/geoserver-rest-api/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/geoserver-rest-api)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geoserver-rest-api"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geoserver-rest-api/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 geoserver-rest-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geoserver-rest-api"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geoserver-rest-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 214
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00108 $0.04370
Opus 5.5 $0.00043 $0.01748
Sonnet 5.5 $0.00022 $0.00874
Haiku 4.5 $0.00011 $0.00437

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

Security

Grade A, and why

geoserver-rest-api scanned grade A 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: "Use when automating GeoServer 3.0.2 over REST — POST /rest/workspaces, datastores, featuretypes, PUT Shapefile ZIP to file.shp, GeoTIFF to coveragestores, upload SLD as application/vnd.ogc.sld+xml, ?recurse
gis/geoserver-rest-api/SKILL.md · 383 lines

How it starts

The opening of the file, as written. The whole thing — 383 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://github.com/geoserver/geoserver

REST API 文档: https://docs.geoserver.org/latest/en/user/rest/index.html

API 参考: https://docs.geoserver.org/stable/en/user/rest/api/index.html

最新版本: GeoServer 3.0.2(2026-10-19,安全修复版;官方下载)

许可证: GPL-2.0

概述

GeoServer 是一个基于 Java 的开源地理空间数据服务器,实现了 OGC WMS、WFS、WCS、WMTS 等标准协议。GeoServer REST API 提供了完整的 RESTful 配置管理接口,可通过标准 HTTP 方法(GET / POST / PUT / DELETE)对 GeoServer 的各类资源进行编程式管理。

REST API 的典型用途包括:

  • 自动化部署:批量创建工作空间、数据存储、发布图层
  • CI/CD 集成:在持续集成流水线中自动配置 GeoServer
  • AI 智能体:通过 HTTP 接口让 AI 自主管理地图服务
  • 运维脚本:批量修改样式、更新数据源连接参数

基础 URL 格式: http://{host}:{port}/geoserver/rest

默认认证: 用户名 admin,密码 geoserver(HTTP Basic Auth)

数据格式: 支持 JSON 和 XML,通过 Accept / Content-Type 请求头或 URL 后缀(.json / .xml)指定。


环境准备与认证方式

所有写操作(POST / PUT / DELETE)均需认证。GeoServer 默认使用 HTTP Basic Auth:

# curl 方式
curl -u admin:geoserver ...

# HTTP Header 方式
Authorization: Basic YWRtaW46Z2Vvc2VydmVy

API 端点一览

REST API 按资源分组,完整端点清单见 reference/endpoints.md:

资源组 基础路径 资源组 基础路径
系统管理 /rest/about/*、/rest/reload、/rest/reset 图层 /rest/layers
工作空间 /rest/workspaces 图层组 /rest/layergroups
命名空间 /rest/namespaces 样式 /rest/styles
数据存储 /rest/workspaces/{ws}/datastores OGC 服务设置 /rest/services/{wms|wfs|wcs|wmts}/settings
要素类型 .../datastores/{ds}/featuretypes 安全 /rest/security/*
覆盖存储 / 覆盖 /rest/workspaces/{ws}/coveragestores GeoWebCache /gwc/rest/*

常用操作示例

1. 获取 GeoServer 版本

curl -u admin:geoserver \
  "http://localhost:8080/geoserver/rest/about/version.json"

2. 创建工作空间

curl -u admin:geoserver -XPOST \
  -H "Content-Type: application/json" \
  -d '{"workspace":{"name":"myws"}}' \
  "http://localhost:8080/geoserver/rest/workspaces"

3. 创建 PostGIS 数据存储

Read the full file on GitHub · 383 lines

Files

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.

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. 5d ago Changed · -10 lines · +55 tokens per session 97dab1007531
  2. 11d ago Changed · -77 lines 64827e5b1646
  3. 1mo ago Changed · +1 lines 3f0941ce3c40
  4. 1mo ago Changed c75198aff46d
  5. 1mo ago First seen · 469 lines · 53 tokens per session scan A 2ad0bd96e562

Subscribe to this mod's changes

geoserver-rest-api is a skill published in the GitHub repository znlgis/opengis-skills (72 stars, last pushed 6d ago), licensed MIT. It adds 108 tokens to every session and 4,370 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.