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 stac-cog-titilergit 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/stac-cog-titiler)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/stac-cog-titiler"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/stac-cog-titiler/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/stac-cog-titiler"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/stac-cog-titiler.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.00133 | $0.06787 |
| Opus 5.5 | $0.00053 | $0.02715 |
| Sonnet 5.5 | $0.00027 | $0.01357 |
| Haiku 4.5 | $0.00013 | $0.00679 |
Grade B, and why
stac-cog-titiler scanned grade B with 2 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 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 -y gdal-bin libgdal-dev Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s http://localhost:8000/ | head -c 200 # TiTiler 落地页 JSON How it starts
The opening of the file, as written. The whole thing — 421 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址:
- STAC 规范:https://github.com/radiantearth/stac-spec(STAC API 规范:https://github.com/radiantearth/stac-api-spec)
- stac-fastapi:https://github.com/stac-utils/stac-fastapi(PostgreSQL 后端 https://github.com/stac-utils/stac-fastapi-pgstac)
- pgstac:https://github.com/stac-utils/pgstac
- COG 规范:https://github.com/cogeotiff/cog-spec;rio-cogeo:https://github.com/cogeotiff/rio-cogeo
- TiTiler:https://github.com/developmentseed/titiler
官方文档: https://stacspec.org/ / https://stac-utils.github.io/stac-fastapi/ / https://cogeotiff.github.io/rio-cogeo/ / https://developmentseed.org/titiler/
最新版本: STAC 1.1.0(2024-09)、STAC API 1.0.0;stac-fastapi 7.1.1、stac-fastapi-pgstac 7.2.1、pgstac v0.10.1;rio-cogeo 7.0.4、cogeo-mosaic 9.2.0;titiler.core / titiler.application 2.4.0、titiler-pgstac 3.2.0;pystac 1.16.0、pystac-client 0.9.1(截至 2026-11,逐个实测 PyPI 与 GitHub Releases、TiTiler Releases)
许可证: STAC 规范 Apache-2.0;stac-fastapi / pgstac / TiTiler / rio-cogeo / pystac 均 MIT
概述
这条链路解决的是「影像不下载、按需出图」:原始影像转成 COG(云优化 GeoTIFF,带内部分块与金字塔,支持 HTTP Range 随机读)放到对象存储,用 STAC 元数据把资产编目成可检索的条目,再交给 TiTiler 按瓦片请求动态读窗口、重采样、配色并输出 PNG/JPEG。三者各自独立,组合起来才能做到入库即服务。
- STAC:Item/Collection/Catalog 三层 JSON 元数据模型,统一描述时空范围与资产链接,跨厂商可交换
- COG:内部按 512×512 分块、带 overview 金字塔、头部元数据在前,服务端只需几次 Range 请求就能取到任意窗口
- stac-fastapi + pgstac:STAC API 的 Python 实现,pgstac 把 JSONB 条目与空间索引放进 PostGIS,支持 CQL2 过滤与分页
- TiTiler:基于 FastAPI + rio-tiler 的动态切片服务,
/cog直接对单个 COG 出图,/stac对 STAC Item 的资产出图,/mosaicjson把多景拼成虚拟镶嵌 - 零预处理出图:换波段组合、拉伸方式、色带、重采样都通过 URL 查询参数完成,不用重跑切片任务
- 标准接口:OGC Tiles / WMTS 兼容端点,可直接作为 OpenLayers、MapLibre、Leaflet 的瓦片源
与相邻技术的差异:传统方案是 GeoServer + ImageMosaic 预先切片,改样式要重切片;本方案把「切片」推迟到请求时,样式灵活但依赖对象存储的 Range 性能与 CDN。
环境准备
Python 依赖
本链路是纯 Python 生态,要求 Python >= 3.11(stac-fastapi、rio-cogeo、TiTiler 2.x 均要求 3.11+)。
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 · 421 lines · 133 tokens per session scan B 705e2b9d6299
stac-cog-titiler is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 133 tokens to every session and 6,787 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.
stac-cog-titiler compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| stac-cog-titilerznlgis/opengis-skills | Skill | 87 | 20d ago | MIT | B | 133 | Claude Code, Codex |
| adaptyvK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 86 | Claude Code, Codex |
| labarchive-integrationK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 50 | Claude Code, Codex |
| benchling-integrationK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 50 | Claude Code |
| earth2studio-create-datasourceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 53 | Claude Code |
| assembling-fhir-bundlesmaziyarpanahi/openmed | Skill | 5.9k | today | Apache-2.0 | A | 131 | Claude Code |
| exporting-bulk-fhirmaziyarpanahi/openmed | Skill | 5.9k | today | Apache-2.0 | A | 151 | Claude Code |