stac-cog-titiler

stac-cog-titiler is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 133 tokens per session (6,787 once invoked), scanned B, original, MIT.

A set of tools for serving large geospatial images from cloud storage without downloading each full image. STAC catalogs describe and search the images, Cloud Optimized GeoTIFF files support partial reads, and TiTiler creates map tiles on request.

In plain words
What is it for?
Use it to convert imagery into cloud-optimized GeoTIFFs, catalog it, search it through an API, and provide dynamic PNG, JPEG, or map-tile responses.
Why use it?
It avoids moving entire aerial or satellite images when a map only needs a small area or resolution. The catalog and tile service make stored imagery searchable and viewable through web map requests.

Skill for Claude CodeCodex

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

Good fit Use it to convert imagery into cloud-optimized GeoTIFFs, catalog it, search it through an API, and provide dynamic PNG, JPEG, or map-tile responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/stac-cog-titiler
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 stac-cog-titiler
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 stac-cog-titiler

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

agentmods 80×15 button for stac-cog-titiler

Your own site · 80×15
<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>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,787 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00133 $0.06787
Opus 5.5 $0.00053 $0.02715
Sonnet 5.5 $0.00027 $0.01357
Haiku 4.5 $0.00013 $0.00679

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

Security

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
gis/stac-cog-titiler/SKILL.md · 421 lines

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.

项目地址:

官方文档: 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+)。

Read the full file on GitHub · 421 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 · 421 lines · 133 tokens per session scan B 705e2b9d6299

Subscribe to this mod's changes

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.

Related

stac-cog-titiler compared with skills from other repositories

stac-cog-titiler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stac-cog-titilerznlgis/opengis-skillsSkill8720d agoMITB133Claude Code, Codex
adaptyvK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA86Claude Code, Codex
labarchive-integrationK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA50Claude Code, Codex
benchling-integrationK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA50Claude Code
earth2studio-create-datasourceNVIDIA/skillsSkill4.2ktodayApache-2.0A53Claude Code
assembling-fhir-bundlesmaziyarpanahi/openmedSkill5.9ktodayApache-2.0A131Claude Code
exporting-bulk-fhirmaziyarpanahi/openmedSkill5.9ktodayApache-2.0A151Claude Code